%global srcname rfc3339-validator %global slugname rfc3339_validator %global pkgname python-rfc3339-validator %global forgeurl https://github.com/naimetti/rfc3339-validator %global common_description %{expand: A pure python RFC3339 validator } Name: %{pkgname} Version: 0.1.4 %forgemeta Release: %autorelease Summary: Pure python RFC3339 validator License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description %{common_description} %package -n python3-%{srcname} Summary: %summary %description -n python3-%{srcname} %{common_description} %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{slugname} %files -n python3-%{srcname} %{python3_sitelib}/%{slugname}-%{version}.dist-info %{python3_sitelib}/%{slugname}.py %pycached %{python3_sitelib}/%{slugname}.py %license LICENSE %changelog %autochangelog