Re: Detecting version in a SPEC file

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux