%{?!python3_pkgversion:%global python3_pkgversion 3} %global srcname tgext-tw2 Name: python-tgext-tw2 Version: 0.1 Release: 1%{?dist} 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: python3dist(pytest) BuildRequires: python3dist(webtest) %generate_buildrequires %pyproject_buildrequires %{?python_enable_dependency_generator} %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} %build %pyproject_wheel %install rm -rf $RPM_BUILD_ROOT %pyproject_install %pyproject_save_files tgext %check %pytest %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Wed Feb 19 2025 Ján ONDREJ (SAL) - initial release