%global pypi_name uri-template %global pypi_version 1.2.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: 4%{?dist} Summary: RFC 6570 URI Template Processor License: MIT URL: https://github.com/plinss/uri_template/ Source0: %{url}/archive/refs/tags/v%{pypi_version}.tar.gz#/%{name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description An implementation of RFC 6570 URI Templates.This packages implements URI Template expansion in strict adherence to RFC 6570, but adds a few extensions. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} An implementation of RFC 6570 URI Templates.This packages implements URI Template expansion in strict adherence to RFC 6570, but adds a few extensions. %prep %autosetup -n uri_template-%{pypi_version} # Upstream released tarball contains version 0.0.0 in setup.py sed -i 's/0.0.0/%{pypi_version}/g' setup.py %build %py3_build %install %py3_install %check %{python3} test.py %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/uri_template %{python3_sitelib}/uri_template-%{pypi_version}-py%{python3_version}.egg-info %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 29 2022 Parag Nemade - 1.2.0-2 - Fix as per suggested in package review (#2102060) * Wed Jun 29 2022 Parag Nemade - 1.2.0-1 - Initial package.