1 Summary: Cross DJGPP GNU binary utility development utilities - binutils
2 Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - DJGPP binutils
3 Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - DJGPP binutils
4 Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla DJGPP - binutils
5 Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - DJGPP binutils
6 Summary(tr.UTF-8): GNU geliştirme araçları - DJGPP binutils
7 Name: crossdjgpp-binutils
11 Group: Development/Tools
12 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5: 0d64d65d33a7f305e5ef8351086b9a3a
14 URL: http://sources.redhat.com/binutils/
15 BuildRequires: automake
19 BuildRequires: gettext-tools
21 BuildRequires: sparc32
23 Requires: crossdjgpp-platform
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define target i386-pc-msdosdjgpp
27 %define arch %{_prefix}/%{target}
30 DJGPP is a port of GNU GCC to the DOS environment. (It stands for DJ's
31 Gnu Programming Platform, if it has to stand for something, but it's
34 This package contains cross targeted binutils.
36 %description -l pl.UTF-8
37 DJGPP to port GNU GCC dla środowiska DOS (skrót oznacza DJ's Gnu
38 Programming Platform, jeśli już koniecznie ma coś oznaczać).
40 Ten pakiet zawiera binutils generujące skrośnie binaria dla DOS.
43 %setup -q -n binutils-%{version}
46 cp /usr/share/automake/config.sub .
48 # Because of a bug in binutils-2.9.1, a cross libbfd.so* is not named
49 # lib<target>bfd.so*. To prevent confusion with native binutils, we
50 # forget about shared libraries right now, and do not install libbfd.a
51 # [the same applies to binutils 2.10.1.0.4]
53 # ldscripts won't be generated properly if SHELL is not bash...
54 CFLAGS="%{rpmcflags}" \
55 LDFLAGS="%{rpmldflags}" \
56 CONFIG_SHELL="/bin/bash" \
64 --infodir=%{_infodir} \
72 rm -rf $RPM_BUILD_ROOT
75 prefix=$RPM_BUILD_ROOT%{_prefix} \
76 mandir=$RPM_BUILD_ROOT%{_mandir} \
77 infodir=$RPM_BUILD_ROOT%{_infodir} \
78 libdir=$RPM_BUILD_ROOT%{_libdir}
80 # remove these man pages unless we cross-build for win*/netware platforms.
81 # however, this should be done in Makefiles.
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{arch}/bin/*
88 %attr(755,root,root) %{_bindir}/%{target}-*
89 %{_mandir}/man1/%{target}-*
92 rm -rf $RPM_BUILD_ROOT