From ff3307cc5302d4a69c67267ab10ae4f8ff074b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Mon, 19 Oct 2009 12:12:55 +0000 Subject: [PATCH] - use the filtering macros --- perl-XML-SAX.spec | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/perl-XML-SAX.spec b/perl-XML-SAX.spec index c5d6f3e..b39a84f 100644 --- a/perl-XML-SAX.spec +++ b/perl-XML-SAX.spec @@ -1,7 +1,7 @@ Summary: XML-SAX Perl module Name: perl-XML-SAX Version: 0.96 -Release: 4%{?dist} +Release: 5%{?dist} Group: Development/Libraries License: GPL+ or Artistic @@ -18,6 +18,12 @@ BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common) Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}')) Requires: perl(XML::LibXML) perl(XML::LibXML::Common) +%{?filter_setup: +%filter_from_requires /perl(XML::SAX::PurePerl::\(DTDDecls\|DocType\|EncodingDetect\|XMLDecl\))/d +%filter_from_provides /perl(XML::SAX::PurePerl)/d +%?perl_default_filter +} + %description XML::SAX consists of several framework classes for using and building @@ -31,33 +37,6 @@ JAXP specification (SAX part), only without the javaness. %prep %setup -q -n XML-SAX-%{version} -# Filter unwanted Requires: perl-XML-SAX has some poorly-structured -# packages that confuse RPM. -cat << \EOF > %{name}-req -#!/bin/sh -%{__perl_requires} $* |\ - sed -e '/perl(XML::SAX::PurePerl::DTDDecls)/d' |\ - sed -e '/perl(XML::SAX::PurePerl::DocType)/d' |\ - sed -e '/perl(XML::SAX::PurePerl::EncodingDetect)/d' |\ - sed -e '/perl(XML::SAX::PurePerl::XMLDecl)/d' -EOF - -%define __perl_requires %{_builddir}/XML-SAX-%{version}/%{name}-req -chmod +x %{__perl_requires} - - -# Filter unwanted Provides: perl-XML-SAX should not Provide an -# unversioned perl(XML::SAX) along with the -# versioned one -cat << \EOF > %{name}-prov -#!/bin/sh -%{__perl_provides} $* |\ - sed -e '/perl(XML::SAX::PurePerl)$/d' -EOF - -%define __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov -chmod +x %{__perl_provides} - %build echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -105,6 +84,9 @@ fi %changelog +* Mon Oct 19 2009 Stepan Kasal - 0.96-5 +- use the filtering macros + * Sun Jul 26 2009 Fedora Release Engineering - 0.96-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild