- Enable tests, fix docu install phase
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=54
This commit is contained in:
parent
14d389a317
commit
7a112816e9
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user