From a2c815aa42c25e207e4d607ec038de3eed74cd87 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 13:42:14 -0400 Subject: [PATCH] Auto sync2gitlab import of python-ptyprocess-0.5.2-4.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python-ptyprocess.spec | 136 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python-ptyprocess.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6a08e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ptyprocess-0.5.2.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python-ptyprocess.spec b/python-ptyprocess.spec new file mode 100644 index 0000000..a3c938d --- /dev/null +++ b/python-ptyprocess.spec @@ -0,0 +1,136 @@ +%global modname ptyprocess + +%if 0%{?rhel} > 7 +# Disable python2 build by default +%bcond_with python2 +%else +%bcond_without python2 +%endif + +Name: python-ptyprocess +Version: 0.5.2 +Release: 4%{?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 + +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 +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 + +%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 +Launch a subprocess in a pseudo terminal (pty), and interact with both the +process and its pty. + +%prep +%setup -qn 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 + +%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 + +%files -n python%{python3_pkgversion}-ptyprocess +%license LICENSE +%doc README.rst +%{python3_sitelib}/ptyprocess/ +%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info + +%changelog +* Fri Jun 22 2018 Charalampos Stratakis - 0.5.2-4 +- Conditionalize the python2 subpackage + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 03 2017 Charalampos Stratakis - 0.5.2-1 +- Update to 0.5.2 (#1467330) + +* Thu Feb 23 2017 Orion Poplawski - 0.5.1-6 +- Really build python3 on EPEL + +* Thu Feb 23 2017 Orion Poplawski - 0.5.1-5 +- Build python3 on EPEL +- Run tests verbosely + +* Sat Feb 11 2017 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Stratakis Charalampos - 0.5.1-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.5.1-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Mon Apr 04 2016 Thomas Spura - 0.5.1-1 +- update to 0.5.1 (#1304136) + +* 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) diff --git a/sources b/sources new file mode 100644 index 0000000..ad10f70 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ptyprocess-0.5.2.tar.gz) = cb4e70855d388a6ff691e2a244c072a5a50cf39cdf727e3a4218817bf5ac722c4b49f0dbfd80204259998eba137492690759b8908bfea925842b9f7fc83ee553