This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
binutils-2.11.90.0.4: Broken .spec file
- To: binutils at sources dot redhat dot com
- Subject: binutils-2.11.90.0.4: Broken .spec file
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Wed, 04 Apr 2001 14:25:08 -0400
The .spec file in the tarfile is severely broken by the COFF nonsense. I'm
now running a build on RH 6.2 sparc64 with this patch to the specfile.
Haven't found out which magic creates the file (which is nonsense anyway,
as it is needed _before_ the file is even unpacked, generating it when
configuring is *way* too late):
--- binutils.spec-broken Wed Apr 4 14:21:33 2001
+++ binutils.spec Wed Apr 4 14:14:38 2001
@@ -1,22 +1,15 @@
-# Define `COFF' as 1 if you want to add i386-coff instead of i386-pe
+# Define `COFF' if you want to add i386-coff instead of i386-pe
# for Linux/ELF/ia32.
-%define COFF 0
Summary: A GNU collection of binary utilities.
Name: binutils
-%ifarch i386 i486 i586 i686
-%if %{COFF}
-Version: 2.11.90.0.4.coff
-%else
-Version: 2.11.90.0.4
-%endif
-%else
-Version: 2.11.90.0.4
-%endif
+# Version of source
+%define sversion 2.11.90.0.4
+Version: %{sversion}%{?COFF:.coff}
Release: 1
Copyright: GPL
Group: Development/Tools
URL: http://sourceware.cygnus.com/binutils
-Source: http://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.gz
+Source: ftp://ftp.valinux.com/pub/support/hjl/binutils/binutils-%{sversion}.tar.bz2
Buildroot: /var/tmp/binutils-root
Prereq: /sbin/install-info
@@ -52,11 +45,8 @@
ADDITIONAL_TARGETS=""
%ifos linux
%ifarch i386 i486 i586 i686
-%if %{COFF}
-ADDITIONAL_TARGETS="--enable-targets=i386-linuxaout,i386-coff"
-%else
-ADDITIONAL_TARGETS="--enable-targets=i386-linuxaout,i386-pe"
-%endif
+%{?COFF:ADDITIONAL_TARGETS="--enable-targets=i386-linuxaout,i386-coff"}
+%{!?COFF:ADDITIONAL_TARGETS="--enable-targets=i386-linuxaout,i386-pe"}
%else
%ifarch sparc
ADDITIONAL_TARGETS="--enable-targets=sparc64-linux"
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513