From ba596a4af57b3260dbeb74c3d09dc2e08248d18879cd13cf8978cdb7e4a9444a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 28 Aug 2020 07:11:53 +0000 Subject: [PATCH] Accepting request 830107 from home:glaubitz:branches:devel:languages:python - Disable Python2 support to fix the build on older distributions OBS-URL: https://build.opensuse.org/request/show/830107 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=25 --- python-bcrypt.changes | 5 +++++ python-bcrypt.spec | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/python-bcrypt.changes b/python-bcrypt.changes index 1ac815b..945a155 100644 --- a/python-bcrypt.changes +++ b/python-bcrypt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 27 22:04:24 UTC 2020 - John Paul Adrian Glaubitz + +- Disable Python2 support to fix the build on older distributions + ------------------------------------------------------------------- Thu Aug 20 12:46:59 UTC 2020 - Ondřej Súkup diff --git a/python-bcrypt.spec b/python-bcrypt.spec index 53e816e..2693cc1 100644 --- a/python-bcrypt.spec +++ b/python-bcrypt.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%define skip_python2 1 Name: python-bcrypt Version: 3.2.0 Release: 0 @@ -42,11 +42,7 @@ Requires: python-six >= 1.4.1 %requires_eq python-cffi Provides: python-py-bcrypt = %{version} Obsoletes: python-py-bcrypt < %{version} -# This is intended as a drop-in replacement for py-bcrypt -%ifpython2 -Provides: %{oldpython}-py-bcrypt = %{version} -Obsoletes: %{oldpython}-py-bcrypt < %{version} -%endif + %python_subpackages %description