summaryrefslogtreecommitdiff
path: root/contrib/crossrpms/autotools/automake.add
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/crossrpms/autotools/automake.add')
-rw-r--r--contrib/crossrpms/autotools/automake.add12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/crossrpms/autotools/automake.add b/contrib/crossrpms/autotools/automake.add
index 55c3aa9252..d518aa3364 100644
--- a/contrib/crossrpms/autotools/automake.add
+++ b/contrib/crossrpms/autotools/automake.add
@@ -25,12 +25,16 @@ Provides: @rpmprefix@automake-rtems = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: %{requirements} perl help2man
+BuildRequires: %{requirements} perl
+%if "%{version}" < "1.11"
+# automake >= 1.11 ships man-pages
+BuildRequires: help2man
+%endif
Requires: %{requirements}
Requires(post): /sbin/install-info
Requires(preun):/sbin/install-info
-Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
+@SOURCES@
%description
Automake is a tool for automatically generating "Makefile.in"s from
@@ -41,6 +45,7 @@ standards.
%prep
%setup -q -n automake-%{srcvers}
+%{?PATCH0:%patch0 -p1}
# Work around rpm inserting bogus perl-module deps
cat << \EOF > %{name}-prov
@@ -73,6 +78,8 @@ make
rm -rf "$RPM_BUILD_ROOT"
make DESTDIR=${RPM_BUILD_ROOT} install
+%if "%{version}" < "1.11"
+# automake >= 1.11 ships man-pages
install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
$RPM_BUILD_ROOT%{_bindir}/automake ;
@@ -81,6 +88,7 @@ do
help2man $i > `basename $i`.1
install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
done
+%endif
%if "%{_prefix}" != "/usr"
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal