forked from pool/python-pycryptodome
- 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:
@@ -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>
|
Mon Mar 27 09:18:25 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -16,28 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
%define min_version %{lua:rpm.expand("%{version}"):gsub("^(%d+%.%d+).*", "%1")}
|
||||||
Name: python-pycryptodome
|
Name: python-pycryptodome
|
||||||
Version: 3.17.0
|
Version: 3.17.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Cryptographic library for Python
|
Summary: Cryptographic library for Python
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://www.pycryptodome.org
|
URL: https://www.pycryptodome.org
|
||||||
Source: https://github.com/Legrandin/pycryptodome/archive/v%{version}.tar.gz#/pycryptodome-%{version}.tar.gz
|
Source: https://github.com/Legrandin/pycryptodome/archive/v%{version}.tar.gz#/pycryptodome-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Provides: python-pycrypto = %{version}
|
||||||
|
Obsoletes: python-pycrypto < %{version}
|
||||||
%if !0%{?_no_weakdeps}
|
%if !0%{?_no_weakdeps}
|
||||||
# PyCryptodome uses gmp via cffi as runtime optimization
|
# PyCryptodome uses gmp via cffi as runtime optimization
|
||||||
# would be better, if libgmp* would provide gmp
|
# would be better, if libgmp* would provide gmp
|
||||||
Suggests: libgmp10
|
Suggests: libgmp10
|
||||||
Suggests: python-cffi
|
Suggests: python-cffi
|
||||||
%endif
|
%endif
|
||||||
Provides: python-pycrypto = %{version}
|
|
||||||
Obsoletes: python-pycrypto < %{version}
|
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: %{oldpython}-pycrypto = %{version}
|
Provides: %{oldpython}-pycrypto = %{version}
|
||||||
Obsoletes: %{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.
|
(e.g. block ciphers) are implemented as C extensions.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pycryptodome-%{version}
|
%autosetup -p1 -n pycryptodome-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
@@ -102,6 +101,6 @@ popd}
|
|||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc AUTHORS.rst Changelog.rst README.rst
|
%doc AUTHORS.rst Changelog.rst README.rst
|
||||||
%{python_sitearch}/Crypto/
|
%{python_sitearch}/Crypto/
|
||||||
%{python_sitearch}/pycryptodome-%{version}-py*.egg-info
|
%{python_sitearch}/pycryptodome-%{min_version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user