From 7071fd90c60887958989095af695472de832d31359a3905e51177a9739f03ee1 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 27 Apr 2017 12:10:19 +0000 Subject: [PATCH] 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 --- python-M2Crypto.changes | 5 +++++ python-M2Crypto.spec | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) 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