Sync from SUSE:ALP:Source:Standard:1.0 python-M2Crypto revision 4b8533f237f59e6aa4aa2705425d8745
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-M2Crypto
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,18 +17,20 @@
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%{?sle15allpythons}
|
||||
Name: python-M2Crypto
|
||||
Version: 0.39.0
|
||||
Version: 0.44.0
|
||||
Release: 0
|
||||
Summary: Crypto and SSL toolkit for Python
|
||||
License: MIT
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://gitlab.com/m2crypto/m2crypto
|
||||
Source0: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
|
||||
Source1: M2Crypto-%{version}.tar.gz.asc
|
||||
Source99: python-M2Crypto.keyring
|
||||
URL: https://sr.ht/~mcepl/m2crypto/
|
||||
Source0: https://files.pythonhosted.org/packages/source/M/M2crypto/m2crypto-%{version}.tar.gz
|
||||
Source99: python-M2Crypto.rpmlintrc
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module typing}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
@@ -77,7 +79,7 @@ messenger for Zope.
|
||||
Documentation for the Crypto and SSL toolkit for Python
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n M2Crypto-%{version}
|
||||
%autosetup -p1 -n m2crypto-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -90,7 +92,9 @@ export CFLAGS="%{optflags}"
|
||||
%check
|
||||
%python_expand ls -l %{buildroot}%{$python_sitearch}/M2Crypto/*.so*
|
||||
export PYTEST_ADDOPTS="--import-mode=append"
|
||||
%pyunittest_arch tests
|
||||
# Ignore test_verify_with_static_callback that fails with openssl 3.2
|
||||
donttest="test_verify_with_static_callback"
|
||||
%pytest_arch -k "not ($donttest)" tests
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES LICENCE README.rst
|
||||
|
||||
Reference in New Issue
Block a user