[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Detecting version in a SPEC file
- From: Roland McGrath <roland redhat com>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: Detecting version in a SPEC file
- Date: Sun, 18 Feb 2007 19:11:17 -0800 (PST)
Your Buildrequires are your declaration of what is required for the build
the spec wants to do. You don't want it to depend on what happens to be
around.
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
...
BuildRequires: gnupg = %{gnupg_version}
...
%check
%if "%gnupg_version" = "1.2"
this data
%else
that data
%endif
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]