fix build for CentOS 8
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=106
This commit is contained in:
parent
d9218d2f00
commit
2795859aa7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user