.spec file help - need buildrequires to depend on fedora version

Todd Zullinger tmz at pobox.com
Mon Jun 22 02:15:58 UTC 2009


Carl Byington wrote:
> My libpst package BuildRequires boost-devel, which works on older
> systems (centos4 thru fedora 10), but for fedora 11 and devel, it
> needs BuildRequires boost-python-devel. What is the preferred .spec
> code to achieve that?

Something like this:

%if 0%{?fedora} > 10
BuildRequires: boost-python-devel
%else
BuildRequires: boost-devel
%endif

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Religion. A daughter of Hope and Fear, explaining to Ignorance the
nature of the Unknowable.
    -- Ambrose Bierce, The Enlarged Devil's Dictionary, 1906

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090621/2deaeae1/attachment.sig>


More information about the fedora-devel-list mailing list