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.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
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.
32 %setup -q -n binutils-%{version}
36 rm -rf $RPM_BUILD_ROOT
38 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
39 # lib<target>bfd.so*. To prevent confusion with native binutils, we
40 # forget about shared libraries right now, and do not install libbfd.a
41 # [the same applies to binutils 2.10.1.0.4]
43 # ldscripts won't be generated properly if SHELL is not bash...
44 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
45 CONFIG_SHELL="/bin/bash" \
50 --infodir=%{_infodir} \
53 %{__make} tooldir=%{_prefix} EXEEXT="" all
56 rm -rf $RPM_BUILD_ROOT
59 prefix=$RPM_BUILD_ROOT%{_prefix} \
60 mandir=$RPM_BUILD_ROOT%{_mandir} \
61 infodir=$RPM_BUILD_ROOT%{_infodir} \
62 libdir=$RPM_BUILD_ROOT%{_libdir}
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{arch}/bin/*
68 %attr(755,root,root) %{_bindir}/%{target}-*
69 %{_mandir}/man1/%{target}-*
72 rm -rf $RPM_BUILD_ROOT