# Enable Python dependency generation %{?python_enable_dependency_generator} %global pypi_name pagure-messages Name: python-%{pypi_name} Version: 0.0.2 Release: 1%{?dist} Summary: A schema package for messages sent by pagure License: GPLv2+ URL: https://pagure.io/pagure-messages Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(fedora-messaging) BuildRequires: python3dist(setuptools) %description %{summary}. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{summary}. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/pagure_messages %{python3_sitelib}/pagure_messages-%{version}-py%{python3_version}.egg-info %changelog * Wed Nov 18 2020 Neal Gompa - 0.0.2-1 - Initial package.