update filtering for rpm 4.9

This commit is contained in:
Iain Arnell 2011-07-24 13:26:16 +02:00
parent e40ccb644a
commit 99c12f756a

View File

@ -1,6 +1,6 @@
Name: perl-XML-Parser
Version: 2.41
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Perl module for parsing XML files
Group: Development/Libraries
@ -15,6 +15,12 @@ BuildRequires: perl(LWP), perl(URI)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(LWP), perl(URI)
%{?filter_setup:
%filter_from_provides /perl(XML::Parser)$/d
%?perl_default_filter
}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$
%description
This module provides ways to parse XML documents. It is built on top
of XML::Parser::Expat, which is a lower level interface to James
@ -26,18 +32,11 @@ parse call. They can also be given as extra arguments to the parse
methods, in which case they override options given at XML::Parser
creation time.
%{?perl_default_filter}
%prep
%setup -q -n XML-Parser-%{version}
chmod 644 samples/{canonical,xml*}
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
%{?filter_setup:
%filter_from_provides /perl(XML::Parser)$/d
%?perl_default_filter
}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
@ -65,6 +64,9 @@ make test
%changelog
* Sun Jul 24 2011 Iain Arnell <iarnell@gmail.com> 2.41-3
- update filtering for rpm 4.9
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 2.41-2
- Perl mass rebuild