[packages/python-pyblake2] - new

qboosh qboosh at pld-linux.org
Fri Dec 5 18:10:35 CET 2025


commit 81a5c64a971633240c9f6ee97f2eeed9d0b8f628
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 5 18:10:39 2025 +0100

    - new

 python-pyblake2.spec | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 185 insertions(+)
---
diff --git a/python-pyblake2.spec b/python-pyblake2.spec
new file mode 100644
index 0000000..a6e67af
--- /dev/null
+++ b/python-pyblake2.spec
@@ -0,0 +1,185 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_with	python3 # CPython 3.x module (functionality included in hashlib in 3.6+)
+
+Summary:	BLAKE2 hash function extension module
+Summary(pl.UTF-8):	Moduł rozszerzenia z funkcją skrótu BLAKE2
+Name:		python-pyblake2
+Version:	1.1.2
+Release:	1
+# pyblake2: Public Domain or in countries not recognizing it: CC0 v1.0, Unlicense, WTFPL v2, Apache v2.0, OpenSSL, MIT BSD, ISC
+# BLAKE2: CC0, OpenSSL or Apache v2.0
+License:	CC0 v1.0, OpenSSL or Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pyblake2/
+Source0:	https://files.pythonhosted.org/packages/source/p/pyblake2/pyblake2-%{version}.tar.gz
+# Source0-md5:	d2306b67d17274bca06d598b64ef7b38
+URL:		https://pypi.org/project/pyblake2/
+%if %{with python2}
+BuildRequires:	python-devel >= 1:2.6
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-2
+%endif
+Requires:	python-modules >= 1:2.6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pyblake2 is an extension module for Python implementing BLAKE2 hash
+function.
+
+BLAKE2 is a cryptographic hash function, which offers highest security
+while being as fast as MD5 or SHA-1, and comes in two flavors:
+- BLAKE2b, optimized for 64-bit platforms and produces digests of any
+  size between 1 and 64 bytes,
+- BLAKE2s, optimized for 8- to 32-bit platforms and produces digests
+  of any size between 1 and 32 bytes.
+- BLAKE2 supports keyed mode (a faster and simpler replacement for
+  HMAC), salted hashing, personalization, and tree hashing.
+
+Hash objects from this module follow the API of standard library's
+hashlib objects.
+
+%description -l pl.UTF-8
+pyblake2 to moduł rozszerzenia dla Pythona, implementujący funkcję
+skrótu BLAKE2.
+
+BLAKE2 to kryptograficzna funkcja skrótu, oferująca wysokie
+bezpieczeństwo, będąc jednocześnie tak szybką, jak MD5 czy SHA-1;
+jest dostępna w dwóch wariantach:
+- BLAKE2b - zoptymalizowana dla platform 64-bitowych, tworząca skróty
+  dowolnego rozmiaru od 1 do 64 bajtów
+- BLAKE2s - zoptymalizowana dla platform od 8- do 32-bitowych,
+  tworząca skróty dowolnego rozmiaru od 1 do 32 bajtów
+- BLAKE2 obsługuje tryb z kluczem (szybszy i prostszy zamiennik HMAC),
+  haszowanie z solą, personalizację i haszowanie drzewiaste.
+
+Obiekty skrótu z tego modułu są zgodne z API obiektów hashlib
+biblioteki standardowej.
+
+%package -n python3-pyblake2
+Summary:	BLAKE2 hash function extension module
+Summary(pl.UTF-8):	Moduł rozszerzenia z funkcją skrótu BLAKE2
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-pyblake2
+pyblake2 is an extension module for Python implementing BLAKE2 hash
+function.
+
+BLAKE2 is a cryptographic hash function, which offers highest security
+while being as fast as MD5 or SHA-1, and comes in two flavors:
+- BLAKE2b, optimized for 64-bit platforms and produces digests of any
+  size between 1 and 64 bytes,
+- BLAKE2s, optimized for 8- to 32-bit platforms and produces digests
+  of any size between 1 and 32 bytes.
+- BLAKE2 supports keyed mode (a faster and simpler replacement for
+  HMAC), salted hashing, personalization, and tree hashing.
+
+Hash objects from this module follow the API of standard library's
+hashlib objects.
+
+%description -n python3-pyblake2 -l pl.UTF-8
+pyblake2 to moduł rozszerzenia dla Pythona, implementujący funkcję
+skrótu BLAKE2.
+
+BLAKE2 to kryptograficzna funkcja skrótu, oferująca wysokie
+bezpieczeństwo, będąc jednocześnie tak szybką, jak MD5 czy SHA-1;
+jest dostępna w dwóch wariantach:
+- BLAKE2b - zoptymalizowana dla platform 64-bitowych, tworząca skróty
+  dowolnego rozmiaru od 1 do 64 bajtów
+- BLAKE2s - zoptymalizowana dla platform od 8- do 32-bitowych,
+  tworząca skróty dowolnego rozmiaru od 1 do 32 bajtów
+- BLAKE2 obsługuje tryb z kluczem (szybszy i prostszy zamiennik HMAC),
+  haszowanie z solą, personalizację i haszowanie drzewiaste.
+
+Obiekty skrótu z tego modułu są zgodne z API obiektów hashlib
+biblioteki standardowej.
+
+%package apidocs
+Summary:	API documentation for Python pyblake2 module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pyblake2
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Python pyblake2 module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pyblake2.
+
+%prep
+%setup -q -n pyblake2-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTHONPATH=$(readlink -f build-2/lib.*) \
+%{__python} test/test.py
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} test/test.py
+%endif
+%endif
+
+%if %{with doc}
+%{__make} -C doc_src html \
+	SPHINXBUILD=sphinx-build-2
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.rst
+%attr(755,root,root) %{py_sitedir}/pyblake2.so
+%{py_sitedir}/pyblake2-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pyblake2
+%defattr(644,root,root,755)
+%doc COPYING README.rst
+%attr(755,root,root) %{py3_sitedir}/pyblake2.cpython-*.so
+%{py3_sitedir}/pyblake2-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/html/{_images,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyblake2.git/commitdiff/81a5c64a971633240c9f6ee97f2eeed9d0b8f628




More information about the pld-cvs-commit mailing list