## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 %{?!python3_pkgversion:%global python3_pkgversion 3} %global srcname tgext-tw2 Name: python-tgext-tw2 Version: 0.1 Release: %autorelease Summary: Support ToscaWidgets2 forms and validation in TurboGears License: MIT URL: https://github.com/TurboGears/tgext.tw2 # Unable to use pypi_source, missing tests/kajiki_form.xhtml file #Source0: pypi_source tgext.tw2 Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(webtest) %description Support ToscaWidgets2 forms and validation in TurboGears 2.5+ %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} Support ToscaWidgets2 forms and validation in TurboGears 2.5+ %prep %autosetup -p1 -n tgext.tw2-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l tgext %check %pytest %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 25 2025 Fedora Release Engineering - 0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Jun 23 2025 Jan ONDREJ (SAL) - 0.1-2 - Initial import (rhbz#2359691) * Mon Jun 23 2025 Jan ONDREJ (SAL) - 0.1-1 - Initial import (rhbz#2359691) ## END: Generated by rpmautospec