## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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-pyformlang Version: 1.0.11 Release: %autorelease Summary: A python framework for formal grammars License: MIT URL: https://github.com/Aunsiels/pyformlang Source: %{pypi_source pyformlang} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: A python framework for formal grammars.} %description %_description %package -n python3-pyformlang Summary: %{summary} %description -n python3-pyformlang %_description %prep %autosetup -p1 -n pyformlang-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pyformlang %check %pyproject_check_import %pytest %files -n python3-pyformlang -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Wed Apr 23 2025 W. Michael Petullo - 1.0.11-2 - Require pytest to build * Wed Apr 23 2025 W. Michael Petullo - 1.0.11-1 - Initial import (fedora#2335267) ## END: Generated by rpmautospec