%global pypi_name packitos %global real_name packit Name: %{real_name} Version: 0.0.1 Release: 1%{?dist} Summary: A tool for integrating upstream projects with Fedora operating system License: MIT URL: https://github.com/packit-service/packit Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) BuildRequires: python3dist(setuptools-scm-git-archive) Requires: fedpkg Requires: python3-%{real_name} = %{version}-%{release} %?python_enable_dependency_generator %description This project provides tooling and automation to integrate upstream open source projects into Fedora operating system. %package -n python3-%{real_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{real_name}} %description -n python3-%{real_name} Python library for Packit, check out packit package for the executable. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files %license LICENSE %{_bindir}/packit %files -n python3-%{real_name} %license LICENSE %doc README.md %{python3_sitelib}/%{real_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Mar 04 2019 Frantisek Lachman - 0.0.1-1 - Initial package.