]> git.pld-linux.org Git - packages/crossppc-binutils.git/blobdiff - crossppc-binutils.spec
- up to 2.19.51.0.4 (sync with binutils.spec)
[packages/crossppc-binutils.git] / crossppc-binutils.spec
index f8c412273092ce41cb50604ab762a8b9f901a0ae..c8dbc1b3c855ab07c9b9b4b2670c77f2589b5e03 100644 (file)
@@ -1,25 +1,48 @@
+#
+# Conditional build:
+%bcond_with    gold            # enable gold (gnu ld successor) on supported archs (x86/sparc)
+
 Summary:       Cross PPC GNU binary utility development utilities - binutils
-Summary(es):   Utilitarios para desarrollo de binarios de la GNU - PPC binutils
-Summary(fr):   Utilitaires de développement binaire de GNU - PPC binutils
-Summary(pl):   Skro¶ne narzêdzia programistyczne GNU dla PPC - binutils
-Summary(pt_BR):        Utilitários para desenvolvimento de binários da GNU - PPC binutils
-Summary(tr):   GNU geliþtirme araçlarý - PPC binutils
+Summary(es.UTF-8):     Utilitarios para desarrollo de binarios de la GNU - PPC binutils
+Summary(fr.UTF-8):     Utilitaires de développement binaire de GNU - PPC binutils
+Summary(pl.UTF-8):     Skrośne narzędzia programistyczne GNU dla PPC - binutils
+Summary(pt_BR.UTF-8):  Utilitários para desenvolvimento de binários da GNU - PPC binutils
+Summary(tr.UTF-8):     GNU geliştirme araçları - PPC binutils
 Name:          crossppc-binutils
-Version:       2.15.94.0.2.2
+Version:       2.19.51.0.4
 Release:       1
-License:       GPL
+License:       GPL v3+
 Group:         Development/Tools
 Source0:       ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
-# Source0-md5: e9bcf84d9e6b5a2d840e76f22a3fce5f
+# Source0-md5: 7b0d5a4fd434237922aeeab0409f146d
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/binutils-non-english-man-pages.tar.bz2
+# Source1-md5: a717d9707ec77d82acb6ec9078c472d6
+Patch0:                binutils-gasp.patch
+Patch1:                binutils-info.patch
+Patch2:                binutils-libtool-relink.patch
+Patch3:                binutils-pt_pax_flags.patch
+Patch4:                binutils-mips-relocs.patch
+Patch5:                binutils-flex.patch
+Patch6:                binutils-discarded.patch
+Patch7:                binutils-absolute-gnu_debuglink-path.patch
+Patch8:                binutils-libtool-m.patch
+Patch9:                binutils-build-id.patch
+Patch10:       binutils-tooldir.patch
 URL:           http://sources.redhat.com/binutils/
-BuildRequires: automake
-BuildRequires: bash
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.8.2
 BuildRequires: bison
 BuildRequires: flex
 BuildRequires: gettext-devel
+%if %{with gold}
+BuildRequires: libstdc++-devel >= 6:4.0-1
+%endif
+BuildRequires: perl-tools-pod
 %ifarch sparc sparc32
 BuildRequires: sparc32
 %endif
+BuildRequires: texinfo >= 4.2
+Conflicts:     gcc-c++ < 5:3.3
 ExcludeArch:   ppc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,52 +65,79 @@ Binutils is a collection of binary utilities, including:
 
 This package contains the cross version for PPC.
 
-%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 pl.UTF-8
+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.
 
-Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla PPC.
+Ten pakiet zawiera wersję skrośną generującą kod dla PPC.
 
 %prep
 %setup -q -n binutils-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%{?with_pax:%patch3 -p1}
+%patch4 -p0
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+
+# file contains hacks for ac 2.59 only
+rm config/override.m4
 
 %build
-cp /usr/share/automake/config.sub .
+%{__aclocal}
+%{__autoconf}
+
+# non-standard regeneration (needed because of gasp patch)
+# AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4
+for dir in gas bfd; do
+       cd $dir || exit 1
+       aclocal -I .. -I ../config -I ../bfd
+       automake --cygnus Makefile
+       automake --cygnus doc/Makefile
+       autoconf
+       cd ..
+done
 
-# ldscripts won't be generated properly if SHELL is not bash...
-CFLAGS="%{rpmcflags}" \
-LDFLAGS="%{rpmldflags}" \
-CONFIG_SHELL="/bin/bash" \
+cp -f /usr/share/automake/config.* .
+
+CFLAGS="%{rpmcflags}"; export CFLAGS
+CC="%{__cc}"; export CC
 %ifarch sparc
 sparc32 \
 %endif
-./configure \
+./configure %{_target_platform} \
+       --disable-debug \
+       --disable-werror \
+       --enable-build-warnings=,-Wno-missing-prototypes \
        --disable-shared \
+       --disable-nls \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
-       --mandir=%{_mandir} \
        --infodir=%{_infodir} \
+       --mandir=%{_mandir} \
+       --with-tooldir=%{arch} \
+       %{?with_gold:--enable-gold} \
        --target=%{target}
 
-%{__make} all \
-       tooldir=%{_prefix} \
-       EXEEXT=""
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_prefix}
 
 %{__make} install \
-       prefix=$RPM_BUILD_ROOT%{_prefix} \
-       mandir=$RPM_BUILD_ROOT%{_mandir} \
-       infodir=$RPM_BUILD_ROOT%{_infodir} \
-       libdir=$RPM_BUILD_ROOT%{_libdir}
+       DESTDIR=$RPM_BUILD_ROOT
 
 # 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
+rm $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -99,7 +149,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{arch}
 %dir %{arch}/bin
 %attr(755,root,root) %{arch}/bin/*
+%if %{without gold}
 %dir %{arch}/lib
-%dir %{arch}/lib/*
-%{arch}/lib/ldscripts/*
+%{arch}/lib/ldscripts
+%endif
 %{_mandir}/man?/%{target}-*
This page took 0.101886 seconds and 4 git commands to generate.