## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 %bcond_without check Name: python-immutabledict Version: 4.2.0 Release: %autorelease Summary: Drop-in replacement for dictionaries where immutability is desired License: MIT URL: https://github.com/corenting/immutabledict Source0: %{url}/archive/v%{version}/immutabledict-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with check} BuildRequires: python3-pytest %endif %global _description %{expand: Implements the complete mapping interface and can be used as a drop-in replacement for dictionaries where immutability is desired. The immutabledict constructor mimics dict, and all of the expected interfaces (iter, len, repr, hash, getitem) are provided.} %description %{_description} %package -n python3-immutabledict Summary: %{summary} %description -n python3-immutabledict %{_description} %prep %autosetup -p1 -n immutabledict-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files immutabledict %if %{with check} %check %pytest %endif %files -n python3-immutabledict -f %{pyproject_files} # Explicit license until poetry adds proper metadata # https://github.com/python-poetry/poetry/issues/1350 %license LICENSE %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 4.2.0-2 - Rebuilt for Python 3.13 * Thu Mar 14 2024 Kai A. Hiller - 4.2.0-1 - Update to v4.2.0 * Fri Jan 26 2024 Fedora Release Engineering - 4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Dec 07 2023 Kai A. Hiller - 4.0.0-1 - Update to v4.0.0 * Sat Aug 19 2023 Kai A. Hiller - 3.0.0-1 - Update to v3.0.0 * Fri Jul 21 2023 Fedora Release Engineering - 2.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 2.2.4-2 - Rebuilt for Python 3.12 * Wed May 10 2023 Kai A. Hiller - 2.2.4-1 - Initial import (fedora#2182063) ## END: Generated by rpmautospec