## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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 srcname recordclass Name: python-%{srcname} Version: 0.20 Release: %autorelease Summary: Mutable variant of namedtuple License: MIT URL: https://bitbucket.org/intellimath/recordclass Source: %{pypi_source} BuildRequires: gcc BuildRequires: python3-devel # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %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 * Sat Aug 12 2023 Davide Cavalca - 0.20-2 - Drop i686 build due to test failures * Sat Aug 12 2023 Davide Cavalca - 0.20-1 - Update to 0.20; Fixes: RHBZ#2226314, RHBZ#2220479, RHBZ#2176168 * Fri Jul 21 2023 Fedora Release Engineering - 0.18.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.18.1.1-3 - Rebuilt for Python 3.12 * 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