SPECS: binutils.spec - added tooldir patch, specify tooldir at configure ti...

sparky sparky at pld-linux.org
Wed Apr 22 01:42:57 CEST 2009


Author: sparky                       Date: Tue Apr 21 23:42:57 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added tooldir patch, specify tooldir at configure time instead of passing to make
- dropped -j1 and other make hacks, not needed anymore
- use DESTDIR in make install (tooldir used to brake it, now it doesn't)
- gold also supported on sparc64, ppc and ppc64
- drop R: %{name} in main package (useless)

---- Files affected:
SPECS:
   binutils.spec (1.302 -> 1.303) 

---- Diffs:

================================================================
Index: SPECS/binutils.spec
diff -u SPECS/binutils.spec:1.302 SPECS/binutils.spec:1.303
--- SPECS/binutils.spec:1.302	Tue Apr 21 09:38:04 2009
+++ SPECS/binutils.spec	Wed Apr 22 01:42:50 2009
@@ -7,7 +7,7 @@
 				# http://sourceware.org/ml/binutils/2008-03/msg00162.html
 %bcond_without	pax		# without PaX flags (for upstream bugreports)
 #
-%ifnarch %{ix86} %{x8664} sparc
+%ifnarch %{ix86} %{x8664} sparc sparc64 ppc ppc64
 %undefine	with_gold
 %endif
 #
@@ -40,6 +40,7 @@
 Patch7:		%{name}-absolute-gnu_debuglink-path.patch
 Patch8:		%{name}-libtool-m.patch
 Patch9:		%{name}-build-id.patch
+Patch10:	%{name}-tooldir.patch
 URL:		http://sources.redhat.com/binutils/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.8.2
@@ -54,7 +55,6 @@
 BuildRequires:	sparc32
 %endif
 BuildRequires:	texinfo >= 4.2
-Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gcc-c++ < 5:3.3
 Conflicts:	modutils < 2.4.17
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -163,11 +163,15 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
-# hacks for ac 2.59 only
+# 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
@@ -208,6 +212,7 @@
 	--libdir=%{_libdir} \
 	--infodir=%{_infodir} \
 	--mandir=%{_mandir} \
+	--with-tooldir=%{_prefix} \
 	%{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
 %ifarch sparc
 	--enable-64-bit-bfd \
@@ -217,27 +222,19 @@
 	%{?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}
 
-%{__make} -j1 configure-bfd
-%{__make} -j1 headers -C bfd
-%{__make} -j1 all info \
-	tooldir=%{_prefix}
+%{__make}
 
 %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}
 
@@ -333,6 +330,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.303  2009/04/21 23:42:50  sparky
+- added tooldir patch, specify tooldir at configure time instead of passing to make
+- dropped -j1 and other make hacks, not needed anymore
+- use DESTDIR in make install (tooldir used to brake it, now it doesn't)
+- gold also supported on sparc64, ppc and ppc64
+- drop R: %{name} in main package (useless)
+
 Revision 1.302  2009/04/21 07:38:04  arekm
 - up to 2.19.51.0.4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/binutils.spec?r1=1.302&r2=1.303&f=u



More information about the pld-cvs-commit mailing list