Accepting request 491271 from home:alarrosa:branches:devel:languages:python

This is needed by crda to build correctly with the singlespec version of the
python-M2Crypto package.
- Provide python-m2crypto in the python2 package

OBS-URL: https://build.opensuse.org/request/show/491271
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=33
This commit is contained in:
Robert Schweikert 2017-04-27 12:10:19 +00:00 committed by Git OBS Bridge
parent b008691292
commit 7071fd90c6
2 changed files with 15 additions and 4 deletions

View File

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

View File

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