%global srcname uritools Name: python-%{srcname} Version: 3.0.0 Release: 1%{?dist} Summary: URI parsing, classification and composition License: MIT URL: https://github.com/tkem/uritools/ Source0: %{pypi_source} BuildArch: noarch %global _description %{expand: This module provides RFC 3986 compliant functions for parsing, classifying and composing URIs and URI references, largely replacing the Python Standard Library’s urllib.parse module.} %description %_description %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} rm MANIFEST.in %build %py3_build %install %py3_install %check %{python3} setup.py test # Note that there is no %%files section for the unversioned python module %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Thu Oct 15 2020 Tobias Girstmair - 3.0.0-1 - Initial RPM Release