%global pypi_name curses_ex Name: python-%{pypi_name} Version: 0.3 Release: 0%{?dist} Summary: Provide additional curses functions Group: Development/Libraries License: BSD URL: https://pypi.python.org/pypi/curses_ex Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: gcc Provides: python3-curses_ex %description Python extension module to provides some funtions not supported by standard curses package. %package -n python3-%{pypi_name} Summary: Provide additional curses functions Group: Development/Libraries %description -n python3-%{pypi_name} Python3 extension module to provides some funtions not supported by standard curses package. %prep %setup -q -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %{__python3} setup.py build %install %{__python3} setup.py install --skip-build --root=%{buildroot} %files -n python3-%{pypi_name} %doc README.rst %{python3_sitearch}/* %changelog