Re: Filtering excessive requires

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 6, 2010 at 4:25 PM, Adam Huffman <adam.huffman@xxxxxxxxx> wrote:
> On Fri, Sep 3, 2010 at 4:30 PM, Iain Arnell <iarnell@xxxxxxxxx> 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.

That part of the wiki is protected - but you could add a sub-section
to the draft of the updated version

https://fedoraproject.org/wiki/PackagingDraft:Perl#Filtering_Requires_and_Provides


-- 
Iain.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux