- 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
|
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
|
%define oldpython python
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-M2Crypto
|
Name: python-M2Crypto
|
||||||
Version: 0.28.1
|
Version: 0.28.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://gitlab.com/m2crypto/m2crypto
|
|
||||||
Summary: Crypto and SSL toolkit for Python
|
Summary: Crypto and SSL toolkit for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
|
Url: https://gitlab.com/m2crypto/m2crypto
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module typing}
|
BuildRequires: %{python_module typing}
|
||||||
@ -37,13 +33,13 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: openssl
|
BuildRequires: openssl
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-typing
|
||||||
# hpj: SLES 12 and Leap 42.1 need swig3 to build this package
|
# hpj: SLES 12 and Leap 42.1 need swig3 to build this package
|
||||||
%if 0%{?sle_version} == 120100
|
%if 0%{?sle_version} == 120100
|
||||||
BuildRequires: swig3
|
BuildRequires: swig3
|
||||||
%else
|
%else
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
%endif
|
%endif
|
||||||
Requires: python-typing
|
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: %{oldpython}-m2crypto = %{version}
|
Provides: %{oldpython}-m2crypto = %{version}
|
||||||
Obsoletes: %{oldpython}-m2crypto < %{version}
|
Obsoletes: %{oldpython}-m2crypto < %{version}
|
||||||
@ -63,8 +59,8 @@ messenger for Zope.
|
|||||||
%package -n %{name}-doc
|
%package -n %{name}-doc
|
||||||
Summary: Documentation for the Crypto and SSL toolkit for Python
|
Summary: Documentation for the Crypto and SSL toolkit for Python
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
BuildArch: noarch
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description -n %{name}-doc
|
%description -n %{name}-doc
|
||||||
M2Crypto is a crypto and SSL toolkit for Python featuring the following:
|
M2Crypto is a crypto and SSL toolkit for Python featuring the following:
|
||||||
@ -89,18 +85,14 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc CHANGES LICENCE README.rst
|
%doc CHANGES LICENCE README.rst
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root)
|
%doc doc/*.rst
|
||||||
%doc doc/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user