Detecting version in a SPEC file
Jos Vos
jos at xos.nl
Mon Feb 19 12:57:03 UTC 2007
On Sun, Feb 18, 2007 at 07:11:17PM -0800, Roland McGrath wrote:
> I think what you want to do is:
>
> %define gnupg_version 1.2
> %if "%fedora" >= "6"
> %define gnupg_version 1.4
> %endif
> %if "%rhel" >= "5"
> %define gnupg_version 1.4
> %endif
I don't know about Fedora, but on RHEL nothing on the system predefines
the %rhel macro, that's purely an internal define in the RH build system.
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the devel
mailing list