## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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-standard-mailcap Version: 3.13.0 Release: %autorelease Summary: Standard library mailcap redistribution, "dead battery" License: PSF-2.0 URL: https://github.com/youknowone/python-deadlib Source: https://github.com/youknowone/python-deadlib/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-test %global _description %{expand: Python is moving forward! Python finally started to remove dead batteries. For more information, see PEP 594. If your project depends on a module that has been removed from the standard, here is the redistribution of the dead batteries.} %description %_description %package -n python3-standard-mailcap Summary: %{summary} %description -n python3-standard-mailcap %_description %prep tar -x -f %{SOURCE0} --strip-components=2 python-deadlib-%{version}/mailcap/ sed -i -e "s/setuptools>=75.0/setuptools>=69.0/" pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l mailcap %check %pyproject_check_import %{py3_test_envvars} %{python3} -m unittest %files -n python3-standard-mailcap -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Sat Apr 12 2025 Dick Marinus - 3.13.0-1 - Initial import (fedora#2328464). ## END: Generated by rpmautospec