- use the filtering macros
This commit is contained in:
parent
3b24e7bd41
commit
ff3307cc53
@ -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 <skasal@redhat.com> - 0.96-5
|
||||
- use the filtering macros
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user