## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests 1 %global forgeurl https://github.com/Rogdham/pyzstd %define tag %{version} Name: python-pyzstd Version: 0.16.1 %forgemeta Release: %autorelease Summary: Python bindings to Zstandard (zstd) compression library License: BSD-3-Clause URL: %{forgeurl} Source: %{forgesource} BuildRequires: gcc BuildRequires: libzstd-devel BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} %endif %global _description %{expand: Pyzstd module provides classes and functions for compressing and decompressing data, using Facebook’s Zstandard (or zstd as short name) algorithm.} %description %_description %package -n python3-pyzstd Summary: %{summary} %description -n python3-pyzstd %_description %prep %autosetup -p1 %{forgesetupargs} # Ensure dynamic-link-zstd is always used sed -i 's|DYNAMIC_LINK =.*|DYNAMIC_LINK = True|' setup.py # Stop disabling debuginfo sed -i "s|'-g0', ||" setup.py # Fix non-executable-script rpmlint error sed -i -e '1{\@^#!.*@d}' src/__main__.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pyzstd %check %pytest %files -n python3-pyzstd -f %{pyproject_files} %doc CHANGELOG.md %doc README.md %license LICENSE %changelog ## START: Generated by rpmautospec * Mon Aug 05 2024 Maxwell G - 0.16.1-1 - Update to 0.16.1. Fixes rhbz#2281937. * Fri Jul 19 2024 Fedora Release Engineering - 0.15.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 14 2024 Maxwell G - 0.15.10-3 - Add temporary fix for Python 3.13 FTBFS * Fri Jun 07 2024 Python Maint - 0.15.10-2 - Rebuilt for Python 3.13 * Sun Apr 07 2024 Maxwell G - 0.15.10-1 - Initial package (rhbz#2273823). ## END: Generated by rpmautospec