15
0

- Properly conditionalize the python2 drop so it lets us backport

the packages

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=15
This commit is contained in:
Tomáš Chvátal
2020-01-10 14:51:19 +00:00
committed by Git OBS Bridge
parent 9235e3806d
commit 560bb96a24
2 changed files with 23 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 10 14:50:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Properly conditionalize the python2 drop so it lets us backport
the packages
-------------------------------------------------------------------
Thu Jan 9 18:01:55 UTC 2020 - Todd R <toddrme2178@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-openapi-core
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%if 0%{?suse_version} > 1500
%define skip_python2 1
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-openapi-core
Version: 0.12.0
Release: 0
@@ -45,6 +50,16 @@ Requires: python-openapi-spec-validator
Requires: python-six
Requires: python-strict-rfc3339
BuildArch: noarch
%if %{with python2}
BuildRequires: python-backports.functools_lru_cache
BuildRequires: python-backports.functools_partialmethod
BuildRequires: python-enum34
%endif
%ifpython2
Requires: python-backports.functools_lru_cache
Requires: python-backports.functools_partialmethod
Requires: python-enum34
%endif
%python_subpackages
%description