2020-11-12 14:58:34 +00:00
|
|
|
|
|
|
|
# Note - this is an rpm spec file, but it has been renamed in order to avoid
|
|
|
|
# conflict with the real binutils.spec file.
|
|
|
|
#
|
2020-11-25 15:00:22 +00:00
|
|
|
# Its only use is to build a set of cross-binutils rpms by installing it
|
2020-11-12 14:58:34 +00:00
|
|
|
# into an rpmbuild tree where the binutils source rpm has already been placed.
|
|
|
|
# It should be run as:
|
|
|
|
#
|
2020-11-18 14:10:35 +00:00
|
|
|
# rpmbuild -bb spec.binutils.cross
|
2020-11-12 14:58:34 +00:00
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
Summary: A meta collection of GNU binutils executables for cross builds
|
2020-11-12 14:58:34 +00:00
|
|
|
Name: cross-binutils
|
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
# Note: KEEP THE Version and Release fields IN SYNC with binutils.spec
|
2020-11-12 14:58:34 +00:00
|
|
|
Version: 2.35.1
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://sourceware.org/binutils
|
|
|
|
|
|
|
|
Source: binutils.spec
|
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
# Provides: bundled(libiberty)
|
2020-11-12 14:58:34 +00:00
|
|
|
|
|
|
|
BuildRequires: autoconf automake
|
|
|
|
BuildRequires: perl, sed, coreutils
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gettext, flex, zlib-devel
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: dejagnu, zlib-static, glibc-static, sharutils, bc
|
|
|
|
BuildRequires: elfutils-debuginfod-client-devel
|
|
|
|
BuildRequires: rpm-build
|
|
|
|
|
|
|
|
Requires(post): %{_sbindir}/alternatives
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(preun): %{_sbindir}/alternatives
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides a collection of cross built binutils for the targets
|
|
|
|
supported by RHEL (aarch64, i686, ppc64le, s390x).
|
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
# Note - this list assumes that we are building on an x86_64-linux-gnu host.
|
|
|
|
%define arch_list aarch64-linux-gnu i686-linux-gnu ppc64le-linux-gnu s390x-linux-gnu
|
|
|
|
|
2020-11-12 14:58:34 +00:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
# Build each set of cross binutils individually.
|
2020-11-12 14:58:34 +00:00
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
for f in %{arch_list}; do
|
|
|
|
rpmbuild -bb --define "binutils_target $f" %{_specdir}/binutils.spec --without testsuite
|
|
|
|
done
|
2020-11-12 14:58:34 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2020-11-18 14:10:35 +00:00
|
|
|
%install
|
2020-11-12 14:58:34 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%changelog
|
|
|
|
* Wed Nov 11 2020 Nick Clifton <nickc@redhat.com> - 2.35.1-14
|
|
|
|
- First release of cross binutils rpm.
|