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

Re: Conditionally applying a patch based on a program's EVR



Alan Dunn wrote:
> but is there an easy way to do this for a version number in say, EVR
> form? That is, something like
> 
> %if %{program_version} > 1.2.3
> ...
> %endif

Just figure out the Fedora releases with that version and conditionalize 
based on the Fedora release. If the required version was released as an 
update, you can use a versioned BuildRequires and/or Requires to enforce the 
minimum version (at build time and at run time, respectively).

        Kevin Kofler



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