# # Conditional build: %bcond_with allarchs # enable all targets # define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux) # Summary: GNU Binary Utility Development Utilities Summary(de): GNU Binary Utility Development Utilities Summary(es): Utilitarios para desarrollo de binarios de la GNU Summary(fr): Utilitaires de développement binaire de GNU Summary(pl): Narzêdzia GNU dla programistów Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU Summary(ru): îÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ× GNU ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÉÓÐÏÌÎÑÅÍÙÈ ÐÒÏÇÒÁÍÍ Summary(tr): GNU geliþtirme araçlarý Summary(uk): îÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦× GNU ÄÌÑ ÐÏÂÕÄÏ×É ×ÉËÏÎÕ×ÁÎÉÈ ÐÒÏÇÒÁÍ Name: binutils Version: 2.16.91.0.3 Release: 3 Epoch: 2 License: GPL Group: Development/Tools Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2 # Source0-md5: c737a5787927f60758b4960f10e44f93 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 # Source1-md5: a717d9707ec77d82acb6ec9078c472d6 Patch0: %{name}-gasp.patch Patch1: %{name}-info.patch Patch2: %{name}-libtool-relink.patch Patch3: %{name}-pt_pax_flags.patch Patch4: %{name}-mips-relocs.patch Patch5: %{name}-flex.patch Patch6: %{name}-discarded.patch URL: http://sources.redhat.com/binutils/ BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.8.2 BuildRequires: bison BuildRequires: flex BuildRequires: gettext-devel BuildRequires: perl-tools-pod %ifarch sparc sparc32 BuildRequires: sparc32 %endif BuildRequires: texinfo >= 4.2 Requires(post,postun): /sbin/ldconfig Conflicts: gcc-c++ < 5:3.3 Conflicts: modutils < 2.4.17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Binutils is a collection of binary utilities, including: - ar - create, modify and extract from archives, - nm - lists symbols from object files, - objcopy - copy and translate object files, - objdump - display information from object files, - ranlib - generate an index for the contents of an archive, - size - list the section sizes of an object or archive file, - strings - list printable strings from files, - strip - discard symbols, - addr2line - convert addresses to file and line, - nlmconv - convert object code into an NLM. %description -l es Binutils es una colección de utilitarios necesarios para compilar programas. Incluye assembler y linker, así como varios otros programas para trabajar con formatos que se puedan ejecutar. %description -l pl Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami programów i bibliotek. %description -l pt_BR binutils é uma coletânea de utilitários necessários para compilar programas. Inclui assembler e linker, assim como vários outros programas para trabalhar com formatos executáveis. %description -l ru binutils - ÜÔÏ ÎÁÂÏÒ ÉÎÓÔÒÕÍÅÎÔÏ×, ÎÅÏÂÈÏÄÉÍÙÈ ÄÌÑ ËÏÍÐÉÌÌÑÃÉÉ ÐÒÏÇÒÁÍÍ. ÷ËÌÀÞÁÅÔ ÁÓÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË É ÎÁÂÏÒ ÄÒÕÇÉÈ ÐÒÏÇÒÁÍÍ ÄÌÑ ÒÁÂÏÔÙ Ó ÉÓÐÏÌÎÑÅÍÙÍÉ ÆÁÊÌÁÍÉ ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×. %description -l uk binutils - ÃÅ ÎÁÂ¦Ò ¦ÎÓÔÒÕÍÅÎÔ¦×, ÎÅÏÂȦÄÎÉÈ ÄÌÑ ËÏÍЦÌÑæ§ ÐÒÏÇÒÁÍ. í¦ÓÔÉÔØ ÁÓÅÍÂÌÅÒ, ËÏÍÐÏÎÏ×ÝÉË ÔÁ ¦ÎÛ¦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ Ú ×ÉËÏÎÕ×ÁÎÉÍÉ ÆÁÊÌÁÍÉ Ò¦ÚÎÉÈ ÆÏÒÍÁÔ¦×. %package static Summary: GNU Binutils static libraries Summary(pl): Biblioteki statyczne do GNU Binutils Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description static Static libraries for GNU Binutils. %description static -l pl Biblioteki statyczne GNU Binutils. %package gasp Summary: GASP - old preprocessor for assembly programs Summary(pl): GASP - stary preprocesor dla programów w asemblerze Group: Development/Tools Requires: %{name} = %{epoch}:%{version}-%{release} %description gasp GASP - old preprocessor for assembly programs. It's officially obsoleted, but it's still needed to build some packages. %description gasp -l pl GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie uznany za przestarza³y, ale jest nadal potrzebny do zbudowania niektórych pakietów. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p0 %patch5 -p1 %patch6 -p1 %build # non-standard regeneration (needed because of gasp patch) cd gas aclocal automake --cygnus Makefile automake --cygnus doc/Makefile autoconf cd .. # More targets TARGETS= %ifarch ia64 TARGETS=i686-linux %endif # uhm? %ifarch %{ix86} TARGETS=x86_64-linux %endif %ifarch sparc TARGETS=sparc64-linux %endif %{?addtargets:TARGETS="%{addtargets}"} cp -f /usr/share/automake/config.* . CFLAGS="%{rpmcflags} -fno-strict-aliasing"; export CFLAGS CC="%{__cc}"; export CC %ifarch sparc sparc32 \ %endif ./configure %{_target_platform} \ --disable-debug \ --disable-werror \ --enable-build-warnings=,-Wno-missing-prototypes \ --enable-shared \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \ %ifarch sparc --enable-64-bit-bfd \ %else %{?with_allarchs:--enable-64-bit-bfd} \ %endif %{?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} %{__make} configure-bfd %{__make} headers -C bfd %{__make} all info \ tooldir=%{_prefix} %install rm -rf $RPM_BUILD_ROOT %{__make} install install-info \ prefix=$RPM_BUILD_ROOT%{_prefix} \ tooldir=$RPM_BUILD_ROOT%{_prefix} \ mandir=$RPM_BUILD_ROOT%{_mandir} \ infodir=$RPM_BUILD_ROOT%{_infodir} \ includedir=$RPM_BUILD_ROOT%{_includedir} \ libdir=$RPM_BUILD_ROOT%{_libdir} rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* # remove these man pages unless we cross-build for win*/netware platforms. # however, this should be done in Makefiles. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} install include/libiberty.h $RPM_BUILD_ROOT%{_includedir} install libiberty/pic/libiberty.a $RPM_BUILD_ROOT%{_libdir} # remove evil -L pointing inside builder's home perl -pi -e 's@-L[^ ]*/pic @@g' $RPM_BUILD_ROOT%{_libdir}/libbfd.la %find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun /sbin/ldconfig [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %files -f %{name}.lang %defattr(644,root,root,755) %doc README %attr(755,root,root) %{_bindir}/[!g]* %attr(755,root,root) %{_bindir}/g[!a]* %attr(755,root,root) %{_libdir}/*.so %{_libdir}/libiberty.a %{_libdir}/lib*.la %{_prefix}/lib/ldscripts %{_includedir}/*.h %{_infodir}/[!g]*.info* %{_infodir}/g[!a]*.info* %{_mandir}/man1/* %lang(cs) %{_mandir}/cs/man1/* %lang(de) %{_mandir}/de/man1/* %lang(es) %{_mandir}/es/man1/* %lang(fi) %{_mandir}/fi/man1/* %lang(fr) %{_mandir}/fr/man1/* %lang(hu) %{_mandir}/hu/man1/* %lang(ja) %{_mandir}/ja/man1/* %lang(pl) %{_mandir}/pl/man1/* %files static %defattr(644,root,root,755) %{_libdir}/lib[!i]*.a %files gasp %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gasp %{_infodir}/gasp.info*