1 Summary: Mingw32 Binary Utility Development Utilities - GNU binutils
2 Summary(pl): Zestaw narzêdzi mingw32 - GNU binutils
3 Name: crossmingw32-binutils
7 Group: Development/Tools
8 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
9 # Source0-md5: 71b99dba3045a359dc314dbebedcf502
13 BuildRequires: perl-devel
14 BuildRequires: texinfo >= 4.2
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define target i386-mingw32
18 %define arch %{_prefix}/%{target}
21 crossmingw32 is a complete cross-compiling development system for
22 building stand-alone Microsoft Windows applications under Linux using
23 the Mingw32 build libraries. This includes a binutils, gcc with g++
24 and objc, and libstdc++, all cross targeted to i386-mingw32, along
25 with supporting Win32 libraries in 'coff' format from free sources.
27 This package contains cross targeted binutils.
30 crossmingw32 jest kompletnym systemem do kroskompilacji, pozwalaj±cym
31 budowaæ aplikacje MS Windows pod Linuksem u¿ywaj±c bibliotek mingw32.
32 System sk³ada siê z binutils, gcc z g++ i objc, libstdc++ - wszystkie
33 generuj±ce kod dla platformy i386-mingw32, oraz z bibliotek w formacie
36 Ten pakiet zawiera binutils generuj±ce binaria Win32.
39 %setup -q -n binutils-%{version}
42 rm -rf $RPM_BUILD_ROOT
44 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
45 # lib<target>bfd.so*. To prevent confusion with native binutils, we
46 # forget about shared libraries right now, and do not install libbfd.a
47 # [the same applies to binutils 2.10.1.0.4]
49 # ldscripts won't be generated properly if SHELL is not bash...
50 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
51 CONFIG_SHELL="/bin/bash" \
56 --infodir=%{_infodir} \
57 --host=%{_target_platform} \
58 --build=%{_target_platform} \
61 %{__make} tooldir=%{_prefix} all
64 rm -rf $RPM_BUILD_ROOT
67 INSTALL='$$s/install-sh -c' \
68 prefix=$RPM_BUILD_ROOT%{_prefix} \
69 mandir=$RPM_BUILD_ROOT%{_mandir} \
70 infodir=$RPM_BUILD_ROOT%{_infodir} \
71 libdir=$RPM_BUILD_ROOT%{_libdir}
73 # remove this man page unless we cross-build for netware platform.
74 # however, this should be done in Makefiles.
75 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*nlmconv.1
77 # libiberty.a is ELF not PE
78 rm -f $RPM_BUILD_ROOT%{arch}/lib/libiberty.a
81 %defattr(644,root,root,755)
85 %attr(755,root,root) %{arch}/bin/*
87 %attr(755,root,root) %{_bindir}/%{target}-*
88 %{_mandir}/man1/%{target}-*
91 rm -rf $RPM_BUILD_ROOT