Dependency of RPM package (multi version)

devzero2000 pinto.elia at gmail.com
Wed Feb 24 09:59:03 UTC 2010


On Wed, Feb 24, 2010 at 10:00 AM, Huo QiFeng <huoqifeng at gmail.com> wrote:

> It seems not same question.
>
> My problem is to set an version range of dependency in the spec.
> Such as:  *Requires: 1.0 <= B <= 2.0*

Ok. I have miss the point. So do you want a logical AND not an OR - the hard
case

Try

Requires: B >= 1.0
Requires: B <= 2.0

hth

>
>
>
>
> On Wed, Feb 24, 2010 at 4:20 PM, devzero2000 <pinto.elia at gmail.com> wrote:
>
>> On Wed, Feb 24, 2010 at 8:20 AM, Huo QiFeng <huoqifeng at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm creating an addon package A both on SuSe and Redhat, See A depends on
>>> B.
>>>
>>> A depends on 1.0 and 2.0 of B.
>>>
>>> On, For debian package on Ubuntu, I can use: *"Depends B (>=1.0), B
>>> (<=2.0)"*
>>>
>>> Do you know how can I implement similar on SuSe for rpm .spec package? It
>>> seems which does not work for below sentence.
>>> *"Requires: B >= 1.0, B <=2.0"*
>>>
>> This question was already asked in the past as "boolean dependency". See
>> this post if you want to know more
>> http://rpm5.org/community/rpm-devel/3089.html
>>
>> hth
>>
>>>
>>> Thanks for your help!
>>>
>>> --
>>> Best Regards
>>> ------------------------------------------------
>>> Huo QiFeng
>>>
>>> _______________________________________________
>>> Rpm-list mailing list
>>> Rpm-list at lists.rpm.org
>>> http://lists.rpm.org/mailman/listinfo/rpm-list
>>>
>>>
>>
>> _______________________________________________
>> Rpm-list mailing list
>> Rpm-list at lists.rpm.org
>> http://lists.rpm.org/mailman/listinfo/rpm-list
>>
>>
>
>
> --
> Best Regards
> ------------------------------------------------
> Huo QiFeng
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100224/a2663922/attachment.htm>


More information about the Rpm-list mailing list