Blame SPECS/python-ptyprocess.spec

32e802
%global modname ptyprocess
32e802
32e802
%if 0%{?rhel} > 7
32e802
# Disable python2 build by default
32e802
%bcond_with python2
32e802
%else
32e802
%bcond_without python2
32e802
%endif
32e802
32e802
Name:           python-ptyprocess
32e802
Version:        0.5.2
32e802
Release:        4%{?dist}
32e802
Summary:        Run a subprocess in a pseudo terminal
32e802
32e802
License:        ISC
32e802
URL:            https://github.com/pexpect/ptyprocess
32e802
Source0:        https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
32e802
32e802
BuildArch:      noarch
32e802
%if %{with python2}
32e802
BuildRequires:  python2-devel
32e802
BuildRequires:  python2-pytest
32e802
%endif # with python2
32e802
BuildRequires:  python%{python3_pkgversion}-devel
32e802
BuildRequires:  python%{python3_pkgversion}-pytest
32e802
32e802
%description
32e802
Launch a subprocess in a pseudo terminal (pty), and interact with both the
32e802
process and its pty.
32e802
32e802
%if %{with python2}
32e802
%package -n python2-ptyprocess
32e802
Summary:        Run a subprocess in a pseudo terminal
32e802
%{?python_provide:%python_provide python2-%{modname}}
32e802
%description -n python2-ptyprocess
32e802
Launch a subprocess in a pseudo terminal (pty), and interact with both the
32e802
process and its pty.
32e802
%endif # with python2
32e802
32e802
%package -n python%{python3_pkgversion}-ptyprocess
32e802
Summary:        Run a subprocess in a pseudo terminal
32e802
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
32e802
%description -n python%{python3_pkgversion}-ptyprocess
32e802
Launch a subprocess in a pseudo terminal (pty), and interact with both the
32e802
process and its pty.
32e802
32e802
%prep
32e802
%setup -qn ptyprocess-%{version}
32e802
32e802
%build
32e802
%if %{with python2}
32e802
%py2_build
32e802
%endif # with python2
32e802
LC_ALL=en_US.UTF-8 \
32e802
    %py3_build
32e802
32e802
%install
32e802
LC_ALL=en_US.UTF-8 \
32e802
    %py3_install
32e802
%if %{with python2}
32e802
%py2_install
32e802
%endif # with python2
32e802
32e802
%check
32e802
%{_bindir}/py.test-3.* -v
32e802
%if %{with python2}
32e802
%{_bindir}/py.test-2.* -v
32e802
%endif # with python2
32e802
32e802
%if %{with python2}
32e802
%files -n python2-ptyprocess
32e802
%license LICENSE
32e802
%doc README.rst
32e802
%{python2_sitelib}/ptyprocess/
32e802
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
32e802
%endif # with python2
32e802
32e802
%files -n python%{python3_pkgversion}-ptyprocess
32e802
%license LICENSE
32e802
%doc README.rst
32e802
%{python3_sitelib}/ptyprocess/
32e802
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
32e802
32e802
%changelog
32e802
* Fri Jun 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.5.2-4
32e802
- Conditionalize the python2 subpackage
32e802
32e802
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
32e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
32e802
32e802
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
32e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32e802
32e802
* Mon Jul 03 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.5.2-1
32e802
- Update to 0.5.2 (#1467330)
32e802
32e802
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-6
32e802
- Really build python3 on EPEL
32e802
32e802
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-5
32e802
- Build python3 on EPEL
32e802
- Run tests verbosely
32e802
32e802
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
32e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
32e802
32e802
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.5.1-3
32e802
- Rebuild for Python 3.6
32e802
32e802
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
32e802
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
32e802
32e802
* Mon Apr 04 2016 Thomas Spura <tomspur@fedoraproject.org> - 0.5.1-1
32e802
- update to 0.5.1 (#1304136)
32e802
32e802
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-3
32e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
32e802
32e802
* Wed Oct 14 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.5-3
32e802
- Use new python macros
32e802
32e802
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
32e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
32e802
32e802
* Thu May 21 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.5-1
32e802
- update to 0.5 (#1223718)
32e802
32e802
* Wed Jan 07 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.4-1
32e802
- update to 0.4
32e802
32e802
* Wed Dec 03 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.3.1-2
32e802
- Generalize with_python3 macro
32e802
- Add comment to tests section
32e802
32e802
* Tue Nov 25 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.3.1-1
32e802
- initial spec for ptyprocess (#1167830)