[opensuse-packaging] How do I define Leap42.1 in a spec file
Hi, How do I define Leap in aq spec file as in %suse_version. Thanks Dave Plater -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 11/6/15, Tomáš Chvátal
Dne Pá 6. listopadu 2015 12:43:47, Dave Plater napsal(a):
Hi, How do I define Leap in aq spec file as in %suse_version. Thanks Dave Plater
You have these two variables with following values to use in your spec:
%suse_version 1315 %is_opensuse 1
Tom So if I want to include Leap in this statement : %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 I need to say: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || %is_opensuse 1
Thanks Dave -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 06/11/2015 13:29, Dave Plater wrote:
On 11/6/15, Tomáš Chvátal
wrote: Dne Pá 6. listopadu 2015 12:43:47, Dave Plater napsal(a):
Hi, How do I define Leap in aq spec file as in %suse_version. Thanks Dave Plater
You have these two variables with following values to use in your spec:
%suse_version 1315 %is_opensuse 1
Tom So if I want to include Leap in this statement : %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 I need to say: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || %is_opensuse 1
Thanks Dave
Hi, %is_opensuse is new to me but it evaluates to 1 on my leap system. To be safe I'm using: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || 0%{?suse_version} == 1315 Thanks, Dave -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Nov 6, 2015 at 3:24 PM, Dave Plater
%is_opensuse is new to me but it evaluates to 1 on my leap system. To be safe I'm using: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || 0%{?suse_version} == 1315
This will match both SLES and Leap. If you really want to match Leap only, you need suse_version == 1315 && is_opensuse == 1 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 06/11/2015 14:34, Andrei Borzenkov wrote:
On Fri, Nov 6, 2015 at 3:24 PM, Dave Plater
wrote: %is_opensuse is new to me but it evaluates to 1 on my leap system. To be safe I'm using: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || 0%{?suse_version} == 1315
This will match both SLES and Leap. If you really want to match Leap only, you need
suse_version == 1315 && is_opensuse == 1
It's for blender to build in both Packman and in openSUSE with two different ffmpeg flavors. ffmpeg isn't in 13.2, only Leap Tumbleweed and up. So is_opensuse 0 can be used to detect SLES? Thanks Dave -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, 07 Nov 2015 08:46:15 +0100, Dave Plater wrote:
On 06/11/2015 14:34, Andrei Borzenkov wrote:
On Fri, Nov 6, 2015 at 3:24 PM, Dave Plater
wrote: %is_opensuse is new to me but it evaluates to 1 on my leap system. To be safe I'm using: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || 0%{?suse_version} == 1315
This will match both SLES and Leap. If you really want to match Leap only, you need
suse_version == 1315 && is_opensuse == 1
It's for blender to build in both Packman and in openSUSE with two different ffmpeg flavors. ffmpeg isn't in 13.2, only Leap Tumbleweed and up. So is_opensuse 0 can be used to detect SLES?
In your case, it'd be like: %if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1) Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please?
Agreed, it makes things much easier. Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Sat, Nov 07, 2015 at 11:11:05AM +0100, Takashi Iwai wrote:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please?
Agreed, it makes things much easier.
BTW, why do you need this version compare? Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 2015-11-07 11:19, Marcus Meissner wrote:
On Sat, Nov 07, 2015 at 11:11:05AM +0100, Takashi Iwai wrote:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please?
Agreed, it makes things much easier.
BTW, why do you need this version compare?
The most-often-seen use case is %configure \ %if %leap_version >= %blubb --with-library-not-in-sles-and-not-in-old-opensuse %endif -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 07/11/2015 12:19, Marcus Meissner wrote:
On Sat, Nov 07, 2015 at 11:11:05AM +0100, Takashi Iwai wrote:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please?
Agreed, it makes things much easier.
BTW, why do you need this version compare?
Ciao, Marcus
I've put blender into Packman and want to leave it as a linked package but if you require anything other than libffmpeg-devel in Packman you get an unresolvable nightmare, strangely enough not in the Leap repo, only Factory and Tumbleweed. BUILD_ORIG is 1 in PMBS. Also Leap is suse_version 1315 which is less than 1320 but 1320 doesn't have ffmpeg-devel, 1315 does have it. Regards Dave -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
07.11.2015 13:11, Takashi Iwai пишет:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \
BTW what is BUILD_ORIG? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 07 November 2015 13.23:25 Andrei Borzenkov wrote:
07.11.2015 13:11, Takashi Iwai пишет:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \
BTW what is BUILD_ORIG?
to diff obs and packman obs ... from what I've seen -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 07/11/2015 12:23, Andrei Borzenkov wrote:
07.11.2015 13:11, Takashi Iwai пишет:
On Sat, 07 Nov 2015 09:53:54 +0100, Jan Engelhardt wrote:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \
BTW what is BUILD_ORIG? It's defined in the Packman meta prjconf as 1 Regards Dave -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 07.11.2015 um 09:53 schrieb Jan Engelhardt:
On Saturday 2015-11-07 09:23, Takashi Iwai wrote:
%if 0%{?suse_version} > 1320 || 0%{?BUILD_ORIG} == 1 || \ (0{%suse_version} == 1315 && 0%{?is_opensuse} == 1)
This is just ridiculous. Can we have a simple %leap_version pretty please?
Fine with me. %sle_version is 120100 in SP1, so we can have %leap_version 420100 rpm.spec is actually already prepared to add it to the macros if it exists. Greetings, Stephan -- Ma muaß weiterkämpfen, kämpfen bis zum Umfalln, a wenn die ganze Welt an Arsch offen hat, oder grad deswegn. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (8)
-
Andrei Borzenkov
-
Bruno Friedmann
-
Dave Plater
-
Jan Engelhardt
-
Marcus Meissner
-
Stephan Kulow
-
Takashi Iwai
-
Tomáš Chvátal