%global srcname pathvalidate Name: python-%{srcname} Version: 2.3.2 Release: 1%{?dist} Summary: Library to sanitize/validate a string such as filenames/file-paths/etc License: MIT URL: https://github.com/thombashi/pathvalidate Source0: %{pypi_source} BuildArch: noarch %description %{summary}. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{summary}. %prep %setup -q -n %{srcname}-%{version} rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %check # Missing dependency to allpairspy #%{python3} setup.py test %files -n python3-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Fri Mar 05 2021 Jonny Heggheim - 2.3.2-1 - Initial package