SCIENTIFIC-LINUX-USERS Archives

September 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Garrett Holmstrom <[log in to unmask]>
Reply To:
Garrett Holmstrom <[log in to unmask]>
Date:
Wed, 14 Sep 2011 21:40:42 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
On 2011-09-14 18:20, Nico Kadel-Garcia wrote:
> And unfortunately, it can be confusing as all get-out for building
> SRPM's for multiple releases. Subversion, for example, has different
> dependencies in "el5" than in "el6", or in "f14" or later, and working
> out the logic for selecting the right options for your OS is a bit of
> an adventure when unpredictable and non-major-release "%dist" settings
> are used.

Thankfully, when you're building with mock or you're building natively 
on nearly anything that isn't el < 6, you can use other macros that are 
designed to solve precisely this problem.

%if 0%{?el5}
# SL 5-specific dependency info
%endif

%if 0%{?rhel} >= 6 || 0%{?fedora}
# Bits that apply to both SL 6+ and Fedora
%endif

%if 0%{?suse_version} >= 1140
# Info for openSUSE 11.4+
%endif

%if 0%{?mdkversion} || 0%{?mgaversion}
# (and so forth)
%endif

-- 
Garrett Holmstrom

ATOM RSS1 RSS2