%global modname ptyprocess %if 0%{?fedora} %global with_python3 1 %endif Name: python-ptyprocess Version: 0.5 Release: 3%{?dist} Summary: Run a subprocess in a pseudo terminal License: ISC URL: https://github.com/pexpect/ptyprocess Source0: https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: pytest %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-pytest %endif %description Launch a subprocess in a pseudo terminal (pty), and interact with both the process and its pty. %package -n python2-ptyprocess Summary: Run a subprocess in a pseudo terminal %{?python_provide:%python_provide python2-%{modname}} %description -n python2-ptyprocess Launch a subprocess in a pseudo terminal (pty), and interact with both the process and its pty. %if 0%{?with_python3} %package -n python3-ptyprocess Summary: Run a subprocess in a pseudo terminal %{?python_provide:%python_provide python3-%{modname}} %description -n python3-ptyprocess Launch a subprocess in a pseudo terminal (pty), and interact with both the process and its pty. %endif %prep %setup -qn ptyprocess-%{version} %build %py2_build %if 0%{?with_python3} LC_ALL=en_US.UTF-8 \ %py3_build %endif %install %if 0%{?with_python3} LC_ALL=en_US.UTF-8 \ %py3_install %endif %py2_install %check %if 0%{?with_python3} %{_bindir}/py.test-3.* %endif %{_bindir}/py.test-2.* %files -n python2-ptyprocess # TODO add COPYING with next release %doc README.rst %{python2_sitelib}/ptyprocess/ %{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info %if 0%{?with_python3} %files -n python3-ptyprocess %doc README.rst %{python3_sitelib}/ptyprocess/ %{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info %endif %changelog * Thu Feb 04 2016 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Oct 14 2015 Thomas Spura - 0.5-3 - Use new python macros * Thu Jun 18 2015 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 21 2015 Thomas Spura - 0.5-1 - update to 0.5 (#1223718) * Wed Jan 07 2015 Thomas Spura - 0.4-1 - update to 0.4 * Wed Dec 03 2014 Thomas Spura - 0.3.1-2 - Generalize with_python3 macro - Add comment to tests section * Tue Nov 25 2014 Thomas Spura - 0.3.1-1 - initial spec for ptyprocess (#1167830)