- add disttag

- replace tabs with spaces
- fix buildroot
- use Requires(post), Requires(preun)
- use make install DESTDIR=....
- drop perl requirement as it gets pulled it automatically
This commit is contained in:
Karsten Hopp 2007-02-15 11:34:43 +00:00
parent bd408ec848
commit 2e5956dc1c

View File

@ -1,16 +1,17 @@
Summary: A GNU tool for automatically configuring source code. Summary: A GNU tool for automatically configuring source code
Name: autoconf Name: autoconf
Version: 2.61 Version: 2.61
Release: 3 Release: 4%{?dist}
License: GPL License: GPL
Group: Development/Tools Group: Development/Tools
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2 Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
URL: http://www.gnu.org/software/autoconf/ URL: http://www.gnu.org/software/autoconf/
BuildRequires: sed, m4, emacs BuildRequires: sed, m4, emacs, gawk
Prereq(post,preun): /sbin/install-info Requires(post): /sbin/install-info
Requires: gawk, m4, mktemp, perl, textutils, imake Requires(preun): /sbin/install-info
BuildArchitectures: noarch Requires: gawk, m4, mktemp, imake
BuildRoot: %{_tmppath}/%{name}-root BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description %description
GNU's Autoconf is a tool for configuring source code and Makefiles. GNU's Autoconf is a tool for configuring source code and Makefiles.
@ -29,23 +30,24 @@ Autoconf is only required for the generation of the scripts, not
their use. their use.
%prep %prep
%setup -q -n autoconf-%{version} %setup -q
%build %build
# move config files out of they way as they require help2man from extras:
cp -p build-aux/config{.,-}guess cp -p build-aux/config{.,-}guess
cp -p build-aux/config{.,-}sub cp -p build-aux/config{.,-}sub
%configure %configure
# ... and restore them: # ... and restore them:
mv build-aux/config{-,.}guess mv build-aux/config{-,.}guess
mv build-aux/config{-,.}sub mv build-aux/config{-,.}sub
make make # %{?_smp_mflags} Makefile not smp save
#check #check
#make check VERBOSE=yes #make check VERBOSE=yes
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%makeinstall make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@ -61,17 +63,25 @@ if [ "$1" = 0 ]; then
fi fi
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/* %{_bindir}/*
%{_infodir}/autoconf.info* %{_infodir}/autoconf.info*
# don't include standards.info, because it comes from binutils... # don't include standards.info, because it comes from binutils...
%exclude %{_infodir}/standards* %exclude %{_infodir}/standards*
%{_datadir}/autoconf %{_datadir}/autoconf/
%{_datadir}/emacs/site-lisp %{_datadir}/emacs/site-lisp/
%{_mandir}/man1/* %{_mandir}/man1/*
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%changelog %changelog
* Thu Feb 15 2007 Karsten Hopp <karsten@redhat.com> 2.61-4
- add disttag
- replace tabs with spaces
- fix buildroot
- use Requires(post), Requires(preun)
- use make install DESTDIR=....
- drop perl requirement as it gets pulled it automatically
* Thu Jan 18 2007 Karsten Hopp <karsten@redhat.com> 2.61-3 * Thu Jan 18 2007 Karsten Hopp <karsten@redhat.com> 2.61-3
- don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä) - don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä)