summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repos/autotools/autotools-git/libtool/libtool.spec15
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