[perl-XML-Parser] update filtering for rpm 4.9
Iain Arnell
iarnell at fedoraproject.org
Sun Jul 24 11:26:31 UTC 2011
commit 99c12f756ad32e5103002adbc588ef4d531978c5
Author: Iain Arnell <iarnell at gmail.com>
Date: Sun Jul 24 13:26:16 2011 +0200
update filtering for rpm 4.9
perl-XML-Parser.spec | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/perl-XML-Parser.spec b/perl-XML-Parser.spec
index 989ab23..405e910 100644
--- a/perl-XML-Parser.spec
+++ b/perl-XML-Parser.spec
@@ -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 at gmail.com> 2.41-3
+- update filtering for rpm 4.9
+
* Wed Jul 20 2011 Petr Sabata <contyk at redhat.com> - 2.41-2
- Perl mass rebuild
More information about the scm-commits
mailing list