Spec file tidy ups.

This commit is contained in:
Nick Clifton 2018-01-25 17:00:15 +00:00
parent b9d1fd7429
commit 6093f83bd6
1 changed files with 11 additions and 5 deletions

View File

@ -81,6 +81,8 @@ Source: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
Source2: binutils-2.19.50.0.1-output-format.sed Source2: binutils-2.19.50.0.1-output-format.sed
#----------------------------------------------------------------------------
# Purpose: Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the # Purpose: Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the
# default library search path of 64-bit targets. # default library search path of 64-bit targets.
# Lifetime: Permanent, but it should not be. This is a bug in the libtool # Lifetime: Permanent, but it should not be. This is a bug in the libtool
@ -100,13 +102,13 @@ Patch02: binutils-2.25-version.patch
# Lifetime: Permanent. This is a RHEL/Fedora specific patch. # Lifetime: Permanent. This is a RHEL/Fedora specific patch.
Patch03: binutils-2.22.52.0.1-export-demangle.h.patch Patch03: binutils-2.22.52.0.1-export-demangle.h.patch
# Purpose: Disables the check in the BFD library's header file that config.h # Purpose: Disables the check in the BFD library's bfd.h header file that
# has been included before the bfd.h header. See BZ #845084 for # config.h has been included before the bfd.h header. See BZ
# more details. # #845084 for more details.
# Lifetime: Permanent - but it should not be. The bfd.h header defines # Lifetime: Permanent - but it should not be. The bfd.h header defines
# various types that are dependent upon configuration options, so # various types that are dependent upon configuration options, so
# the order of inclusion is important. # the order of inclusion is important.
# FIXME: It would be better if the packages using the BFD header were # FIXME: It would be better if the packages using the bfd.h header were
# fixed so that they do include the header files in the correct # fixed so that they do include the header files in the correct
# order. # order.
Patch04: binutils-2.22.52.0.4-no-config-h-check.patch Patch04: binutils-2.22.52.0.4-no-config-h-check.patch
@ -207,7 +209,8 @@ Provides: bundled(libiberty)
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gcc # Perl, sed and touch are all used in the %prep section of this spec file.
BuildRequires: gcc, perl, sed, coreutils
# Gold needs bison in order to build gold/yyscript.c. # Gold needs bison in order to build gold/yyscript.c.
# Bison needs m4. # Bison needs m4.
@ -225,6 +228,8 @@ BuildRequires: texinfo >= 4.0
BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2man
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
%else
BuildRequires: findutils
%endif %endif
# Required for: ld-bootstrap/bootstrap.exp bootstrap with --static # Required for: ld-bootstrap/bootstrap.exp bootstrap with --static
@ -625,6 +630,7 @@ rm -rf %{buildroot}
%if %{isnative} %if %{isnative}
/sbin/ldconfig /sbin/ldconfig
%if %{with docs} %if %{with docs}
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz /sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz /sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz