%define snapshot 2010.06.04 Name: autoconf-archive Version: %{snapshot} Release: 1 Summary: Autoconf Macro Archive License: GPL Group: Development/Other URL: http://www.gnu.org/software/autoconf-archive/ Source0: ftp://ftp.gnu.org/pub/gnu/autoconf-archive/%{name}-%{snapshot}.tar.bz2 Source1: ftp://ftp.gnu.org/pub/gnu/autoconf-archive/%{name}-%{snapshot}.tar.bz2.sig Requires: automake BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The Autoconf Macro Archive aims to provide a collection of reusable Autoconf macros as free software. The archive currently features more than 500 macros which perform portability tests ranging from compiler support for weird language extensions to automatic generation of sophisticated Automake rules. All these macros have been contributed by friendly supporters of the cause from all over the Internet; this archive is merely a distribution of other people's efforts. %prep %setup -q %build ./configure \ --prefix=%{_prefix} \ --infodir=%{_infodir} make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir gzip --best ${RPM_BUILD_ROOT}%{_infodir}/* rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name} %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : %preun if [ "$1" -eq "0" ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(0644,root,system,-) %doc AUTHORS COPYING INSTALL README %{_datadir}/aclocal/* %{_infodir}/* %changelog * Fri Jun 04 2010 Michael Perzl - 2010.06.04-1 - first version for AIX V5.1 and higher