Compare commits

..

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

4 changed files with 73 additions and 56 deletions

6
.gitignore vendored
View File

@ -1 +1,5 @@
SOURCES/ptyprocess-0.5.2.tar.gz
/ptyprocess-0.4.tar.gz
/ptyprocess-0.5.tar.gz
/ptyprocess-0.5.1.tar.gz
/ptyprocess-0.5.2.tar.gz
/ptyprocess-0.6.0.tar.gz

View File

@ -1 +0,0 @@
30b860d5509191d657397c312f2351f9559c5f4e SOURCES/ptyprocess-0.5.2.tar.gz

View File

@ -1,89 +1,102 @@
%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: 14%{?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
%py3_build
%install
LC_ALL=en_US.UTF-8 \
%py3_install
%if %{with python2}
%py2_install
%endif # with python2
%py3_install
%if %{with tests}
%check
%{_bindir}/py.test-3.* -v
%if %{with python2}
%{_bindir}/py.test-2.* -v
%endif # with python2
%{__python3} -m pytest -v
%endif
%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
%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
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.0-14
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.0-13
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ptyprocess-0.6.0.tar.gz) = b34b6bca977f09d1443b210e338e1300e12d6ef35857f9543b3a116ef3b500ad4844357a7a283321756f886af41bddb1f02b27bf200ef1e82a96fd9e431bed86