- simplifiy conditions for all rhel like distros to skip testsuite

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=116
This commit is contained in:
Dirk Mueller 2021-12-13 10:56:23 +00:00 committed by Git OBS Bridge
parent 141957fc5c
commit d508052095
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 13 10:46:10 UTC 2021 - Dirk Müller <dmueller@suse.com>
- simplifiy conditions for all rhel like distros to skip testsuite
-------------------------------------------------------------------
Wed Jul 14 09:32:33 UTC 2021 - FSchreiner@suse.com

View File

@ -1,5 +1,5 @@
#
# spec file for package obs-service-set_version
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -16,14 +16,14 @@
#
%if 0%{?centos_version} || 0%{?almalinux} || 0%{?rocky} || ( 0%{?suse_version} && 0%{?suse_version} <= 1315 )
%if 0%{?rhel} || ( 0%{?suse_version} && 0%{?suse_version} <= 1315 )
%bcond_with obs_scm_testsuite
%else
%bcond_without obs_scm_testsuite
%endif
%define service set_version
%if 0%{?suse_version} > 1315 || 0%{?fedora_version} || 0%{?centos_version} >= 800 || 0%{?almalinux} >= 8 || 0%{?mageia} >= 8 || 0%{?rocky} >= 8
%if 0%{?suse_version} > 1315 || 0%{?fedora_version} || 0%{?rhel} >= 8
%define use_python python3
%else
%define use_python python