diff options
| author | Pavel Raiskup <praiskup@redhat.com> | 2014-03-24 18:59:02 +0100 |
|---|---|---|
| committer | Pavel Raiskup <praiskup@redhat.com> | 2014-03-24 18:59:39 +0100 |
| commit | 345360aba590bef9346cdcfca49c06ae221bfbd0 (patch) | |
| tree | 7e7a9ff7d6db6b813c9d25027bfc1bb7012256b4 | |
| parent | b5f64dfc80ea05e803f665e68b82e9e2ec6756f9 (diff) | |
| download | scl-autotools-345360aba590bef9346cdcfca49c06ae221bfbd0.tar.gz scl-autotools-345360aba590bef9346cdcfca49c06ae221bfbd0.tar.xz scl-autotools-345360aba590bef9346cdcfca49c06ae221bfbd0.zip | |
autotools-git/libtool: make the package RHEL5 friendly
| -rw-r--r-- | repos/autotools/autotools-git/libtool/libtool.spec | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/repos/autotools/autotools-git/libtool/libtool.spec b/repos/autotools/autotools-git/libtool/libtool.spec index 0192ee9..38ed3de 100644 --- a/repos/autotools/autotools-git/libtool/libtool.spec +++ b/repos/autotools/autotools-git/libtool/libtool.spec @@ -12,7 +12,7 @@ Summary: The GNU Portable Library Tool Name: %{?scl_prefix}libtool Version: 2.4.2 -Release: 2.%{subrelease}.%{git_hash}%{?dist} +Release: 3.%{subrelease}.%{git_hash}%{?dist} License: GPLv2+ and LGPLv2+ and GFDL URL: http://www.gnu.org/software/libtool/ Group: Development/Tools @@ -35,6 +35,13 @@ BuildRequires: texinfo %{?scl:BuildRequires: scl-utils-build} +%if ! 0%{?buildroot:1} +# HACK! This should be truth only for RHEL5, so benefit from +# this %%if for defining (otherwise undefined) macro for this platform. +%global rhel 5 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%endif + # make sure we can configure all supported langs BuildRequires: libstdc++-devel, gcc-gfortran %if !0%{?rhel:1} @@ -126,6 +133,9 @@ make %{?_smp_mflags} %install +%if 0%{?rhel} == 5 +rm -rf %{builroot} +%endif make install DESTDIR=%{buildroot} # info's TOP dir (by default owned by info) @@ -176,6 +186,9 @@ fi %{_libdir}/libltdl.so %changelog +* Mon Mar 24 2014 Pavel Raiskup <praiskup@redhat.com> - 2.4.2-3.444.28.053d +- make spec RHEL5 friendly + * Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 2.4.2-2.444.28.053d - build require scl-utils and scl-utils-build properly |
