# # conditional build: # _with_allarchs - enable # 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.14.90.0.7 Release: 1 Epoch: 2 License: GPL Group: Development/Tools Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2 # Source0-md5: b5b1608f7308c487c0f3af8e4592a71a 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}-array-sects-compat.patch Patch3: %{name}-eh-frame-ro.patch Patch4: %{name}-ia64-bootstrap.patch Patch5: %{name}-libtool-relink.patch URL: http://sources.redhat.com/binutils/ BuildRequires: automake 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) %ifarch sparc64 %define _libdir /usr/lib %endif %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 colectánea 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} %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} %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 %ifarch %{ix86} %patch2 -p1 %endif %patch5 -p1 # need update: #%patch3 -p1 #%patch4 -p1 %build cp -f /usr/share/automake/config.* . CFLAGS="%{rpmcflags}"; export CFLAGS CC="%{__cc}"; export CC %ifarch sparc sparc32 \ %endif ./configure %{_target_platform} \ --enable-shared \ --disable-debug \ --prefix=%{_prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ %ifarch sparc --enable-targets=sparc64-linux \ --enable-64-bit-bfd \ %endif %ifnarch sparc %{?_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} \ tooldir=%{_prefix} \ all info %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} # 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 %{_libdir}/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*