Conditionally applying a patch based on a program's EVR
Kevin Kofler
kevin.kofler at chello.at
Sat Jul 11 13:43:21 UTC 2009
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
More information about the devel
mailing list