Re: patch only if dependent version < x? (rpm spec)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Kofler wrote:

> Neal Becker wrote:
>> How can I apply a patch only if the version of a dependency is < x?
> 
> I generally do something like:
> 
> %if 0%{?fedora} > NN
> %global have_foo_MMM 1
> %endif
> 
> %if 0%{?have_foo_MMM}
> BuildRequires: foo-devel >= MMM
> %else
> BuildRequires: foo-devel < MMM
> %endif
> 
> â
> 
> %prep
> %if 0%{?have_foo_MMM}
> %patchPPP -p1 -b .fooMMM
> %endif
> 
>         Kevin Kofler
> 

So it is ultimately conditioned on fedora version, not foo-devel version.

OK.

It seems more direct to condition on foo-devel version.  Is that unreasonable?  
Or just too difficult?

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux