SHA256
1
0
forked from pool/binutils

Accepting request 125375 from devel:gcc

- the previous fix was not good enough, another iteration of the same (forwarded request 125342 from coolo)

OBS-URL: https://build.opensuse.org/request/show/125375
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/binutils?expand=0&rev=77
This commit is contained in:
Stephan Kulow 2012-06-18 19:24:52 +00:00 committed by Git OBS Bridge
commit b666e07332
33 changed files with 113 additions and 324 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -98,10 +98,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: %{TARGET}
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-alpha-binutils
ExcludeArch: alpha
%define cross 1
%define TARGET alpha
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-alpha-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: alpha
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-arm-binutils
ExcludeArch: %arm
%define cross 1
%define TARGET arm
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-arm-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: arm
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-avr-binutils
ExcludeArch: avr
%define cross 1
%define TARGET avr
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-avr-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: avr
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-hppa-binutils
ExcludeArch: hppa
%define cross 1
%define TARGET hppa
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-hppa-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: hppa
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-hppa64-binutils
ExcludeArch: hppa64
%define cross 1
%define TARGET hppa64
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-hppa64-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: hppa64
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-i386-binutils
ExcludeArch: i%86
%define cross 1
%define TARGET i586
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-i386-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: i586
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-ia64-binutils
ExcludeArch: ia64
%define cross 1
%define TARGET ia64
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-ia64-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: ia64
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-mips-binutils
ExcludeArch: mips
%define cross 1
%define TARGET mips
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-mips-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: mips
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-ppc-binutils
ExcludeArch: ppc
%define cross 1
%define TARGET powerpc
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-ppc-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: powerpc
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-ppc64-binutils
ExcludeArch: ppc64
%define cross 1
%define TARGET powerpc64
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-ppc64-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: powerpc64
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-s390-binutils
ExcludeArch: s390
%define cross 1
%define TARGET s390
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-s390-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: s390
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-s390x-binutils
ExcludeArch: s390x
%define cross 1
%define TARGET s390x
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-s390x-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: s390x
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-sparc-binutils
ExcludeArch: sparc
%define cross 1
%define TARGET sparc
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-sparc-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: sparc
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-spu-binutils
ExcludeArch: spu
%define cross 1
%define TARGET spu
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-spu-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: spu
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 18 11:06:01 UTC 2012 - coolo@suse.com
- the previous fix was not good enough, another iteration of the same
-------------------------------------------------------------------
Thu Jun 14 11:53:56 UTC 2012 - coolo@suse.com

View File

@ -16,25 +16,10 @@
#
Name: cross-x86_64-binutils
ExcludeArch: x86_64
%define cross 1
%define TARGET x86_64
#
# spec file for package binutils
#
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-x86_64-binutils
BuildRequires: bison
BuildRequires: dejagnu
BuildRequires: flex
@ -116,10 +101,6 @@ Patch92: cross-avr-omit_section_dynsym.patch
Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{!?cross:1}
ExcludeArch: x86_64
%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
size, strings, and strip. These utilities are needed whenever you want

View File

@ -8,11 +8,9 @@ for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc alp
ln -f binutils.changes cross-$arch-binutils.changes
targetarch=`echo $arch | sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"`
( echo "%define cross 1"
echo "%define TARGET $targetarch"
) > cross-$arch-binutils.spec
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/; s/^ExcludeArch:.*/ExcludeArch: $targetarch/" \
< binutils.spec >> cross-$arch-binutils.spec
exclarch=`echo $arch | sed -e 's/parisc/hppa/;s/i.86/i%86/;s/arm/%arm/'`
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils\nExcludeArch: $exclarch\n%define cross 1\n%define TARGET $targetarch/;" \
< binutils.spec > cross-$arch-binutils.spec
echo " done."
done