From e9e20be509fd6f29bef1981b6891ff8d1899ede540a82c2fcccacc8a58ed3df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Mar 2020 10:37:03 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gssapi?expand=0&rev=14 --- python-gssapi.changes | 5 +++++ python-gssapi.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-gssapi.changes b/python-gssapi.changes index 3be2854..de38251 100644 --- a/python-gssapi.changes +++ b/python-gssapi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 10:36:51 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Wed Mar 4 11:32:53 UTC 2020 - Ondřej Súkup diff --git a/python-gssapi.spec b/python-gssapi.spec index 5a68c2f..880859f 100644 --- a/python-gssapi.spec +++ b/python-gssapi.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-gssapi Version: 1.6.2 Release: 0 Summary: A Python interface to RFC 2743/2744 (plus common extensions) License: ISC -Group: Development/Languages/Python URL: https://pythongssapi.github.io/python-gssapi/stable/ Source: https://files.pythonhosted.org/packages/source/g/gssapi/gssapi-%{version}.tar.gz BuildRequires: %{python_module Cython} @@ -35,8 +35,10 @@ BuildRequires: krb5-devel BuildRequires: python-rpm-macros Requires: python-decorator Requires: python-six -%ifpython2 +%if %{with python2} BuildRequires: python2-enum34 +%endif +%ifpython2 Requires: python2-enum34 %endif %python_subpackages