Accepting request 795826 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/795826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fido2?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2020-04-21 11:11:05 +00:00 committed by Git OBS Bridge
commit e54cd8d525
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 20 12:42:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Sun Dec 8 23:05:47 UTC 2019 - Karol Babioch <kbabioch@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-fido2
#
# 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,13 +17,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-fido2
Version: 0.8.1
Release: 0
Summary: Python-based FIDO 2.0 library
License: BSD-2-Clause AND BSD-3-Clause AND Apache-2.0 AND MPL-2.0
Group: Development/Languages/Python
Url: https://github.com/Yubico/python-fido2
URL: https://github.com/Yubico/python-fido2
Source0: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz
Source1: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz.sig
BuildRequires: %{python_module cryptography >= 1.5}
@ -33,10 +34,12 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-enum34
Requires: python-cryptography >= 1.5
Requires: python-six
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-enum34
%endif
%ifpython2
Requires: python2-enum34
%endif