1 Summary: Mingw32 GNU Binary Utility Development Utilities - binutils
2 Name: crossmingw32-binutils
6 Group: Development/Tools
7 Group(de): Entwicklung/Werkzeuge
8 Group(fr): Development/Outils
9 Group(pl): Programowanie/Narzêdzia
10 ExclusiveArch: %{ix86}
11 Source0: ftp://ftp.gnu.org/pub/gnu/binutils-%{version}.tar.gz
12 Patch0: binutils-info.patch
15 BuildRequires: /bin/bash
16 Requires: crossmingw32-platform
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define target i386-mingw32
20 %define arch %{_prefix}/%{target}
23 crossmingw32 is a complete cross-compiling development system for
24 building stand-alone Microsoft Windows applications under Linux using
25 the Mingw32 build libraries. This includes a binutils, gcc with g++
26 and objc, and libstdc++, all cross targeted to i386-mingw32, along
27 with supporting Win32 libraries in 'coff' format from free sources.
29 This package contains cross targeted binutils.
34 (cd binutils-%{version}
40 rm -rf $RPM_BUILD_ROOT
42 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
43 # lib<target>bfd.so*. To prevent confusion with native binutils, we
44 # forget about shared libraries right now, and do not install libbfd.a
45 (cd binutils-%{version}
47 # ldscripts won't be generated properly if SHELL is not bash...
48 %{?debug:CFLAGS="-g -O" LDFLAGS=""}%{!?debug:CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"} \
49 CONFIG_SHELL="/bin/bash" \
54 --infodir=%{_infodir} \
57 %{__make} tooldir=%{_prefix} EXEEXT="" all
62 rm -rf $RPM_BUILD_ROOT
63 (cd binutils-%{version}
66 prefix=$RPM_BUILD_ROOT%{_prefix} \
67 mandir=$RPM_BUILD_ROOT%{_mandir} \
68 infodir=$RPM_BUILD_ROOT%{_infodir} \
69 libdir=$RPM_BUILD_ROOT%{_libdir}
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{arch}/bin/*
77 %attr(755,root,root) %{_bindir}/%{target}-*
78 %{_mandir}/man1/%{target}-*
82 rm -rf $RPM_BUILD_ROOT