- 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.
Name: autoconf
Version: 2.61
Release: 3
License: GPL
Group: Development/Tools
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
URL: http://www.gnu.org/software/autoconf/
BuildRequires: sed, m4, emacs
Prereq(post,preun): /sbin/install-info
Requires: gawk, m4, mktemp, perl, textutils, imake
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-root
Summary: A GNU tool for automatically configuring source code
Name: autoconf
Version: 2.61
Release: 4%{?dist}
License: GPL
Group: Development/Tools
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
URL: http://www.gnu.org/software/autoconf/
BuildRequires: sed, m4, emacs, gawk
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Requires: gawk, m4, mktemp, imake
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
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.
%prep
%setup -q -n autoconf-%{version}
%setup -q
%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{.,-}sub
%configure
# ... and restore them:
mv build-aux/config{-,.}guess
mv build-aux/config{-,.}sub
make
make # %{?_smp_mflags} Makefile not smp save
#check
#make check VERBOSE=yes
%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@ -61,17 +63,25 @@ if [ "$1" = 0 ]; then
fi
%files
%defattr(-,root,root)
%defattr(-,root,root,-)
%{_bindir}/*
%{_infodir}/autoconf.info*
# don't include standards.info, because it comes from binutils...
%exclude %{_infodir}/standards*
%{_datadir}/autoconf
%{_datadir}/emacs/site-lisp
%{_datadir}/autoconf/
%{_datadir}/emacs/site-lisp/
%{_mandir}/man1/*
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%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
- don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä)