-Summary: GNU Binary Utility Development Utilities
-Summary(de): GNU Binary Utility Development Utilities
-Summary(fr): Utilitaires de développement binaire de GNU
-Summary(pl): Narzêdzia GNU dla programistów
-Summary(tr): GNU geliþtirme araçlarý
-Name: binutils
-Version: 2.9.1.0.19
-Release: 1
-Copyright: GPL
-Group: Development/Tools
-Source ftp://ftp.kernel.org/pub/linux/devel/gcc/%{name}-%{version}.tar.bz2
-Patch0: binutils-2.9.1-sparcsectionreloc.patch
-Buildroot: /tmp/%{name}-%{version}-root
+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.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
+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. Zawiera on assembler, konsolidator (linker), a tak¿e inne narzêdzia
-do manipulowania na binarnych plikach programów i bibliotek.
+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: Libraries
+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
Static libraries for GNU Binutils.
%description -l pl static
-Biblioteki statyczne do GNU Binutils.
+Biblioteki statyczne GNU Binutils.
%prep
-%setup -q
-(cd bfd;
-%patch -p0 -b .secreloc
-)
+%setup -q
+%patch0 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-%ifarch sparc sparc64
-sparc32 ./configure \
-%else
-./configure \
+CFLAGS="%{rpmcflags}"
+export CFLAGS
+%ifarch sparc
+sparc32 \
%endif
- --prefix=/usr --enable-shared
-make tooldir=/usr all info
+./configure %{_target_platform} \
+ --enable-shared \
+ --disable-debug \
+ --prefix=%{_prefix} \
+ --infodir=%{_infodir} \
+ --mandir=%{_mandir} \
+%ifarch sparc
+ --enable-targets=sparc64-linux
+%endif
+
+%{__make} tooldir=%{_prefix} all info
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr
-make install install-info \
- prefix=$RPM_BUILD_ROOT/usr \
- tooldir=$RPM_BUILD_ROOT/usr
+install -d $RPM_BUILD_ROOT%{_prefix}
+
+%{__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}
-strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*.so.*.*}
-gzip -q9f $RPM_BUILD_ROOT/usr/{info/*.info*,man/man1/*}
+# these are already in gcc-g++
+rm -f $RPM_BUILD_ROOT%{_bindir}/c++filt $RPM_BUILD_ROOT%{_mandir}/man1/c++filt*
-install include/libiberty.h $RPM_BUILD_ROOT/usr/include
+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
+
+tar xzvf %{SOURCE1} -C $RPM_BUILD_ROOT%{_mandir}/
+
+install include/libiberty.h $RPM_BUILD_ROOT%{_includedir}
+
+gzip -9nf README
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
-/sbin/install-info --info-dir=/usr/info /usr/info/as.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/bfd.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/binutils.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/gasp.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/gprof.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/ld.info.gz
-/sbin/install-info --info-dir=/usr/info /usr/info/standards.info.gz
-
-%preun
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/as.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/bfd.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/binutils.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/gasp.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/gprof.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/ld.info.gz
-/sbin/install-info --delete --info-dir=/usr/info /usr/info/standards.info.gz
-
-%postun -p /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
-%defattr(644, root, root, 755)
-%attr(755, root, root) /usr/bin/*
-%attr(644, root, man) /usr/man/man1/*
-/usr/include/*
-%attr(755, root, root) /usr/lib/lib*.so.*.*
-/usr/lib/lib*.so
-/usr/lib/ldscripts
-/usr/info/*info*
-/usr/lib/libiberty.a
+%defattr(644,root,root,755)
+%doc *.gz
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/*.so
+
+%{_libdir}/ldscripts
+%{_includedir}/*.h
+
+%{_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)
-/usr/lib/libbfd.a
-/usr/lib/libopcodes.a
-
-%changelog
-* 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).
-
-* Mon Dec 7 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.17-1]
-- added gzipping man pages,
-- added using LDFLAGS="-s" to ./configure enviroment,
-- changed base Source url to ftp:ftp.kernel.org/pub/linux/devel/gcc/.
-
-* Fri Oct 9 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.9.1.0.14-2]
-- /usr/lib/libiberty.a moved to main.
-
-* 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,
-- added stripping shared libraries,
-- added %attr and %defattr macros in %files (allows build package from
- non-root account).
-
-* Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com>
-- updated to 2.9.1.0.7.
-
-* Wed Jun 03 1998 Jeff Johnson <jbj@redhat.com>
-- updated to 2.9.1.0.6.
-
-* Tue Jun 02 1998 Erik Troan <ewt@redhat.com>
-- added patch from rth to get right offsets for sections in relocateable
- objects on sparc32
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
-- version 2.9.1.0.4 is out; even more, it is public !
-
-* Tue May 05 1998 Jeff Johnson <jbj@redhat.com>
-- updated to 2.9.1.0.3.
-
-* Mon Apr 20 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 2.9.0.3
-
-* Tue Apr 14 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 2.9.0.2
-
-* Sun Apr 05 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 2.8.1.0.29 (HJ warned me that this thing is a moving target...
- :-)
-- "fixed" the damn make install command so that all tools get installed
-
-* Thu Apr 02 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded again to 2.8.1.0.28 (at least on alpha now egcs will compile)
-- added info packages handling
-
-* Tue Mar 10 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 2.8.1.0.23
-
-* Mon Mar 02 1998 Cristian Gafton <gafton@redhat.com>
-- updated to 2.8.1.0.15 (required to compile the newer glibc)
-- all patches are obsoleted now
-
-* Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
-- added 2.8.1.0.1 patch from hj
-- added patch for alpha palcode form rth
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a