X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=binutils.spec;h=f748887ed6e2fc8f99720bc39a469ea984cd0e06;hb=31c9854160d5a4525f1d5948241a3cfc64164b9d;hp=c3a4a9359bb6cd6089d7c1f04726565d3af511c7;hpb=5be0980748943f4e06056f34f3e0974b92de102c;p=packages%2Fbinutils.git diff --git a/binutils.spec b/binutils.spec index c3a4a93..f748887 100644 --- a/binutils.spec +++ b/binutils.spec @@ -2,13 +2,10 @@ # 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) -%bcond_with gold # enable gold (gnu ld successor) on supported archs (x86/sparc) # http://sourceware.org/ml/binutils/2008-03/msg00162.html %bcond_without pax # without PaX flags (for upstream bugreports) -# -%ifnarch %{ix86} %{x8664} sparc -%undefine with_gold -%endif +%bcond_without default_ld # default ld instead of gold +%bcond_without tests # Summary: GNU Binary Utility Development Utilities Summary(de.UTF-8): GNU Binary Utility Development Utilities @@ -20,41 +17,42 @@ Summary(ru.UTF-8): Набор инструментов GNU для построе Summary(tr.UTF-8): GNU geliştirme araçları Summary(uk.UTF-8): Набір інструментів GNU для побудови виконуваних програм Name: binutils -Version: 2.19.51.0.1 +Version: 2.22.52.0.2 Release: 1 Epoch: 3 License: GPL v3+ Group: Development/Tools -Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2 -# Source0-md5: 5854c8e29f4f588b3689b3c378cf423e +# http://git.kernel.org/?p=linux/kernel/git/hjl/binutils.git;a=summary +# git archive --prefix=binutils-2.22.51.0.1/ -o binutils-2.22.51.0.1.tar remotes/origin/linux/release/2.22.51.0.1 +Source0: http://www.kernel.org/pub/linux/devel/binutils/%{name}-%{version}.tar.bz2 +# Source0-md5: 8f121aacee182912a71a610f73aff5da 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 -Patch7: %{name}-absolute-gnu_debuglink-path.patch -Patch8: %{name}-libtool-m.patch +Patch5: %{name}-discarded.patch +Patch6: %{name}-absolute-gnu_debuglink-path.patch +Patch7: %{name}-libtool-m.patch +Patch8: %{name}-build-id.patch +Patch9: %{name}-tooldir.patch URL: http://sources.redhat.com/binutils/ -BuildRequires: autoconf >= 2.60 -BuildRequires: automake >= 1:1.8.2 +BuildRequires: autoconf >= 2.64 +BuildRequires: automake >= 1:1.11 BuildRequires: bison BuildRequires: flex BuildRequires: gettext-devel -%if %{with gold} BuildRequires: libstdc++-devel >= 6:4.0-1 -%endif +%{?with_tests:BuildRequires: libstdc++-static >= 6:4.0} BuildRequires: perl-tools-pod %ifarch sparc sparc32 BuildRequires: sparc32 %endif BuildRequires: texinfo >= 4.2 -Requires: %{name} = %{epoch}:%{version}-%{release} Conflicts: gcc-c++ < 5:3.3 Conflicts: modutils < 2.4.17 +Obsoletes: binutils-gold BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -127,6 +125,7 @@ Summary: GNU binutils static libraries Summary(pl.UTF-8): Biblioteki statyczne do GNU binutils Group: Development/Libraries Requires: %{name}-devel = %{epoch}:%{version}-%{release} +#Requires: zlib-static %description static Static GNU binutils libraries (libbfd, libopcodes). @@ -155,24 +154,27 @@ niektórych pakietów. %patch1 -p1 %patch2 -p1 %{?with_pax:%patch3 -p1} -%patch4 -p0 %patch5 -p1 %patch6 -p1 %patch7 -p1 -%patch8 -p1 +%patch8 -p0 +%patch9 -p1 -# hacks for ac 2.59 only -rm config/override.m4 +# file contains hacks for ac 2.59 only +%{__rm} config/override.m4 %build +%{__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 + %{__aclocal} -I .. -I ../config -I ../bfd + %{__automake} Makefile + %{__automake} doc/Makefile + %{__autoconf} cd .. done @@ -191,8 +193,10 @@ TARGETS=sparc64-linux %{?addtargets:TARGETS="%{addtargets}"} cp -f /usr/share/automake/config.* . -CFLAGS="%{rpmcflags} -fno-strict-aliasing"; export CFLAGS +CFLAGS="%{rpmcflags}"; export CFLAGS +CXXFLAGS="%{rpmcxxflags}"; export CXXFLAGS CC="%{__cc}"; export CC +CXX="%{__cxx}"; export CXX %ifarch sparc sparc32 \ %endif @@ -201,10 +205,13 @@ sparc32 \ --disable-werror \ --enable-build-warnings=,-Wno-missing-prototypes \ --enable-shared \ + --enable-lto \ + --enable-plugins \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ + --with-tooldir=%{_prefix} \ %{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \ %ifarch sparc --enable-64-bit-bfd \ @@ -212,29 +219,25 @@ sparc32 \ %{?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} \ - %{?with_gold:--enable-gold} +%ifarch %{ix86} %{x8664} + --enable-gold%{!?with_default_ld:=default} --enable-ld%{?with_default_ld:=default} \ +%endif -%{__make} -j1 configure-bfd -%{__make} -j1 headers -C bfd -%{__make} -j1 all info \ - tooldir=%{_prefix} +%{__make} + +%{?with_tests:%{__make} check} %install rm -rf $RPM_BUILD_ROOT -%{__make} -j1 install \ - 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} +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* +%{__rm} $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 +%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dlltool,nlmconv,windres}.1 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} @@ -244,6 +247,8 @@ 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 +[ -x $RPM_BUILD_ROOT%{_bindir}/ld.bfd ] || ln $RPM_BUILD_ROOT%{_bindir}/ld{,.bfd} + rm -f $RPM_BUILD_ROOT%{_infodir}/dir %find_lang bfd @@ -251,12 +256,15 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %find_lang gas %find_lang gprof touch ld.lang -%if %{without gold} %find_lang ld +%ifarch %{ix86} %{x8664} +%find_lang gold +%else +:> gold.lang %endif %find_lang opcodes cat bfd.lang opcodes.lang > %{name}-libs.lang -cat gas.lang gprof.lang ld.lang >> %{name}.lang +cat gas.lang gprof.lang ld.lang gold.lang >> %{name}.lang %clean rm -rf $RPM_BUILD_ROOT @@ -279,16 +287,31 @@ rm -rf $RPM_BUILD_ROOT %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) %{_bindir}/addr2line +%attr(755,root,root) %{_bindir}/ar +%attr(755,root,root) %{_bindir}/as +%attr(755,root,root) %{_bindir}/c++filt +%attr(755,root,root) %{_bindir}/elfedit +%attr(755,root,root) %{_bindir}/gprof +%attr(755,root,root) %{_bindir}/ld +%attr(755,root,root) %{_bindir}/ld.bfd +%ifarch %{ix86} %{x8664} +%attr(755,root,root) %{_bindir}/ld.gold +%endif +%attr(755,root,root) %{_bindir}/nm +%attr(755,root,root) %{_bindir}/objcopy +%attr(755,root,root) %{_bindir}/objdump +%attr(755,root,root) %{_bindir}/ranlib +%attr(755,root,root) %{_bindir}/readelf +%attr(755,root,root) %{_bindir}/size +%attr(755,root,root) %{_bindir}/strings +%attr(755,root,root) %{_bindir}/strip %{_infodir}/as.info* %{_infodir}/binutils.info* %{_infodir}/configure.info* %{_infodir}/gprof.info* -%if %{without gold} %{_infodir}/ld.info* %{_prefix}/lib/ldscripts -%endif %{_mandir}/man1/* %lang(cs) %{_mandir}/cs/man1/* %lang(de) %{_mandir}/de/man1/* @@ -311,7 +334,13 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libbfd.la %{_libdir}/libopcodes.la %{_libdir}/libiberty.a -%{_includedir}/*.h +%{_includedir}/ansidecl.h +%{_includedir}/bfd.h +%{_includedir}/bfdlink.h +%{_includedir}/dis-asm.h +%{_includedir}/libiberty.h +%{_includedir}/plugin-api.h +%{_includedir}/symcat.h %{_infodir}/bfd.info* %files static