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
This commit is contained in:
Tomáš Chvátal
2020-08-28 07:11:53 +00:00
committed by Git OBS Bridge
parent a7970d89ae
commit ba596a4af5
2 changed files with 7 additions and 6 deletions

View File

@@ -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