## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 srcname recordclass Name: python-%{srcname} Version: 0.18.1.1 Release: %autorelease Summary: Mutable variant of namedtuple License: MIT URL: https://bitbucket.org/intellimath/recordclass Source: %{pypi_source} BuildRequires: gcc BuildRequires: python3-devel %global _description %{expand: Recordclass is Python library implementing a mutable variant of namedtuple, which support assignments, and other memory saving variants.} %description %_description %package -n python3-%{srcname} Summary: %{summary} Suggests: %{name}-doc = %{version}-%{release} %description -n python3-%{srcname} %_description %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Additional documentation and examples for %{name}. %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check PYTHONPATH="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}" \ %python3 ./test_all.py %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.md ACKS %files doc %license LICENSE.txt %doc examples %changelog * Fri Jan 20 2023 Fedora Release Engineering 0.18.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 09 2023 Davide Cavalca 0.18.1.1-1 - Initial import; Fixes: RHBZ#2158694