feora and centos fixes

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=308
This commit is contained in:
Adrian Schröter 2019-12-05 10:46:35 +00:00 committed by Git OBS Bridge
parent af1f593ead
commit e87af84294

View File

@ -1,7 +1,7 @@
#
# spec file for package osc
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,7 @@
#
%if 0%{?suse_version} >= 1500 || 0%{?fedora_version} >= 29
%if 0%{?suse_version} >= 1500 || 0%{?fedora_version} >= 29 || 0%{?centos_version} >= 800
%bcond_without python3
%else
%bcond_with python3
@ -47,7 +47,7 @@ BuildRequires: diffstat
BuildRequires: python-rpm
Requires: python-rpm
%else
%if 0%{?suse_version} >= 1500
%if 0%{?suse_version} >= 1500 || 0%{?fedora_version} >= 32 || 0%{?centos_version} >= 800
BuildRequires: %{use_python}-rpm
Requires: %{use_python}-rpm
%else
@ -111,7 +111,7 @@ BuildRequires: python-m2crypto > 0.19
Requires: python-m2crypto > 0.19
%endif
%else
%if 0%{?fedora_version} >= 29
%if 0%{?fedora_version} >= 29 || 0%{?centos_version} >= 800
BuildRequires: python3-m2crypto
Requires: python3-m2crypto
%else