- Fix %%files to work with %pyproject_ style building.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodome?expand=0&rev=53
This commit is contained in:
Matej Cepl 2023-05-05 17:13:34 +00:00 committed by Git OBS Bridge
parent e465b68b7d
commit 16cf62749e
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 5 17:09:46 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Fix %%files to work with %pyproject_ style building.
-------------------------------------------------------------------
Mon Mar 27 09:18:25 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -16,28 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%define min_version %{lua:rpm.expand("%{version}"):gsub("^(%d+%.%d+).*", "%1")}
Name: python-pycryptodome
Version: 3.17.0
Release: 0
Summary: Cryptographic library for Python
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://www.pycryptodome.org
Source: https://github.com/Legrandin/pycryptodome/archive/v%{version}.tar.gz#/pycryptodome-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Provides: python-pycrypto = %{version}
Obsoletes: python-pycrypto < %{version}
%if !0%{?_no_weakdeps}
# PyCryptodome uses gmp via cffi as runtime optimization
# would be better, if libgmp* would provide gmp
Suggests: libgmp10
Suggests: python-cffi
%endif
Provides: python-pycrypto = %{version}
Obsoletes: python-pycrypto < %{version}
%ifpython2
Provides: %{oldpython}-pycrypto = %{version}
Obsoletes: %{oldpython}-pycrypto < %{version}
@ -80,7 +79,7 @@ Python. Only the pieces that are extremely critical to performance
(e.g. block ciphers) are implemented as C extensions.
%prep
%setup -q -n pycryptodome-%{version}
%autosetup -p1 -n pycryptodome-%{version}
%build
export LC_ALL=en_US.UTF-8
@ -102,6 +101,6 @@ popd}
%license LICENSE.rst
%doc AUTHORS.rst Changelog.rst README.rst
%{python_sitearch}/Crypto/
%{python_sitearch}/pycryptodome-%{version}-py*.egg-info
%{python_sitearch}/pycryptodome-%{min_version}*-info
%changelog