Mailinglist Archive: opensuse-packaging (165 mails)

< Previous Next >
Re: [opensuse-packaging] How to distinguish SLE 11 service packs?

Hello,

On Jul 6 18:48 Jean Delvare wrote (excerpt):
Le vendredi 06 juillet 2012 à 14:35 +0200, Marcus Rueckert a écrit :
On 2012-07-06 10:21:35 +0200, Johannes Meixner wrote:
http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
--------------------------------------------------------------------------
SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
...
ServicePacks cannot be distinguished. SLES11 SP1 sets exactly the same
variables as SLES11.

But I need to distinguish SLE 11 GA versus SP1 versus SP2.

How can I do it?

you cant.

Johannes, if you explain why you wanted to distinguish between these,
maybe someone will propose an alternative way to solve the problem.

I am not looking for hacks (i.e. stuff that only works in a
specific case).

I could do hacks but I refuse because our external contributors
must easily understand what happens in our spec files, see
https://bugzilla.novell.com/show_bug.cgi?id=770243#c2


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer
< Previous Next >
Follow Ups