Ajith, Thank you for the suggestion. I'll try to look & understand better, before blindly applying this. It is hard for my current packaging capabilities. (regex & perl are still quite a nightmare to me).
To answer your question, Chris: I provide the full time-modules package, w/ all the current included modules. It is not my intention to remove modules from a cpan tarball, or even remove "provides" from a package. But the package depending on this (let's call it e.g. "nmis") just require Time::ParseDate. Whenever the time-modules changes (maybe splitting), I wish to ensure that nmis package still checks for perl module, and not the whole package. If I just need /bin/ls, I would prefer to put "/bin/ls", not the whole "coreutils" in Requires. If /bin/ls is provided by either "fileutils" or "coreutils" does not matter to me. In short: My goal is adding granularity to requirements checks in depending package, not to reduce provided features. I hope this has cleared my intentions :-) Thank you. Ivan > -----Messaggio originale----- > Da: Christian Haugan Toldnes [mailto:[EMAIL PROTECTED] > Inviato: martedì 12 luglio 2005 9.08 > A: Brunello Ivan > Cc: [email protected] > Oggetto: Re: R: RPM .spec HOWTO: Require perl module > > > (Jul 11 2005 18:25) 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. > > > > Try to install my contrib tsl-2.2 perl-time-modules, and issue: > > > > rpm -qi --provides perl-time-modules > > > (...) > > 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? > > It is possible, as ajith mentions. > > Much more interesting is: Why do you want perl-time-modules > to only provide Time::ParseDate? I guess the name of the > package suggest that the package not only provides 1 module, > so letting the package provide all it actually provides is a > good thing. > > Some other packages might require Time::Timezone which is > provided in this package as well. > > > > kind regards > > > c > > -- > Christian H. Toldnes > Trustix Developer > > _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
