Name: autoconf Version: 2.59 Epoch: 1 Release: 1 License: GPL BuildRoot: /var/tmp/%{name}-%{version}-root Docdir: /usr/share/doc URL: http://www.gnu.org/software/autoconf/ Source: autoconf-2.59.tar.bz2 Summary: A GNU tool for automatically configuring source code. Group: Development/Tools Prereq: /sbin/install-info BuildRequires: sed, m4 Prereq(post,preun): /sbin/install-info Requires: gawk, m4, mktemp, perl, textutils BuildArch: noarch %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 would like to create shell scripts that 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. %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %{_bindir}/* %{_infodir}/autoconf.info* %exclude %{_infodir}/standards* /usr/share/autoconf %{_mandir}/man1/* %post /sbin/install-info /usr/share/info/autoconf.info.gz /usr/share/info/dir # don't include standards.info, because it comes from binutils... %preun if [ "$1" = 0 ]; then /sbin/install-info --del /usr/share/info/autoconf.info.gz /usr/share/info/dir fi %prep case "${RPM_COMMAND:-all}" in dist) %setup -q -D -n autoconf-2.59 ;; all) %setup -q -n autoconf-2.59 ;; esac case "${RPM_COMMAND:-all}" in dist|all) ;; esac %build MAKE=${MAKE:-make} RPM_COMMAND=${RPM_COMMAND:-all} DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} ARCH=%{_target_platform} CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" export MAKE RPM_COMMAND DESTDIR ARCH CFLAGS CXXFLAGS case "$RPM_COMMAND" in prepare|all) ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var ;; esac case "$RPM_COMMAND" in build|all) ${MAKE} # run "make check" by default ${MAKE} check ;; esac %install MAKE=${MAKE:-make} DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} case "${RPM_COMMAND:-all}" in install|all) %{makeinstall} rm -f ${DESTDIR}/usr/share/info/dir ;; esac %clean DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} export DESTDIR case "${RPM_COMMAND:-all}" in clean|all) if [ "/" != "$DESTDIR" ]; then rm -rf "$DESTDIR" fi ;; esac %changelog