## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 %bcond_without check Name: python-immutabledict Version: 2.2.4 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 * Wed May 10 2023 Kai A. Hiller 2.2.4-1 - Initial import (fedora#2182063)