diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index 3dcc3da..14048fb 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 26 15:50:39 UTC 2017 - alarrosa@suse.com + +- Provide python-m2crypto in the python2 package + ------------------------------------------------------------------- Tue Apr 18 21:03:56 UTC 2017 - toddrme2178@gmail.com diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index e5a020a..265b444 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -15,9 +15,11 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + # Tests don't work offline %bcond_with tests +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-M2Crypto Version: 0.26.0 @@ -28,13 +30,13 @@ License: MIT and ZPL-2.0 and BSD-3-Clause Group: Development/Languages/Python Source: https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: openssl -BuildRequires: openssl-devel -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing} +BuildRequires: fdupes +BuildRequires: openssl +BuildRequires: openssl-devel +BuildRequires: python-rpm-macros # hpj: SLES 12 and Leap 42.1 need swig3 to build this package %if 0%{?sle_version} == 120100 BuildRequires: swig3 @@ -43,6 +45,10 @@ BuildRequires: swig %endif Provides: python-m2crypto = %{version} Obsoletes: python-m2crypto < %{version} +%ifpython2 +Provides: %{oldpython}-m2crypto = %{version} +Obsoletes: %{oldpython}-m2crypto < %{version} +%endif %python_subpackages %description