%global pypi_name git-pull-request %global pkg_name git_pull_request Name: %{pypi_name} Version: 2.4.0 Release: 1%{?dist} Summary: Command line tool to send GitHub pull-request License: ASL 2.0 URL: https://github.com/jd/git-pull-request Source0: https://files.pythonhosted.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pbr BuildRequires: python3-setuptools Requires: python3-PyGithub Requires: python3-daiquiri Requires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description %{name} is a command line tool to send GitHub pull-request from your terminal. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files %doc README.rst %{_bindir}/git-pull-request %{python3_sitelib}/%{pkg_name} %{python3_sitelib}/%{pkg_name}-%{version}-py?.?.egg-info %changelog * Sat Oct 7 2017 Haïkel Guémar - 2.4.0-1 - Upstream 2.4.0 - Upstream dropped python2 support * Thu May 25 2017 Haïkel Guémar - 0.0.2-1 - Initial package.