- use ./configure

- filter dependencies
This commit is contained in:
Karsten Hopp 2007-02-19 11:39:20 +00:00
parent 2e5956dc1c
commit a2e8dd5d6c
3 changed files with 19 additions and 8 deletions

View File

@ -1,10 +1,12 @@
Summary: A GNU tool for automatically configuring source code
Name: autoconf
Version: 2.61
Release: 4%{?dist}
Release: 5%{?dist}
License: GPL
Group: Development/Tools
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
Source1: filter-provides-automake.sh
Source2: filter-requires-automake.sh
URL: http://www.gnu.org/software/autoconf/
BuildRequires: sed, m4, emacs, gawk
Requires(post): /sbin/install-info
@ -13,6 +15,10 @@ Requires: gawk, m4, mktemp, imake
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _use_internal_dependency_generator 0
%define __find_provides %{SOURCE1}
%define __find_requires %{SOURCE2}
%description
GNU's Autoconf is a tool for configuring source code and Makefiles.
Using Autoconf, programmers can create portable and configurable
@ -33,13 +39,8 @@ their use.
%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
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
--bindir=%{_bindir} --datadir=%{_datadir}
make # %{?_smp_mflags} Makefile not smp save
#check
@ -74,6 +75,10 @@ fi
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%changelog
* Mon Feb 19 2007 Karsten Hopp <karsten@redhat.com> 2.61-5
- use ./configure
- filter dependencies
* Thu Feb 15 2007 Karsten Hopp <karsten@redhat.com> 2.61-4
- add disttag
- replace tabs with spaces

3
filter-provides-automake.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/rpm/find-provides $* | egrep -v 'perl\(Autom4te' | sort -u

3
filter-requires-automake.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/rpm/find-requires $* | egrep -v 'perl\(Autom4te' | sort -u