From 7a112816e984ab8086e6922db0424d5c500d23125325805dfc4f0d0ca07ed5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 9 Feb 2018 09:56:35 +0000 Subject: [PATCH] - Enable tests, fix docu install phase OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=54 --- python-M2Crypto.changes | 5 +++++ python-M2Crypto.spec | 18 +++++------------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/python-M2Crypto.changes b/python-M2Crypto.changes index 6fad6d4..5861bc7 100644 --- a/python-M2Crypto.changes +++ b/python-M2Crypto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 9 09:56:10 UTC 2018 - tchvatal@suse.com + +- Enable tests, fix docu install phase + ------------------------------------------------------------------- Thu Feb 8 18:57:19 UTC 2018 - michael@stroeder.com diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index c06ecbb..e843591 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -16,20 +16,16 @@ # -# Tests don't work offline -%bcond_with tests - %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-M2Crypto Version: 0.28.1 Release: 0 -Url: https://gitlab.com/m2crypto/m2crypto Summary: Crypto and SSL toolkit for Python License: MIT Group: Development/Languages/Python -Source: https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: https://gitlab.com/m2crypto/m2crypto +Source: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing} @@ -37,13 +33,13 @@ BuildRequires: fdupes BuildRequires: openssl BuildRequires: openssl-devel BuildRequires: python-rpm-macros +Requires: python-typing # hpj: SLES 12 and Leap 42.1 need swig3 to build this package %if 0%{?sle_version} == 120100 BuildRequires: swig3 %else BuildRequires: swig %endif -Requires: python-typing %ifpython2 Provides: %{oldpython}-m2crypto = %{version} Obsoletes: %{oldpython}-m2crypto < %{version} @@ -63,8 +59,8 @@ messenger for Zope. %package -n %{name}-doc Summary: Documentation for the Crypto and SSL toolkit for Python Group: Development/Libraries/Python -BuildArch: noarch Requires: %{name} = %{version} +BuildArch: noarch %description -n %{name}-doc M2Crypto is a crypto and SSL toolkit for Python featuring the following: @@ -89,18 +85,14 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} -%if %{with tests} %check %python_exec setup.py test -%endif %files %{python_files} -%defattr(-,root,root) %doc CHANGES LICENCE README.rst %{python_sitearch}/* %files -n %{name}-doc -%defattr(-,root,root) -%doc doc/* +%doc doc/*.rst %changelog