diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index b12cff9..aeb6168 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 8 18:13:06 UTC 2017 - jmatejek@suse.com + +- use generic way to require python-typing now that python3 provides it + ------------------------------------------------------------------- Wed Oct 25 20:07:14 UTC 2017 - michael@stroeder.com diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index cd8cbb8..a92c37c 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -36,6 +36,7 @@ Patch1: fix-openssl-include-path.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing} BuildRequires: fdupes BuildRequires: openssl BuildRequires: openssl-devel @@ -46,15 +47,7 @@ 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}