[Q] Specified Provides version in rpm spec file

Florian Festi ffesti at redhat.com
Thu Feb 11 12:21:23 UTC 2016


On 01/07/2016 10:35 AM, Fan Yang wrote:
> Hi RPM maintainers,
> 
>  
> 
> Here I have an issue I want to ask for your help.

Sorry, for the late reply. Your mail got stuck in the moderation queue...

> *What happend:*
> I'm now working on a linux side-by-side installation issue since rpm no
> longer support to install the 32-bit and 64-bit same name packages on a
> machine at the same time.

I am not aware of such change. What version of rpm are you using and
what distribution are you packaging for?

> So I need to change the name of the 32-bit package from xxx.i386.rpm to
> xxx-32bit.i386.rpm.
> 
> For supporting the upgrade of this package, I should provide the old
> package name: xxx in the spec file.
> 
>  
> 
> *Problem:*
> I've looked into the pages of rpm.org looking for whether we can specify
> the version which we provided in the spec file like:
> 
> %Provides: xxx = 16.0
> 
> I've done some test and it seems to work. But I can't find any offical
> explanation.
> So do you know the properly behaviour if I specified the provides
> package version in the Provides.

Yes, this is exactly how it is supposed to work (with out the "%").

Florian

-- 

Red Hat GmbH, http://www.de.redhat.com/ Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Charles Peters


More information about the Rpm-list mailing list