%define api_version 1.10 Summary: A GNU tool for automatically creating Makefiles Name: automake Version: %{api_version}.1 Release: 1 License: GPLv2+ and GFDL and MIT Group: Development/Tools Source0: http://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.bz2 Source1: http://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.bz2.sig Source2: automake.man Source3: aclocal.man URL: http://sources.redhat.com/automake Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildrequires: autoconf >= 2.60 Requires: info, /sbin/install-info Requires: autoconf >= 2.60 %description Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding Standards. You should install Automake if you are developing software and would like to use its ability to automatically generate GNU standard Makefiles. If you install Automake, you will also need to install GNU's Autoconf package. %prep %setup -q %build ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} # build not smp safe: make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_mandir}/man1/automake.1 cp %{SOURCE3} ${RPM_BUILD_ROOT}%{_mandir}/man1/aclocal.1 chmod 0644 ${RPM_BUILD_ROOT}%{_mandir}/man1/* # create this dir empty so we can own it mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/aclocal gzip --best ${RPM_BUILD_ROOT}%{_infodir}/*.info rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS README THANKS NEWS %{_bindir}/* %{_infodir}/*.info* %{_datadir}/automake-%{api_version} %{_datadir}/aclocal-%{api_version} %{_mandir}/man1/* %dir %{_datadir}/aclocal /usr/bin/* %changelog * Fri Oct 10 2008 Michael Perzl - 1.10.1-1 - first version for AIX V5.1 and higher