- use perl filtering macros

This commit is contained in:
Štěpán Kasal 2010-03-02 11:51:59 +00:00
parent 3d67707ab2
commit d293e36de1
3 changed files with 15 additions and 15 deletions

View File

@ -1,20 +1,24 @@
Summary: A GNU tool for automatically configuring source code Summary: A GNU tool for automatically configuring source code
Name: autoconf Name: autoconf
Version: 2.65 Version: 2.65
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ and GFDL License: GPLv2+ and GFDL
Group: Development/Tools Group: Development/Tools
Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz
Source1: filter-provides-automake.sh
Source2: filter-requires-automake.sh
URL: http://www.gnu.org/software/autoconf/ URL: http://www.gnu.org/software/autoconf/
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Make AC_FUNC_MMAP work with C++ again.
# Committed to Autoconf git soon after 2.65.
Patch1: autoconf_ac_func_mmap.patch
# m4 >= 1.4.6 is required, >= 1.4.13 is recommended: # m4 >= 1.4.6 is required, >= 1.4.13 is recommended:
BuildRequires: m4 >= 1.4.13 BuildRequires: m4 >= 1.4.13
Requires: m4 >= 1.4.13 Requires: m4 >= 1.4.13
BuildRequires: emacs BuildRequires: emacs
# the filtering macros are currently in /etc/rpm/macros.perl:
BuildRequires: perl-devel
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
@ -24,14 +28,13 @@ BuildRequires: automake libtool gcc-gfortran
BuildRequires: erlang BuildRequires: erlang
%endif %endif
# Make AC_FUNC_MMAP work with C++ again.
# Committed to Autoconf git soon after 2.65.
Patch1: autoconf_ac_func_mmap.patch
# filter out bogus perl(Autom4te*) dependencies # filter out bogus perl(Autom4te*) dependencies
%define _use_internal_dependency_generator 0 %define _use_internal_dependency_generator 0
%define __find_provides %{SOURCE1} %{?perl_default_filter:
%define __find_requires %{SOURCE2} %filter_from_provides /^perl(Autom4te::/d
%filter_from_requires /^perl(Autom4te::/d
%perl_default_filter
}
%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.
@ -95,6 +98,9 @@ fi
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%changelog %changelog
* Tue Mar 2 2010 Stepan Kasal <skasal@redhat.com> - 2.65-2
- use perl filtering macros
* Wed Nov 25 2009 Stepan Kasal <skasal@redhat.com> - 2.65-1 * Wed Nov 25 2009 Stepan Kasal <skasal@redhat.com> - 2.65-1
- new upstream version - new upstream version
- backported patch: make AC_FUNC_MMAP work with C++ again - backported patch: make AC_FUNC_MMAP work with C++ again

View File

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

View File

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