On Mon, 2005-07-11 at 18:25 +0200, Brunello Ivan wrote:

> I did not explain well.
> If a perl package contains several modules, I just wanted to check against 
> one included module, not the whole package.
> 

Basically you want a package to Require only 'Selected' perl-modules?

> Try to install my contrib tsl-2.2 perl-time-modules, and issue:
> 
> rpm -qi --provides perl-time-modules
> 
> Name        : perl-time-modules            Relocations: (not relocateable)
> Version     : 2003.1126                         Vendor: (none)
> Release     : 1ib                           Build Date: Thu Jun 30 18:11:19 
> 2005
> Install date: Mon Jul 11 18:17:01 2005      Build Host: smi-ld901.aonet.lab
> Group       : Trustix Contrib               Source RPM: 
> perl-time-modules-2003.1126-1ib.src.rpm
> Size        : 63149                            License: distributable
> URL         : http://www.cpan.org
> Summary     : Perl module Time-modules
> Description :
> Time-modules module from CPAN for perl
> Time-modules = 2003.1126
> perl(Time::CTime) = 99.06
> perl(Time::DaysInMonth) = 99.1117
> perl(Time::JulianDay) = 2003.1125
> perl(Time::ParseDate) = 2003.1126
> perl(Time::Timezone) = 2003.0211
> perl-time-modules = 2003.1126-1ib
> 
> If I just want to Require Time::ParseDate, is there a way of doing this,

Well there is a way which i use. you could refer to a srpm of mod-perl
maybe.
I have added a Source? called mod_perl-perlreqexclude.sh where i
specifically remove the Unwanted perl modules from being in the
Requires.
 
ex. mod_perl-perlreqexclude.sh    
/usr/lib/rpm/perl.req $* | grep -v NDBM | grep -v
'perl(Tie::RangeHash)' 

and in the spec for mod_perl, define
%define __perl_requires %{SOURCE?}

>  or is "best policy" to include the whole package?

It really depends i guess. My view.

> 
> Ivan
> 

--
Aristo
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to