%define rpmvers 1.10 %define srcvers 1.10 %define amvers 1.10 %if "%{_prefix}" != "/usr" %define name @rpmprefix@automake-rtems %define requirements @rpmprefix@autoconf-rtems >= 2.60 %else %define name automake %define requirements autoconf >= 2.60 %endif Name: %{name} URL: http://sources.redhat.com/automake License: GPL Group: Development/Tools Version: %{rpmvers} Release: @AUTOMAKE_RPMREL@%{?dist} Summary: Tool for automatically generating GNU style Makefile.in's BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: %{requirements} perl help2man Requires: %{requirements} Requires(post): /sbin/install-info Requires(preun):/sbin/install-info Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2 %description Automake is a tool for automatically generating "Makefile.in"s from files called "Makefile.am". "Makefile.am" is basically a series of "make" macro definitions (with rules being thrown in occasionally). The generated "Makefile.in"s are compatible to the GNU Makefile standards. %prep %setup -q -n automake-%{srcvers} %build PATH=%{_bindir}:$PATH # Don't use %%configure, it replaces config.sub/config.guess with the # outdated versions bundled with rpm. ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ --bindir=%{_bindir} --datadir=%{_datadir} \ --docdir=%{_datadir}/automake-%{amvers}/doc make %install rm -rf "$RPM_BUILD_ROOT" make DESTDIR=${RPM_BUILD_ROOT} install install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1 for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \ $RPM_BUILD_ROOT%{_bindir}/automake ; do perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \ help2man $i > `basename $i`.1 install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1 done rm -f $RPM_BUILD_ROOT%{_infodir}/dir touch $RPM_BUILD_ROOT%{_infodir}/dir