%global srcname argopt %global _description \ Define your command line interface (CLI) from a docstring\ (rather than the other way around). Because it’s easy. It’s quick.\ Painless. Then focus on what’s actually important - using the arguments\ in the rest of your program. Name: python-%{srcname} Version: 0.4.0 Release: 1%{?dist} Summary: Doc to argparse driven by docopt License: MPLv2.0 URL: https://github.com/casperdcl/argopt Source0: %{pypi_source} BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} rm -vrf *.egg-info # https://github.com/casperdcl/argopt/issues/6 sed -i -e "/install_requires/d" setup.py %build %py3_build %install %py3_install %files -n python3-%{srcname} %license LICENCE %doc README.rst %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Mon Sep 24 2018 Igor Gnatenko - 0.4.0-1 - Initial package