[Rpm-maint] Why does my requires line not work?
Peter Bowen
pzb at novell.com
Wed Mar 12 11:30:52 UTC 2008
On Wed, 2008-03-12 at 06:32 -0400, Jim Lynch wrote:
> I have the following (truncated) spec file:
>
> Name: Local_GoFetch
> Version: 1.42
> Release: 1
> Provides: perl(Local::GoFetch)
> But a spec file with
> Requires perl(Local_GoFetch)>=1.42
> fails.
:: and _ are not the same. You have several options to fix this:
- Change to require Local_GoFetch >= 1.42
- Change to require perl(Local::GoFetch)
- Change to provide perl(Local::GoFetch) = %{version}-%{release} and
then require perl(Local::GoFetch) >= 1.42
You can change to require perl(Local::GoFetch) >= 1.42 without adjusting
the provides line, but you are likely to be surprised at the outcome.
It will work, but all your Local_GoFetch packages will match because an
unversioned provides implicitly provides all versions.
Thanks,
Peter
More information about the Rpm-maint
mailing list