|
|
|
@ -1,89 +1,95 @@
|
|
|
|
|
%global modname ptyprocess
|
|
|
|
|
%global srcname ptyprocess
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
|
# Disable python2 build by default
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%endif
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: python-ptyprocess
|
|
|
|
|
Version: 0.5.2
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.6.0
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Summary: Run a subprocess in a pseudo terminal
|
|
|
|
|
|
|
|
|
|
License: ISC
|
|
|
|
|
URL: https://github.com/pexpect/ptyprocess
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
|
|
|
|
Source: %{pypi_source}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-pytest
|
|
|
|
|
%endif # with python2
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
|
|
|
|
process and its pty.
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%package -n python2-ptyprocess
|
|
|
|
|
%package -n python3-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.
|
|
|
|
|
%endif # with python2
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-ptyprocess
|
|
|
|
|
Summary: Run a subprocess in a pseudo terminal
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
|
|
%description -n python%{python3_pkgversion}-ptyprocess
|
|
|
|
|
%description -n python3-ptyprocess
|
|
|
|
|
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
|
|
|
|
process and its pty.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -qn ptyprocess-%{version}
|
|
|
|
|
%autosetup -n ptyprocess-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_build
|
|
|
|
|
%endif # with python2
|
|
|
|
|
LC_ALL=en_US.UTF-8 \
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
LC_ALL=en_US.UTF-8 \
|
|
|
|
|
%py3_install
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_install
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
%{_bindir}/py.test-3.* -v
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%{_bindir}/py.test-2.* -v
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%files -n python2-ptyprocess
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python2_sitelib}/ptyprocess/
|
|
|
|
|
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
|
|
|
|
%endif # with python2
|
|
|
|
|
%{__python3} -m pytest -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-ptyprocess
|
|
|
|
|
%files -n python3-ptyprocess
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/ptyprocess/
|
|
|
|
|
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
|
|
|
|
%{python3_sitelib}/ptyprocess-*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jun 22 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.5.2-4
|
|
|
|
|
- Conditionalize the python2 subpackage
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-10
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 01 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-8
|
|
|
|
|
- Subpackage python2-ptyprocess has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-7
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Mon Jul 29 07:16:43 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-6
|
|
|
|
|
- Fix FTBFS
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.0-3
|
|
|
|
|
- Drop explicit locale setting
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2018 Orion Poplawski <orion@nwra.com> - 0.6.0-1
|
|
|
|
|
- Update to 0.6.0
|
|
|
|
|
|
|
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-4
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|