From 2795859aa7781793d4fd1460ace5633bd2b89e880d0f1756ed7a76c2fb511993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 4 Dec 2019 15:18:53 +0000 Subject: [PATCH] fix build for CentOS 8 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=106 --- obs-service-set_version.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/obs-service-set_version.spec b/obs-service-set_version.spec index 001cef2..f9af077 100644 --- a/obs-service-set_version.spec +++ b/obs-service-set_version.spec @@ -1,7 +1,7 @@ # # spec file for package obs-service-set_version # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,14 @@ # +%if 0%{?centos_version} +%bcond_with obs_scm_testsuite +%else %bcond_without obs_scm_testsuite +%endif %define service set_version -%if 0%{?suse_version} > 1315 || 0%{?fedora_version} +%if 0%{?suse_version} > 1315 || 0%{?fedora_version} || 0%{?centos_version} >= 800 %define use_python python3 %else %define use_python python @@ -31,7 +35,7 @@ Release: 0 Summary: An OBS source service: Update spec file version License: GPL-2.0-or-later Group: Development/Tools/Building -Url: https://github.com/openSUSE/obs-service-%{service} +URL: https://github.com/openSUSE/obs-service-%{service} Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch