File python-propcache.spec of Package python-propcache
%{?vortex_header}%{!?vortex_header:%global vortex_pkg vortex-2025-12}
## START: Set by rpmautospec
## (rpmautospec version 0.8.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
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
%bcond tests 0
Name: %{vortex_pkg}-python-%{pypi_name}
Version: 0.4.1
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: pyproject-rpm-macros
BuildRequires: %{vortex_pkg}-python3-devel
BuildRequires: %{vortex_pkg}-python3-cython
BuildRequires: %{vortex_pkg}-python3-pip
BuildRequires: %{vortex_pkg}-python3-setuptools
BuildRequires: %{vortex_pkg}-python3-expandvars
%if %{with tests}
BuildRequires: %{vortex_pkg}-python3-pytest
BuildRequires: %{vortex_pkg}-python3-pytest-xdist
%endif
%global debug_package %{nil}
%global _description %{expand:
Module for fast property caching.}
%description %_description
%package -n %{vortex_pkg}-python3-%{pypi_name}
Summary: %{summary}
%description -n %{vortex_pkg}-python3-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Disable coverage
sed -r -e 's/(-.*cov.*$)/#\1/g' -i pytest.ini
# Remove Cython's upper version pin
sed -i 's/Cython ~= 3\.1\.0/Cython >= 3.1.0/g' packaging/pep517_backend/_backend.py
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l %{pypi_name}
%if %{with tests}
%check
%pytest
%endif
%files -n %{vortex_pkg}-python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGES.rst README.rst
%changelog
## START: Generated by rpmautospec
* Fri Nov 21 2025 Charalampos Stratakis <cstratak@redhat.com> - 0.4.1-2
- Remove Cython's upper verion pin
- Fixes: rhbz#2413934
* Tue Oct 14 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 0.4.1-1
- Update to 0.4.1 (close RHBZ#2402588)
* Sun Oct 05 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 0.4.0-1
- Update to 0.4.0
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.2.0-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Tue Sep 09 2025 Tom Rix <Tom.Rix@amd.com> - 0.2.0-5
- Fix no debug info failure
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.2.0-4
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 0.2.0-2
- Rebuilt for Python 3.14
* Thu Feb 13 2025 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.0-1
- Initial package
## END: Generated by rpmautospec