Fix dependencies - filter more requires, fix provides filter.

This commit is contained in:
Robin Norwood 2007-07-07 04:10:34 +00:00
parent 9115b8a87f
commit 454e90bccc

View File

@ -1,7 +1,7 @@
Summary: XML-SAX Perl module Summary: XML-SAX Perl module
Name: perl-XML-SAX Name: perl-XML-SAX
Version: 0.16 Version: 0.16
Release: 1%{?dist} Release: 2%{?dist}
Group: Development/Libraries Group: Development/Libraries
License: GPL or Artistic License: GPL or Artistic
@ -30,11 +30,15 @@ JAXP specification (SAX part), only without the javaness.
%prep %prep
%setup -q -n XML-SAX-%{version} %setup -q -n XML-SAX-%{version}
# Filter unwanted Requires: perl-XML-SAx should not Require perl(XML::SAX) # Filter unwanted Requires: perl-XML-SAX has some poorly-structured
# packages that confuse RPM.
cat << \EOF > %{name}-req cat << \EOF > %{name}-req
#!/bin/sh #!/bin/sh
%{__perl_requires} $* |\ %{__perl_requires} $* |\
sed -e '/perl(XML::SAX::PurePerl)/d' 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 EOF
%define __perl_requires %{_builddir}/XML-SAX-%{version}/%{name}-req %define __perl_requires %{_builddir}/XML-SAX-%{version}/%{name}-req
@ -47,7 +51,7 @@ chmod +x %{__perl_requires}
cat << \EOF > %{name}-prov cat << \EOF > %{name}-prov
#!/bin/sh #!/bin/sh
%{__perl_provides} $* |\ %{__perl_provides} $* |\
sed -e '/perl(XML::SAX::PurePerl)/d' sed -e '/perl(XML::SAX::PurePerl)$/d'
EOF EOF
%define __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov %define __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov
@ -100,6 +104,10 @@ fi
%changelog %changelog
* Sat Jul 07 2007 Robin Norwood <rnorwood@redhat.com> - 0.16-2
- Resolves: rhbz#247213
- Fix provides and requires scripts.
* Mon Jul 02 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.16-1 * Mon Jul 02 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.16-1
- Update to 0.16. - Update to 0.16.
- Brings specfile closer to Fedora Perl template. - Brings specfile closer to Fedora Perl template.