Name: autoconf Version: 2.13 Release: alt2.1 Serial: 2 Summary: A GNU tool for automatically configuring source code License: GPL Group: Development/Other Url: http://sourceware.cygnus.com/%name/ BuildArch: noarch AutoReqProv: yes, perl Source: %name-%version.tar.bz2 Source1: %name-2.13-manpages.tar Patch1: %name-2.13-tmpfiles.patch Patch2: %name-2.13-c++exit.patch Patch3: %name-2.13-headers.patch Patch4: %name-2.13-autoscan.patch Patch5: %name-2.13-exit.patch PreReq: %__install_info Requires: m4, mktemp Prefix: %prefix %description GNU's Autoconf is a tool for configuring source code and Makefiles. Using Autoconf, programmers can create portable and configurable packages, since the person building the package is allowed to specify various configuration options. You should install Autoconf if you are developing software and you'd like to use it to create shell scripts which will configure your source code packages. If you are installing Autoconf, you will also need to install the GNU m4 package. Note that the Autoconf package is not required for the end user who may be configuring software with an Autoconf-generated script; Autoconf is only required for the generation of the scripts, not their use. %prep %setup -q -a1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 find -type f -print0 | xargs -r0 fgrep -l 'mawk gawk' | xargs -r perl -pi -e 's/mawk gawk/gawk mawk/g' %build %configure %make_build %install %makeinstall # We don't want to include the standards.info stuff in the package, # since it comes from binutils. rm -f $RPM_BUILD_ROOT%_infodir/standards* # Install manpages. mkdir -p $RPM_BUILD_ROOT%_man1dir install -p -m644 [a-z]*.1 $RPM_BUILD_ROOT%_man1dir # Some more helpful scripts. install -p -m755 *-sh $RPM_BUILD_ROOT%_datadir/%name rm -f $RPM_BUILD_ROOT%_datadir/%name/INSTALL mv $RPM_BUILD_ROOT%_datadir/%name/ $RPM_BUILD_ROOT%_datadir/%{name}21 for f in $RPM_BUILD_ROOT%_bindir/*; do sed -e's@/usr/share/autoconf@/usr/share/autoconf21@' <$f >${f}21 rm $f chmod a+x ${f}21 done %post /usr/sbin/update-alternatives --install %_bindir/autoconf autoconf %_bindir/autoconf21 20 \ --slave %_bindir/autoheader autoheader %_bindir/autoheader21 \ --slave %_bindir/autoreconf autoreconf %_bindir/autoreconf21 \ --slave %_bindir/autoscan autoscan %_bindir/autoscan21 \ --slave %_bindir/autoupdate autoupdate %_bindir/autoupdate21 \ --slave %_bindir/ifnames ifname %_bindir/ifnames21 \ --slave %_datadir/autoconf autoconfdata %_datadir/autoconf21 %install_info %name.info %triggerpostun -- %name < %version-%release /usr/sbin/update-alternatives --install %_bindir/autoconf autoconf %_bindir/autoconf21 20 \ --slave %_bindir/autoheader autoheader %_bindir/autoheader21 \ --slave %_bindir/autoreconf autoreconf %_bindir/autoreconf21 \ --slave %_bindir/autoscan autoscan %_bindir/autoscan21 \ --slave %_bindir/autoupdate autoupdate %_bindir/autoupdate21 \ --slave %_bindir/ifnames ifname %_bindir/ifnames21 \ --slave %_datadir/autoconf autoconfdata %_datadir/autoconf21 %preun [ $1 = 0 ] || exit 0 %uninstall_info %name.info /usr/sbin/update-alternatives --remove autoconf %_bindir/autoconf21 %files %_bindir/* %_datadir/%{name}21 %_man1dir/* %_infodir/*.info* %doc AUTHORS NEWS README TODO %changelog * Sat Dec 08 2001 Alexey Voinov 2:2.13-alt2.1 - update-alternatives support added * Mon Aug 27 2001 Dmitry V. Levin 2.13-alt2 - Rebuilt. * Thu Aug 23 2001 Dmitry V. Levin 2.13-alt1 - Revert back to stable version. - Reworked tmp files handling. - Merged RH patches: + acgeneral.m4: fixed exit status; + autoscan.pl: patched to get a better choice of init file (#42071), to test for CPP after CC (#42072) and to detect C++ source and g++ (#42073). + acspecific.m4: include various standard C headers as needed by various autoconf tests (#19114); + acgeneral.m4, acspecific.m4: back-ported _AC_PROG_CXX_EXIT_DECLARATION from version 2.50 to make detection of C++ exit() declaration prototype platform independent. The check is done in AC_PROG_CXX with the result stored in "confdefs.h". The exit() prototype in AC_TRY_RUN_NATIVE is no longer needed. * Mon Aug 20 2001 Dmitry V. Levin 2.52b-alt1 - 2.52b * Fri Aug 17 2001 Dmitry V. Levin 2.52-alt1 - 2.52 - Added manpages from debian. * Sun Dec 24 2000 Dmitry V. Levin 2.13-ipl5mdk - Fixed exit function prototype for gcc >= 2.96. * Wed Jul 19 2000 Dmitry V. Levin 2.13-ipl4mdk - RE adaptions. * Tue Jul 18 2000 Guillaume Cottenceau 2.13-4mdk - macros for install-info * Mon Jul 10 2000 Guillaume Cottenceau 2.13-3mdk - cleanup and macros * Fri Mar 31 2000 Guillaume Cottenceau 2.13-2mdk - new groups * Mon Mar 6 2000 Chmouel Boudjnah 2.13-1mdk - Back to last 2.13 and stable version, add a serial. * Wed Oct 27 1999 Chmouel Boudjnah - Merge change of Jeff package. * Thu May 13 1999 Bernhard Rosenkraenzer - Mandrake adaptions - 2.14.1 * Fri Mar 26 1999 Cristian Gafton - add patch to help autoconf clean after itself and not leave /tmp clobbered with acin.* and acout.* files (can you say annoying?) * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) - use gawk, not mawk * Thu Mar 18 1999 Preston Brown - moved /usr/lib/autoconf to /usr/share/autoconf (with automake) * Wed Feb 24 1999 Preston Brown - Injected new description and group. * Tue Jan 12 1999 Jeff Johnson - update to 2.13. * Fri Dec 18 1998 Cristian Gafton - build against glibc 2.1 * Mon Oct 05 1998 Cristian Gafton - requires perl * Thu Aug 27 1998 Cristian Gafton - patch for fixing /tmp race conditions * Sun Oct 19 1997 Erik Troan - spec file cleanups - made a noarch package - uses autoconf - uses install-info * Thu Jul 17 1997 Erik Troan - built with glibc