commit 7058ebaf685cb98877a8a49ca54b0084701b5397 Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Sun Jul 13 15:31:15 2025 +0200
- new, pysha3 replacement for python 3.9+ python3-safe-pysha3.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) --- diff --git a/python3-safe-pysha3.spec b/python3-safe-pysha3.spec new file mode 100644 index 0000000..8f1181e --- /dev/null +++ b/python3-safe-pysha3.spec @@ -0,0 +1,59 @@ +# +# Conditional build: +%bcond_without tests # unit tests + +Summary: SHA-3 (Keccak) for Python 3 +Summary(pl.UTF-8): SHA-3 (Keccak) dla Pythona 3 +Name: python3-safe-pysha3 +Version: 1.0.5 +Release: 1 +License: PSF v2, CC0 v1.0 +Group: Libraries/Python +#Source0Download: https://pypi.org/simple/safe-pysha3/ +Source0: https://files.pythonhosted.org/packages/source/s/safe-pysha3/safe_pysha3-%{version}.tar.gz +# Source0-md5: 25aadfbf890a47af1626f2b9bc7cdbd6 +URL: https://pypi.org/project/safe-pysha3/ +BuildRequires: python3-devel >= 1:3.9 +BuildRequires: python3-setuptools +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: python3-modules >= 1:3.9 +Obsoletes: python3-pysha3 < 1.0.3 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +SHA-3 wrapper (keccak) for Python 3.9-3.13. The package is a wrapper +around the optimized Keccak Code Package, +<https://github.com/gvanas/KeccakCodePackage>. + +%description -l pl.UTF-8 +Obudowanie SHA-3 (keccak) dla Pythona 3.9-3.13. Pakiet obudowuje +zoptymalizowany kod Keccak Code Package +<https://github.com/gvanas/KeccakCodePackage>. + +%prep +%setup -q -n safe_pysha3-%{version} + +%build +%py3_build + +%if %{with tests} +PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \ +%{__python3} tests.py +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES.txt README.txt +%attr(755,root,root) %{py3_sitedir}/_pysha3.cpython-*.so +%{py3_sitedir}/sha3.py +%{py3_sitedir}/__pycache__/sha3.cpython-*.py[co] +%{py3_sitedir}/safe_pysha3-%{version}-py*.egg-info ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python3-safe-pysha3.git/commitdiff/7058ebaf685cb98877a8a49ca54b0084701b5397 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit