1 Summary: DJGPP GNU Binary Utility Development Utilities - binutils
2 Name: crossdjgpp-binutils
6 Group: Development/Tools
7 Group(de): Entwicklung/Werkzeuge
8 Group(fr): Development/Outils
9 Group(pl): Programowanie/Narzêdzia
10 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 BuildRequires: /bin/bash
14 Requires: crossdjgpp-platform
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define target i386-pc-msdosdjgpp
18 %define arch %{_prefix}/%{target}
21 DJGPP is a port of GNU GCC to the DOS environment. (It stands for
22 DJ's Gnu Programming Platform, if it has to stand for something, but
23 it's best left ambiguous.)
25 This package contains cross targeted binutils.
28 %setup -q -n binutils-%{version}
31 rm -rf $RPM_BUILD_ROOT
33 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
34 # lib<target>bfd.so*. To prevent confusion with native binutils, we
35 # forget about shared libraries right now, and do not install libbfd.a
36 # [the same applies to binutils 2.10.1.0.4]
38 # ldscripts won't be generated properly if SHELL is not bash...
39 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
40 CONFIG_SHELL="/bin/bash" \
45 --infodir=%{_infodir} \
48 %{__make} tooldir=%{_prefix} EXEEXT="" all
51 rm -rf $RPM_BUILD_ROOT
54 prefix=$RPM_BUILD_ROOT%{_prefix} \
55 mandir=$RPM_BUILD_ROOT%{_mandir} \
56 infodir=$RPM_BUILD_ROOT%{_infodir} \
57 libdir=$RPM_BUILD_ROOT%{_libdir}
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{arch}/bin/*
63 %attr(755,root,root) %{_bindir}/%{target}-*
64 %{_mandir}/man1/%{target}-*
67 rm -rf $RPM_BUILD_ROOT