%global pypi_name prompt_toolkit Name: python-%{pypi_name} Version: 1.0.15 Release: 0%{?dist} Summary: Library for building powerful interactive command lines in Python License: BSD URL: https://github.com/jonathanslenders/python-prompt-toolkit Source0: https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description prompt_toolkit is a library for building powerful interactive command lines and terminal applications in Python. %package -n python2-%{pypi_name} Summary: Library for building powerful interactive command lines in Python %{?python_provide:%python_provide python2-%{pypi_name}} BuildRequires: python2-devel BuildRequires: python%{?fedora:2}-setuptools BuildRequires: %{?fedora:python2-}pytest BuildRequires: python%{?fedora:2}-pygments BuildRequires: python%{?fedora:2}-six >= 1.9.0 BuildRequires: python%{?fedora:2}-wcwidth Requires: python%{?fedora:2}-pygments Requires: python%{?fedora:2}-six >= 1.9.0 Requires: python%{?fedora:2}-wcwidth %description -n python2-%{pypi_name} prompt_toolkit is a library for building powerful interactive command lines and terminal applications in Python. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: Library for building powerful interactive command lines in Python %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pygments BuildRequires: python%{python3_pkgversion}-six >= 1.9.0 BuildRequires: python%{python3_pkgversion}-wcwidth Requires: python%{python3_pkgversion}-pygments Requires: python%{python3_pkgversion}-six >= 1.9.0 Requires: python%{python3_pkgversion}-wcwidth %description -n python%{python3_pkgversion}-%{pypi_name} prompt_toolkit is a library for building powerful interactive command lines and terminal applications in Python. %prep %setup -q -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %check %{__python2} -m pytest -v %{__python3} -m pytest -v %files -n python2-%{pypi_name} %doc README.rst AUTHORS.rst CHANGELOG %license LICENSE %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst AUTHORS.rst CHANGELOG %license LICENSE %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Mon Feb 12 2018 Carl George - 1.0.14-5 - Make requirements compatible with EPEL - Build for Python 3 in EPEL - Run test suite - Remove duplicate provides * Mon Feb 12 2018 Iryna Shcherbina - 1.0.14-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 01 2017 Fabio Alessandro Locati - 1.0.14-1 - Update to 1.0.14 * Sat Feb 11 2017 Fedora Release Engineering - 1.0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 1.0.9-2 - Rebuild for Python 3.6 * Sun Dec 11 2016 Fabio Alessandro Locati - 1.0.9-1 - Update to 1.0.9 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri May 06 2016 Fabio Alessandro Locati - 1.0.0-1 - Update to 1.0.0 * Tue Mar 29 2016 Fabio Alessandro Locati - 0.60-1 - Update to 0.60 * Thu Feb 04 2016 Fedora Release Engineering - 0.57-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 12 2016 Fabio Alessandro Locati - 0.57-2 - Make the EL6 package provide python-prompt_toolkit too * Sat Jan 09 2016 Fabio Alessandro Locati - 0.57-1 - New upstream update * Wed Jan 06 2016 Fabio Alessandro Locati - 0.54-2 - Fix quiet setup - Fix license - Add AUTHORS.rst, CHANGELOG & TODO.rst * Tue Dec 29 2015 Fabio Alessandro Locati - 0.54-1 - Initial package.