Summary: Mingw32 GNU Binary Utility Development Utilities - binutils
Name: crossmingw32-binutils
-# could someone test this with new binutils?
-%define binversion 2.10.0.18
-%define version 990111
-Version: %{version}
-Release: 3
+Version: 2.10.0.33
+Release: 1
License: GPL
Group: Development/Tools
Group(pl): Programowanie/Narzêdzia
ExclusiveArch: %{ix86}
-Source0: ftp://ftp.gnu.org/pub/gnu/binutils-%{binversion}.tar.gz
+Source0: ftp://ftp.gnu.org/pub/gnu/binutils-%{version}.tar.gz
Patch0: binutils-info.patch
BuildRequires: flex
BuildRequires: bison
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define target i386-mingw32
-%define target_platform i386-pc-mingw32
-%define _prefix /usr
%define arch %{_prefix}/%{target}
%description
%prep
%setup -q -T -c -a0
-(cd binutils-%{binversion}
+(cd binutils-%{version}
%patch -p1
)
# Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
# lib<target>bfd.so*. To prevent confusion with native binutils, we
# forget about shared libraries right now, and do not install libbfd.a
-(cd binutils-%{binversion}
+(cd binutils-%{version}
# ldscripts won't be generated properly if SHELL is not bash...
%{?debug:CFLAGS="-g -O" LDFLAGS=""}%{!?debug:CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"} \
%install
rm -rf $RPM_BUILD_ROOT
-(cd binutils-%{binversion}
+(cd binutils-%{version}
%{__make} install \
prefix=$RPM_BUILD_ROOT%{_prefix} \
)
-# binutils 2.10 sets exeext to ".exe"
-
-for fn in $RPM_BUILD_ROOT%{_bindir}/%target-*.exe $RPM_BUILD_ROOT%{arch}/bin/*.exe ; do
- mv -f $fn `echo $fn | sed s/\.exe\$//`
-done
-
-# check if rpm automation handles this correctly:
-#gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/%{target}-*
-#strip $RPM_BUILD_ROOT%{_bindir}/%{target}-*
-
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{arch}/bin/*