Subject: | |
From: | |
Reply To: | |
Date: | Wed, 14 Sep 2011 21:40:42 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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
|
|
|