%global srcname streebog %global _description %{expand: Python ctypes wrapper for the GOST R 34.11-2012 (RFC 6986) hash function. Internally, it uses the streebog C library developed by Alexey Degtyarev.} # RHEL9 doesn't have nose, and it won't be added to EPEL9 because it's # abandoned upstream (and deprecated in Fedora). # https://bugzilla.redhat.com/show_bug.cgi?id=2041068 %bcond_with tests Name: python-%{srcname} Version: 0.1.0 Release: 1%{?dist} Summary: Python ctypes wrapper for the GOST R 34.11-2012 (RFC 6986) License: GPLv2 URL: https://gitverse.ru/ezamriy/python-streebog Source0: %{ur}/archive/refs/tags/%{version}.tar.gz Patch0: 0001-Fix-license.patch BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel Requires: gost3411-2012-libs%{?_isa} >= 0.13 %description -n python3-%{srcname} %{_description} %prep %autosetup -p1 -n python-%{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} PYTHONPATH="%{buildroot}/%{python3_sitelib}" %check %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md LICENSE LICENSE.GPL2 %changelog * Thu May 07 2026 Arkady L. Shane - 0.1.0-1 - Initial build of 0.1.0