## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 %global pypi_name dataclassy %global common_description %{expand: An enhanced, tiny reimplementation of data classes in Python - an alternative to the built-in dataclasses module that avoids many of its common pitfalls. dataclassy is designed to be more flexible, less verbose, and more powerful than dataclasses, while retaining a familiar interface.} Name: python-%{pypi_name} Version: 1.0.1 Release: %autorelease BuildArch: noarch Summary: An enhanced, tiny reimplementation of dataclasses License: MPL-2.0 URL: https://github.com/biqqles/%{pypi_name} VCS: git:%{url}.git Source0: %{pypi_source %{pypi_name}} # FIXME should go into PyPi package Source1: python-dataclassy-tests.py BuildRequires: python3-mypy BuildSystem: pyproject BuildOption(prep): -n %{pypi_name}-%{version} BuildOption(install): -l %{pypi_name} %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %prep -a # FIXME should go into PyPi package install -D -p -m 0644 %{SOURCE1} tests.py %check -a %python3 tests.py %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Mar 13 2025 Peter Lemenkov - 1.0.1-3 - F41+: Use the provisional declarative buildsystem * Sat Jan 18 2025 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Aug 05 2024 Peter Lemenkov - 1.0.1-1 - Initial commit ## END: Generated by rpmautospec