## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 11; 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 Name: python-fastrlock Version: 0.8.3 Release: %autorelease Summary: Fast, re-entrant optimistic lock implemented in Cython License: MIT URL: https://github.com/scoder/fastrlock Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3dist(cython) BuildRequires: python3dist(pytest) %global _description %{expand: This is a C-level implementation of a fast, re-entrant, optimistic lock for CPython. It is a drop-in replacement for threading.RLock. FastRLock is implemented in Cython and also provides a C-API for direct use from Cython code via from fastrlock cimport rlock or from cython.cimports.fastrlock import rlock.} %description %_description %package -n python3-fastrlock Summary: %{summary} %description -n python3-fastrlock %_description %prep %autosetup -p1 -n fastrlock-%{version} # So we do not have to keep up with a license for something we don't use. rm appveyor_env.cmd # Adjust cython's upper bound limit sed -i -e 's@Cython>=3.0.11, <3.1@Cython>=3.0.11, <3.3@' requirements.txt grep Cython requirements.txt %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel -C=--global-option=--with-cython %install %pyproject_install %pyproject_save_files -l fastrlock %check %pyproject_check_import # The tests are imported from $pwd/fastrlock and the extension module is not there. # To avoid that, we rename the package temporarily. # Upstream builds the extension module in place via tox to avoid this problem. # However, that leads to https://bugzilla.redhat.com/2417962 mv fastrlock fastrlock_ %pytest %files -n python3-fastrlock -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Dec 05 2025 Tom Rix - 0.8.3-11 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec