1 Summary: DJGPP GNU Binary Utility Development Utilities - binutils
2 Summary(pl): Narzêdzia programistyczne GNU DJGPP - binutils
3 Name: crossdjgpp-binutils
7 Group: Development/Tools
8 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
9 # Source0-md5: 59cb6db4b7642562b5abb3298a25b063
12 BuildRequires: /bin/bash
13 Requires: crossdjgpp-platform
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define target i386-pc-msdosdjgpp
17 %define arch %{_prefix}/%{target}
20 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
21 Gnu Programming Platform, if it has to stand for something, but it's
24 This package contains cross targeted binutils.
27 DJGPP to port GNU GCC dla ¶rodowiska DOS (skrót oznacza DJ's Gnu
28 Programming Platform, je¶li ju¿ koniecznie ma co¶ oznaczaæ).
30 Ten pakiet zawiera binutils skompilowane do kompilacji skro¶nej.
33 %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