From f6c50e49e44e7fbdcb02edf365fb66faf0616d013aca22a3bbba3569a84da087 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:13:47 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argon2-cffi?expand=0&rev=14 --- python-argon2-cffi.changes | 5 +++++ python-argon2-cffi.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-argon2-cffi.changes b/python-argon2-cffi.changes index e617094..61e3d03 100644 --- a/python-argon2-cffi.changes +++ b/python-argon2-cffi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 10:12:33 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Jan 17 12:29:23 UTC 2020 - Marketa Calabkova diff --git a/python-argon2-cffi.spec b/python-argon2-cffi.spec index ae62500..2055a07 100644 --- a/python-argon2-cffi.spec +++ b/python-argon2-cffi.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-argon2-cffi Version: 19.2.0 Release: 0 Summary: The Argon2 password hashing algorithm for Python License: MIT -Group: Development/Languages/Python URL: https://github.com/hynek/argon2_cffi Source: https://files.pythonhosted.org/packages/source/a/argon2-cffi/argon2-cffi-%{version}.tar.gz BuildRequires: %{python_module cffi >= 1.0.0} @@ -34,12 +34,14 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRequires: python2-enum34 BuildRequires: pkgconfig(libargon2) Requires: python-cffi >= 1.0.0 Requires: python-six Provides: python-argon2_cffi Obsoletes: python-argon2_cffi +%if %{with python2} +BuildRequires: python-enum34 +%endif %ifpython2 Requires: python-enum34 %endif