From 4b7249c8ab122aaddca7cceebccab39c5383b15d41c9888db6ed4d833da9b9a1 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 23 Jun 2017 17:14:51 +0000 Subject: [PATCH] Accepting request 504890 from home:sebix:branches:devel:languages:python fix python-typing dependency OBS-URL: https://build.opensuse.org/request/show/504890 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=38 --- python-M2Crypto.changes | 5 +++++ python-M2Crypto.spec | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index cd33ed7..de7d946 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 19 21:47:35 UTC 2017 - sebix+novell.com@sebix.at + +- only require python3-typing if necessary + ------------------------------------------------------------------- Sat May 6 03:33:01 UTC 2017 - toddrme2178@gmail.com diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index 2762e68..d263052 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -32,7 +32,6 @@ Source: https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.t BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing} BuildRequires: fdupes BuildRequires: openssl BuildRequires: openssl-devel @@ -43,7 +42,15 @@ BuildRequires: swig3 %else BuildRequires: swig %endif +%if 0%{?suse_version} <= 1320 +BuildRequires: %{python_module typing} Requires: python-typing +%else +BuildRequires: python2-typing +%endif +%ifpython2 && 0%{?suse_version} > 1320 +Requires: python2-typing +%endif %ifpython2 Provides: %{oldpython}-m2crypto = %{version} Obsoletes: %{oldpython}-m2crypto < %{version}