3 %bcond_with allarchs # enable all targets
4 # define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux)
6 Summary: GNU Binary Utility Development Utilities
7 Summary(de): GNU Binary Utility Development Utilities
8 Summary(es): Utilitarios para desarrollo de binarios de la GNU
9 Summary(fr): Utilitaires de développement binaire de GNU
10 Summary(pl): Narzêdzia GNU dla programistów
11 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU
12 Summary(ru): îÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ× GNU ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÉÓÐÏÌÎÑÅÍÙÈ ÐÒÏÇÒÁÍÍ
13 Summary(tr): GNU geliþtirme araçlarý
14 Summary(uk): îÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦× GNU ÄÌÑ ÐÏÂÕÄÏ×É ×ÉËÏÎÕ×ÁÎÉÈ ÐÒÏÇÒÁÍ
20 Group: Development/Tools
21 Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
22 # Source0-md5: 00eccd47e19a9f24410a137a849aa3fc
23 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
24 # Source1-md5: a717d9707ec77d82acb6ec9078c472d6
25 Patch0: %{name}-gasp.patch
26 Patch1: %{name}-info.patch
27 Patch2: %{name}-libtool-relink.patch
28 Patch3: %{name}-pt_pax_flags.patch
29 Patch4: %{name}-mips-relocs.patch
30 Patch5: %{name}-flex.patch
31 Patch6: %{name}-discarded.patch
32 Patch7: %{name}-absolute-gnu_debuglink-path.patch
33 Patch8: %{name}-pr3191.patch
34 Patch9: %{name}-pr3290.patch
35 URL: http://sources.redhat.com/binutils/
36 BuildRequires: autoconf >= 2.59
37 BuildRequires: automake >= 1:1.8.2
40 BuildRequires: gettext-devel
41 BuildRequires: perl-tools-pod
43 BuildRequires: sparc32
45 BuildRequires: texinfo >= 4.2
46 Requires(post,postun): /sbin/ldconfig
47 Conflicts: gcc-c++ < 5:3.3
48 Conflicts: modutils < 2.4.17
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Binutils is a collection of binary utilities, including:
53 - ar - create, modify and extract from archives,
54 - nm - lists symbols from object files,
55 - objcopy - copy and translate object files,
56 - objdump - display information from object files,
57 - ranlib - generate an index for the contents of an archive,
58 - size - list the section sizes of an object or archive file,
59 - strings - list printable strings from files,
60 - strip - discard symbols,
61 - addr2line - convert addresses to file and line,
62 - nlmconv - convert object code into an NLM.
65 Binutils es una colección de utilitarios necesarios para compilar
66 programas. Incluye assembler y linker, así como varios otros programas
67 para trabajar con formatos que se puedan ejecutar.
70 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
71 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
72 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
73 programów i bibliotek.
76 binutils é uma coletânea de utilitários necessários para compilar
77 programas. Inclui assembler e linker, assim como vários outros
78 programas para trabalhar com formatos executáveis.
81 binutils - ÜÔÏ ÎÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ËÏÍÐÉÌÌÑÃÉÉ
82 ÐÒÏÇÒÁÍÍ. ÷ËÌÀÞÁÅÔ ÁÓÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË É ÎÁÂÏÒ ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ ÄÌÑ
83 ÒÁÂÏÔÙ Ó ÉÓÐÏÌÎÑÅÍÙÍÉ ÆÁÊÌÁÍÉ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×.
86 binutils - ÃÅ ÎÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦×, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÍЦÌÑæ§ ÐÒÏÇÒÁÍ.
87 í¦ÓÔÉÔØ ÁÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ Ú
88 ×ÉËÏÎÕ×ÁÎÉÍÉ ÆÁÊÌÁÍÉ Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×.
91 Summary: GNU Binutils static libraries
92 Summary(pl): Biblioteki statyczne do GNU Binutils
93 Group: Development/Libraries
94 Requires: %{name} = %{epoch}:%{version}-%{release}
97 Static libraries for GNU Binutils.
99 %description static -l pl
100 Biblioteki statyczne GNU Binutils.
103 Summary: GASP - old preprocessor for assembly programs
104 Summary(pl): GASP - stary preprocesor dla programów w asemblerze
105 Group: Development/Tools
106 Requires: %{name} = %{epoch}:%{version}-%{release}
109 GASP - old preprocessor for assembly programs. It's officially
110 obsoleted, but it's still needed to build some packages.
112 %description gasp -l pl
113 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
114 uznany za przestarza³y, ale jest nadal potrzebny do zbudowania
131 # non-standard regeneration (needed because of gasp patch)
134 automake --cygnus Makefile
135 automake --cygnus doc/Makefile
149 TARGETS=sparc64-linux
151 %{?addtargets:TARGETS="%{addtargets}"}
153 cp -f /usr/share/automake/config.* .
154 CFLAGS="%{rpmcflags} -fno-strict-aliasing"; export CFLAGS
155 CC="%{__cc}"; export CC
159 ./configure %{_target_platform} \
162 --enable-build-warnings=,-Wno-missing-prototypes \
164 --prefix=%{_prefix} \
165 --libdir=%{_libdir} \
166 --infodir=%{_infodir} \
167 --mandir=%{_mandir} \
168 %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
170 --enable-64-bit-bfd \
172 %{?with_allarchs:--enable-64-bit-bfd} \
174 %{?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}
176 %{__make} configure-bfd
177 %{__make} headers -C bfd
182 rm -rf $RPM_BUILD_ROOT
185 prefix=$RPM_BUILD_ROOT%{_prefix} \
186 tooldir=$RPM_BUILD_ROOT%{_prefix} \
187 mandir=$RPM_BUILD_ROOT%{_mandir} \
188 infodir=$RPM_BUILD_ROOT%{_infodir} \
189 includedir=$RPM_BUILD_ROOT%{_includedir} \
190 libdir=$RPM_BUILD_ROOT%{_libdir}
192 rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
194 # remove these man pages unless we cross-build for win*/netware platforms.
195 # however, this should be done in Makefiles.
196 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1
198 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
200 install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
201 install libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir}
203 # remove evil -L pointing inside builder's home
204 perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la
206 %find_lang %{name} --all-name
209 rm -rf $RPM_BUILD_ROOT
213 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
217 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
219 %files -f %{name}.lang
220 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/[!g]*
223 %attr(755,root,root) %{_bindir}/g[!a]*
224 %attr(755,root,root) %{_libdir}/*.so
225 %{_libdir}/libiberty.a
228 %{_prefix}/lib/ldscripts
231 %{_infodir}/[!g]*.info*
232 %{_infodir}/g[!a]*.info*
234 %lang(cs) %{_mandir}/cs/man1/*
235 %lang(de) %{_mandir}/de/man1/*
236 %lang(es) %{_mandir}/es/man1/*
237 %lang(fi) %{_mandir}/fi/man1/*
238 %lang(fr) %{_mandir}/fr/man1/*
239 %lang(hu) %{_mandir}/hu/man1/*
240 %lang(ja) %{_mandir}/ja/man1/*
241 %lang(pl) %{_mandir}/pl/man1/*
244 %defattr(644,root,root,755)
245 %{_libdir}/lib[!i]*.a
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_bindir}/gasp
250 %{_infodir}/gasp.info*