Filtering excessive requires

Adam Huffman adam.huffman at gmail.com
Mon Sep 6 14:25:44 UTC 2010


On Fri, Sep 3, 2010 at 4:30 PM, Iain Arnell <iarnell at gmail.com> wrote:
>
> Those methods need a little tweaking for perl packages - you need the
> CPAN dist name instead of the first %{name} in
> "%{_builddir}/%{name}-%{version}/%{name}-prov"
>
> Something like:
>
> # Filter provides/requires
> cat << \EOF > %{name}-prov
> #!/bin/sh
> %{__perl_provides} $* |\
> sed -e '/perl(Bad::Provide)/d'
> EOF
> %global __perl_provides %{_builddir}/SOAP-Lite-%{version}/%{name}-prov
> chmod +x %{__perl_provides}
>
> cat << \EOF > %{name}-req
> #!/bin/sh
> %{__perl_requires} $* |\
> sed -e '/perl(Dont::Need::This)/d'
> EOF
> %global __perl_requires %{_builddir}/SOAP-Lite-%{version}/%{name}-req
> chmod +x %{__perl_requires}
>

Many thanks - that fixed it.

It might be worth editing
https://fedoraproject.org/wiki/Packaging/Perl to reflect this.  Happy
to do that myself if people don't mind.


Adam



More information about the perl-devel mailing list