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

Re: Detecting version in a SPEC file



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 xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


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