Mailinglist Archive: opensuse-buildservice (90 mails)

< Previous Next >
Re: [opensuse-buildservice] %{?suse_version} complete list
On Thu, Feb 02, Szőts Ákos wrote:

I'd like to differentiate between Leap 42.1 and 42.2 in a .spec file.

Packman has this in prjconf, should work equally well in a .spec file:

...
#
%if 0%{?suse_version} == 1315
%if 0%{?is_opensuse}
#
%if 0%{?sle_version} == 120200
# Leap 42.2
%define _without_freerdp 1
%define _with_vlc_atmo 1
%define _without_vlc_ncurses 1
Macros:
%_without_freerdp 1
%_with_vlc_atmo 1
%_without_vlc_ncurses 1
:Macros
%endif
#
%if 0%{?sle_version} == 120100
# Leap 42.1
%define _with_vlc_atmo 1
%define _without_vlc_ncurses 1
Macros:
%_with_vlc_atmo 1
%_without_vlc_ncurses 1
:Macros
%endif
# !Leap
%else
# SLE12
%define _with_vlc_atmo 1
%define _without_freerdp 1
%define _without_gpac 1
%define _without_graphicsmagic 1
%define _without_vlc_kde4 1
%define _without_vlc_ncurses 1
%define _without_vlc_svgdec 1
%define _without_zbar 1
Macros:
%_with_vlc_atmo 1
%_without_freerdp 1
%_without_gpac 1
%_without_graphicsmagic 1
%_without_vlc_kde4 1
%_without_vlc_ncurses 1
%_without_vlc_svgdec 1
%_without_zbar 1
:Macros
%endif
%endif
#
...

Olaf
< Previous Next >
References