## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global pypi_name propcache Name: python-%{pypi_name} Version: 0.2.0 Release: %autorelease Summary: Module for fast property caching License: Apache-2.0 URL: https://github.com/aio-libs/propcache Source: https://github.com/aio-libs/propcache/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3dist(cython) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) %global _description %{expand: Module for fast property caching.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} -p1 # Disable coverage sed -r -e 's/(-.*cov.*$)/#\1/g' -i pytest.ini %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc CHANGES.rst README.rst %changelog ## START: Generated by rpmautospec * Thu Feb 13 2025 Fabian Affolter - 0.2.0-1 - Initial package ## END: Generated by rpmautospec