## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %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 Name: python-typelets Version: 1.1 Release: %autorelease Summary: Type hints and utility objects for Python and Django projects License: MIT URL: https://typelets.readthedocs.io/ Source: %{pypi_source typelets} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Typelets is a Python typing utility module designed to augment some of the types provided in Python and third-party libraries.} %description %_description %package -n python3-typelets Summary: %{summary} %description -n python3-typelets %_description %prep %autosetup -p1 -n typelets-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l typelets %check # We skip django import checks, because the upstream project intentionally made # django parts of typelets optional without specifying runtime dependency. # And likely just as intentionally did not declare it in extras. # # Since the expected consumer, RBTools, does not use and should not require # django, it's actually beneficial for us to verify that everything else can be # imported without it. %pyproject_check_import -e 'typelets.django.*' %pytest %files -n python3-typelets -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Wed Nov 11 2026 Aleksei Bavshin - 1.1-1 - Initial import (rhbz#2448306) ## END: Generated by rpmautospec