diff --git a/filter-requires-xmlsax.sh b/filter-requires-xmlsax.sh new file mode 100755 index 0000000..6677d02 --- /dev/null +++ b/filter-requires-xmlsax.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/lib/rpm/find-requires $* | grep -v 'perl(XML::SAX::PurePerl' diff --git a/perl-XML-SAX.spec b/perl-XML-SAX.spec index 7d73dd8..c03dcec 100644 --- a/perl-XML-SAX.spec +++ b/perl-XML-SAX.spec @@ -1,7 +1,9 @@ +%define _use_internal_dependency_generator 0 + Summary: XML-SAX Perl module Name: perl-XML-SAX Version: 0.12 -Release: 5 +Release: 6 License: GPL or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/XML-SAX/ @@ -11,9 +13,16 @@ Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(: Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') Source0: XML-SAX-0.12.tar.gz +Source1: filter-requires-xmlsax.sh BuildArch: noarch BuildRequires: perl-XML-NamespaceSupport +# Provide perl-specific find-{provides,requires}. +%define __find_provides /usr/lib/rpm/find-provides.perl +# %%define __find_requires /usr/lib/rpm/find-requires.perl +%define __find_requires %{SOURCE1} + + %description %{summary}.