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(tr): GNU geliþtirme araçlarý
Name: binutils
-Version: 2.9.1.0.24
-Release: 2
-Copyright: GPL
+Version: 2.11.92.0.5
+Release: 1
+Epoch: 1
+License: GPL
Group: Development/Tools
+Group(de): Entwicklung/Werkzeuge
+Group(fr): Development/Outils
Group(pl): Programowanie/Narzêdzia
-####### ftp://ftp.varesearch.com/pub/support/hjl/binutils/
-Source: %{name}-%{version}.tar.gz
-Patch0: binutils-info.patch
-BuildRoot: /tmp/%{name}-%{version}-root
+Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2
+Source1: %{name}-non-english-man-pages.tar.gz
+Patch0: %{name}-info.patch
+URL: http://sourceware.cygnus.com/binutils/
+Prereq: /sbin/ldconfig
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: perl-devel
+%ifarch sparc sparc32
+BuildRequires: sparc32
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-binutils is a collection of utilities necessary for compiling programs. It
-includes the assembler and linker, as well as a number of other
-miscellaneous programs for dealing with executable formats.
+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 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.
-
-%package static
+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 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 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.
+
+%package static
Summary: GNU Binutils static libraries
Summary(pl): Biblioteki statyczne do GNU Binutils
Group: Development/Libraries
+Group(de): Entwicklung/Libraries
+Group(es): Desarrollo/Bibliotecas
+Group(fr): Development/Librairies
Group(pl): Programowanie/Biblioteki
+Group(pt_BR): Desenvolvimento/Bibliotecas
+Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
Requires: %{name} = %{version}
%description static
%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-%ifarch sparc sparc64
-sparc32 ./configure %{_target} \
-%else
- ./configure \
- --prefix=%{_prefix} \
- --enable-shared \
- --disable-debug \
- --infodir=%{_infodir} %{_target_platform}
+CFLAGS="%{rpmcflags}"
+export CFLAGS
+%ifarch sparc
+sparc32 \
+%endif
+./configure %{_target_platform} \
+ --enable-shared \
+ --disable-debug \
+ --prefix=%{_prefix} \
+ --infodir=%{_infodir} \
+ --mandir=%{_mandir} \
+%ifarch sparc
+ --enable-targets=sparc64-linux
%endif
-make tooldir=/usr all info
+%{__make} tooldir=%{_prefix} all info
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_prefix}
-install -d $RPM_BUILD_ROOT/usr
-
-make install install-info \
- prefix=$RPM_BUILD_ROOT/usr \
- tooldir=$RPM_BUILD_ROOT/usr \
+%{__make} install install-info \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
+ tooldir=$RPM_BUILD_ROOT%{_prefix} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
- infodir=$RPM_BUILD_ROOT%{_infodir}
+ infodir=$RPM_BUILD_ROOT%{_infodir} \
+ includedir=$RPM_BUILD_ROOT%{_includedir} \
+ libdir=$RPM_BUILD_ROOT%{_libdir}
+
+# these are already in gcc-g++
+rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt $RPM_BUILD_ROOT%{_mandir}/man1/c++filt*
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*.inf*
+rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
-rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt $RPM_BUILD_ROOT%{_mandir}/man1/c++*
+# 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
-strip $RPM_BUILD_ROOT%{_bindir}/*
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so
+tar xzvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}/
install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
- README
+gzip -9nf README
%clean
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/install-info %{_infodir}/as.info.gz /etc/info-dir
-/sbin/install-info %{_infodir}/bfd.info.gz /etc/info-dir
-/sbin/install-info %{_infodir}/binutils.info.gz /etc/info-dir
-/sbin/install-info %{_infodir}/ld.info.gz /etc/info-dir
-/sbin/install-info %{_infodir}/gasp.info.gz /etc/info-dir
-/sbin/install-info %{_infodir}/gprof.info.gz /etc/info-dir
/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%preun
-if [ "$1" = "0" ]; then
- /sbin/install-info --delete %{_infodir}/as.info.gz /etc/info-dir
- /sbin/install-info --delete %{_infodir}/bfd.info.gz /etc/info-dir
- /sbin/install-info --delete %{_infodir}/binutils.info.gz /etc/info-dir
- /sbin/install-info --delete %{_infodir}/ld.info.gz /etc/info-dir
- /sbin/install-info --delete %{_infodir}/gasp.info.gz /etc/info-dir
- /sbin/install-info --delete %{_infodir}/gprof.info.gz /etc/info-dir
-fi
-
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%files
%defattr(644,root,root,755)
%doc *.gz
-
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/*.so
%{_libdir}/ldscripts
%{_includedir}/*.h
-%{_infodir}/*.gz
-
-%{_libdir}/libiberty.a
+%{_infodir}/*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}/libbfd.a
-%{_libdir}/libopcodes.a
-
-%changelog
-* Mon May 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.9.1.0.24-2]
-- removed c++filt -- provides by egcs (at now...)
-- used some macros,
-- FHS-2.0 ready.
-
-* Thu Apr 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.23-2]
-- recompiles on new rpm.
-
-* Wed Apr 7 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.23-1]
-- standarized {un}registering info pages (added binutils-info.patch).
-
-* Thu Feb 18 1999 Micha³ Kuratczyk <kura@wroclaw.art.pl>
- [2.9.1.0.19-5d]
-- gzipping instead bzipping
-- added LDFLAGS=-s
-- minor changes
-
-* Mon Jan 18 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.9.1.0.19-4d]
-- fixed %preun && %post,
-- commpresed %doc,
-- added Group(pl),
-- added Prereq: /sbin/ldconfig,
-- added URL,
-
- by Maciek W. Ró¿ycki <macro@ds2.pg.gda.pl>
-
-- fixed the binary BFD to correctly output sections,
-- modified gas so it recognizes single-argument aad and aam,
-- modified gas so iret generates a non-prefixed opcode
- regardless of the current argument size.
-- added support for new Pentium II instructions (see "Addendum
- -- Intel Architecture Software Developer's Manual, Volume 2:
- Instruction Set Reference", order number 243689-001),
-- fixed a problem with relative branch distance overflow checking,
-- added a fix for 16-bit PC-relative relocations on i386.
-
-* Sun Dec 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.9.1.0.19-2d]
-- removed static subpackages,
-- cosmetic changes,
-- final build for Tornado.
-
-* Wed Dec 8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.17-2]
-- added using sparc32 for run ./configure script on sparc
- architecture (thanks DaveM).
-
-* Fri Oct 9 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.15-2]
-- /usr/lib/libiberty.a moved to main.
-
-* Sat Oct 03 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.9.1.0.15-1d]
-- fixed pl translation,
-- updated to 2.9.1.0.15.
-
-* Sun Sep 13 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.9.1.0.12-1d]
-- updated to 2.9.1.0.12.
-- install -d instead mkdir -p,
-- restricted ELF binaries permissions.
-
-* Tue Sep 07 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.9.1.0.11-1d]
-- updated to 2.9.1.0.11,
-- build without $RPM_OPT_FLAGS - some problems with egcs & -O6 ...
-- added a static package,
-- build from non root's account.
-
-* Sat Aug 22 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.10-3]
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added static subpackage,
-- removed /usr/lib/lib*.la files,
-- added using $RPM_OPT_FLAGS during building package.
-
-* Fri Jun 12 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.9.1.0.6-2]
-- build against GNU libc-2.1.
-
-* Fri May 29 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
-- Replaced binutils to binutils-2.9.1.0.6,
-- start at RH spec file.
+%{_libdir}/lib*.a