%global srcname ogr Name: python-%{srcname} Version: 0.11.2 Release: %{?autorel}%{!?autorel:1} Summary: One API for multiple git forges License: MIT URL: https://github.com/packit-service/ogr Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) BuildRequires: python3dist(setuptools-scm-git-archive) %description One Git library to Rule! %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} One Git library to Rule! %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENSE %doc README.md %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %changelog %autochangelog