5 %bcond_with allarchs # enable all targets
6 # define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux)
8 Summary: GNU Binary Utility Development Utilities
9 Summary(de): GNU Binary Utility Development Utilities
10 Summary(es): Utilitarios para desarrollo de binarios de la GNU
11 Summary(fr): Utilitaires de développement binaire de GNU
12 Summary(pl): Narzêdzia GNU dla programistów
13 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU
14 Summary(ru): îÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ× GNU ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÉÓÐÏÌÎÑÅÍÙÈ ÐÒÏÇÒÁÍÍ
15 Summary(tr): GNU geliþtirme araçlarý
16 Summary(uk): îÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦× GNU ÄÌÑ ÐÏÂÕÄÏ×É ×ÉËÏÎÕ×ÁÎÉÈ ÐÒÏÇÒÁÍ
18 Version: 2.15.94.0.2.2
22 Group: Development/Tools
23 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
24 # Source0-md5: e9bcf84d9e6b5a2d840e76f22a3fce5f
25 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
26 # Source1-md5: a717d9707ec77d82acb6ec9078c472d6
27 Patch0: %{name}-gasp.patch
28 Patch1: %{name}-info.patch
29 Patch2: %{name}-array-sects-compat.patch
30 Patch3: %{name}-libtool-relink.patch
31 Patch4: %{name}-pt_pax_flags.patch
32 Patch5: %{name}-mips-relocs.patch
33 URL: http://sources.redhat.com/binutils/
34 BuildRequires: autoconf >= 2.59
35 BuildRequires: automake >= 1:1.8.2
38 BuildRequires: gettext-devel
39 BuildRequires: perl-tools-pod
41 BuildRequires: sparc32
43 BuildRequires: texinfo >= 4.2
44 Requires(post,postun): /sbin/ldconfig
45 Conflicts: gcc-c++ < 5:3.3
46 Conflicts: modutils < 2.4.17
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 %define _libdir /usr/lib
54 Binutils is a collection of binary utilities, including:
55 - ar - create, modify and extract from archives,
56 - nm - lists symbols from object files,
57 - objcopy - copy and translate object files,
58 - objdump - display information from object files,
59 - ranlib - generate an index for the contents of an archive,
60 - size - list the section sizes of an object or archive file,
61 - strings - list printable strings from files,
62 - strip - discard symbols,
63 - addr2line - convert addresses to file and line,
64 - nlmconv - convert object code into an NLM.
67 Binutils es una colección de utilitarios necesarios para compilar
68 programas. Incluye assembler y linker, así como varios otros programas
69 para trabajar con formatos que se puedan ejecutar.
72 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
73 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
74 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
75 programów i bibliotek.
78 binutils é uma coletânea de utilitários necessários para compilar
79 programas. Inclui assembler e linker, assim como vários outros
80 programas para trabalhar com formatos executáveis.
83 binutils - ÜÔÏ ÎÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ËÏÍÐÉÌÌÑÃÉÉ
84 ÐÒÏÇÒÁÍÍ. ÷ËÌÀÞÁÅÔ ÁÓÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË É ÎÁÂÏÒ ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ ÄÌÑ
85 ÒÁÂÏÔÙ Ó ÉÓÐÏÌÎÑÅÍÙÍÉ ÆÁÊÌÁÍÉ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×.
88 binutils - ÃÅ ÎÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦×, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÍЦÌÑæ§ ÐÒÏÇÒÁÍ.
89 í¦ÓÔÉÔØ ÁÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ Ú
90 ×ÉËÏÎÕ×ÁÎÉÍÉ ÆÁÊÌÁÍÉ Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×.
93 Summary: GNU Binutils static libraries
94 Summary(pl): Biblioteki statyczne do GNU Binutils
95 Group: Development/Libraries
96 Requires: %{name} = %{epoch}:%{version}-%{release}
99 Static libraries for GNU Binutils.
101 %description static -l pl
102 Biblioteki statyczne GNU Binutils.
105 Summary: GASP - old preprocessor for assembly programs
106 Summary(pl): GASP - stary preprocesor dla programów w asemblerze
107 Group: Development/Tools
108 Requires: %{name} = %{epoch}:%{version}-%{release}
111 GASP - old preprocessor for assembly programs. It's officially
112 obsoleted, but it's still needed to build some packages.
114 %description gasp -l pl
115 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
116 uznany za przestarza³y, ale jest nadal potrzebny do zbudowania
123 /bin/sh patches/README
135 # non-standard regeneration (needed because of gasp patch)
138 automake --cygnus Makefile
139 automake --cygnus doc/Makefile
153 TARGETS=sparc64-linux
155 %{?addtargets:TARGETS="%{addtargets}"}
157 cp -f /usr/share/automake/config.* .
158 CFLAGS="%{rpmcflags}"; export CFLAGS
159 CC="%{__cc}"; export CC
164 ./configure %{_target_platform} \
167 --prefix=%{_prefix} \
168 --libdir=%{_libdir} \
169 --infodir=%{_infodir} \
170 --mandir=%{_mandir} \
171 %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
173 --enable-64-bit-bfd \
175 %{?with_allarchs:--enable-64-bit-bfd} \
177 %{?with_allarchs:--enable-targets=alpha-linux,arm-linux,cris-linux,hppa-linux,i386-linux,ia64-linux,x86_64-linux,m68k-linux,mips-linux,mips64-linux,mips64el-linux,mipsel-linux,ppc-linux,s390-linux,s390x-linux,sh-linux,sparc-linux,sparc64-linux,i386-linuxaout}
179 %{__make} configure-bfd
180 %{__make} headers -C bfd
181 %{__make} tooldir=%{_prefix} all info
184 rm -rf $RPM_BUILD_ROOT
186 %{__make} install install-info \
187 prefix=$RPM_BUILD_ROOT%{_prefix} \
188 tooldir=$RPM_BUILD_ROOT%{_prefix} \
189 mandir=$RPM_BUILD_ROOT%{_mandir} \
190 infodir=$RPM_BUILD_ROOT%{_infodir} \
191 includedir=$RPM_BUILD_ROOT%{_includedir} \
192 libdir=$RPM_BUILD_ROOT%{_libdir}
194 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
196 # remove these man pages unless we cross-build for win*/netware platforms.
197 # however, this should be done in Makefiles.
198 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
200 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
202 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
203 install libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir}
205 # remove evil -L pointing inside builder's home
206 perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
208 %find_lang %{name} --all-name
211 rm -rf $RPM_BUILD_ROOT
215 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
219 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
221 %files -f %{name}.lang
222 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/[!g]*
225 %attr(755,root,root) %{_bindir}/g[!a]*
226 %attr(755,root,root) %{_libdir}*/*.so
227 %{_libdir}*/libiberty.a
230 %{_prefix}/lib/ldscripts
233 %{_infodir}/[!g]*.info*
234 %{_infodir}/g[!a]*.info*
236 %lang(cs) %{_mandir}/cs/man1/*
237 %lang(de) %{_mandir}/de/man1/*
238 %lang(es) %{_mandir}/es/man1/*
239 %lang(fi) %{_mandir}/fi/man1/*
240 %lang(fr) %{_mandir}/fr/man1/*
241 %lang(hu) %{_mandir}/hu/man1/*
242 %lang(ja) %{_mandir}/ja/man1/*
243 %lang(pl) %{_mandir}/pl/man1/*
246 %defattr(644,root,root,755)
247 %{_libdir}*/lib[!i]*.a
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/gasp
252 %{_infodir}/gasp.info*