]> git.pld-linux.org Git - packages/binutils.git/blobdiff - binutils.spec
- tests require statis -lstdc++ now
[packages/binutils.git] / binutils.spec
index a244f4676e25c4a8f8d1bfa67d9eda078fc886d6..f748887ed6e2fc8f99720bc39a469ea984cd0e06 100644 (file)
@@ -3,8 +3,9 @@
 %bcond_with    allarchs        # enable all targets
 # define addtargets x,y,z      # build with additional targets x,y,z (e.g. x86_64-linux)
                                # http://sourceware.org/ml/binutils/2008-03/msg00162.html
-%bcond_without gold            # don't build gold (no C++ dependencies)
 %bcond_without pax             # without PaX flags (for upstream bugreports)
+%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
@@ -16,13 +17,15 @@ Summary(ru.UTF-8):  Набор инструментов GNU для построе
 Summary(tr.UTF-8):     GNU geliştirme araçları
 Summary(uk.UTF-8):     Набір інструментів GNU для побудови виконуваних програм
 Name:          binutils
-Version:       2.21.51.0.5
+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: 85cdd97069c230b0a8771d50e309754f
+# 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
@@ -40,7 +43,8 @@ BuildRequires:        automake >= 1:1.11
 BuildRequires: bison
 BuildRequires: flex
 BuildRequires: gettext-devel
-%{?with_gold:BuildRequires:    libstdc++-devel >= 6:4.0-1}
+BuildRequires: libstdc++-devel >= 6:4.0-1
+%{?with_tests:BuildRequires:   libstdc++-static >= 6:4.0}
 BuildRequires: perl-tools-pod
 %ifarch sparc sparc32
 BuildRequires: sparc32
@@ -48,6 +52,7 @@ BuildRequires:        sparc32
 BuildRequires: texinfo >= 4.2
 Conflicts:     gcc-c++ < 5:3.3
 Conflicts:     modutils < 2.4.17
+Obsoletes:     binutils-gold
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -120,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).
@@ -142,42 +148,6 @@ GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
 uznany za przestarzały, ale jest nadal potrzebny do zbudowania
 niektórych pakietów.
 
-%package gold
-Summary:       GOLD - new version of ELF linker originally developed at Google
-Summary(pl.UTF-8):     GOLD - nowa wersja linkera ELF powstała w Google
-Group:         Development/Tools
-Requires:      %{name} = %{epoch}:%{version}-%{release}
-
-%description gold
-gold is an ELF linker. It is intended to have complete support for ELF
-and to run as fast as possible on modern systems. For normal use it is
-a drop-in replacement for the older GNU linker. gold was originally
-developed at Google, and was contributed to the Free Software
-Foundation in March 2008.
-
-gold supports most of the features of the GNU linker for ELF targets.
-Notable omissions - features of the GNU linker not currently supported
-in gold - are:
- - MEMORY regions in linker scripts
- - MRI compatible linker scripts
- - cross-reference reports (--cref)
- - various other minor options.
-
-%description gold -l pl.UTF-8
-gold to linker dla plików ELF. Powstał z myślą o pełnej obsłudze
-formatu ELF i jak najszybszym działaniu na współczesnych systemach.
-Przy zwykłym użyciu jest zamiennikiem starszego linkera GNU. gold
-początkowo był rozwijany przez Google i został przekazany Free
-Software Foundation w marcu 2008.
-
-gold obsługuje większość funkcji linkera GNU dla plików ELF. Istotne
-braki - możliwości linkera GNU aktualnie nie obsługiwane przez gold -
-to:
-- regiony typu MEMORY w skryptach linkera
-- skrypty linkera kompatybilne z MRI
-- raporty odsyłaczy (--cref)
-- kilka innych, mniej istotnych opcji.
-
 %prep
 %setup -q
 %patch0 -p1
@@ -187,7 +157,7 @@ to:
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-%patch8 -p1
+%patch8 -p0
 %patch9 -p1
 
 # file contains hacks for ac 2.59 only
@@ -235,6 +205,8 @@ sparc32 \
        --disable-werror \
        --enable-build-warnings=,-Wno-missing-prototypes \
        --enable-shared \
+       --enable-lto \
+       --enable-plugins \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
        --infodir=%{_infodir} \
@@ -247,14 +219,14 @@ 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} \
-%if %{with gold}
-       --enable-gold
-%else
-       --disable-gold
+%ifarch %{ix86} %{x8664}
+       --enable-gold%{!?with_default_ld:=default} --enable-ld%{?with_default_ld:=default} \
 %endif
 
 %{__make}
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -285,12 +257,14 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 %find_lang gprof
 touch ld.lang
 %find_lang ld
-%if %{with gold}
+%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
@@ -321,6 +295,9 @@ rm -rf $RPM_BUILD_ROOT
 %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
@@ -362,6 +339,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/bfdlink.h
 %{_includedir}/dis-asm.h
 %{_includedir}/libiberty.h
+%{_includedir}/plugin-api.h
 %{_includedir}/symcat.h
 %{_infodir}/bfd.info*
 
@@ -374,10 +352,3 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gasp
 %{_infodir}/gasp.info*
-
-%if %{with gold}
-%files gold -f gold.lang
-%defattr(644,root,root,755)
-%doc gold/{ChangeLog,README,TODO}
-%attr(755,root,root) %{_bindir}/ld.gold
-%endif
This page took 0.06108 seconds and 4 git commands to generate.