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.
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, or is "best policy" to include the whole package? Ivan > -----Messaggio originale----- > Da: Christian Haugan Toldnes [mailto:[EMAIL PROTECTED] > Inviato: lunedì 11 luglio 2005 15.34 > A: Brunello Ivan > Cc: [email protected] > Oggetto: Re: RPM .spec HOWTO: Require perl module > > > (Jul 11 2005 15:20) Brunello Ivan wrote: > > I'm building up an RPM package of a perl application which > requires a > > lot of perl modules. > > > > How do I write down such requirement (e.g. Net::SMTP) in "Requires" > > statement? > > rpm handles that. You could add requirements to the actual > rpm packages providing these perl modules, like: > > Requires: perl, perl-net-snmp, perl-date-calc > > > kind regards > > c > > -- > Christian H. Toldnes > Trustix Developer > > _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
