Change-Id: I497af18165767501951e4426ddada336dfc6ec54
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3804
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -4,7 +4,7 @@ |
| 4 | 4 |
Summary: Pexpect is a Pure Python Expect-like module |
| 5 | 5 |
Name: python-pexpect |
| 6 | 6 |
Version: 4.2.1 |
| 7 |
-Release: 1%{?dist}
|
|
| 7 |
+Release: 2%{?dist}
|
|
| 8 | 8 |
License: ISC |
| 9 | 9 |
Url: https://github.com/pexpect/pexpect |
| 10 | 10 |
Group: Development/Languages/Python |
| ... | ... |
@@ -17,6 +17,7 @@ BuildRequires: python2-devel |
| 17 | 17 |
BuildRequires: python-setuptools |
| 18 | 18 |
Requires: python2 |
| 19 | 19 |
Requires: python2-libs |
| 20 |
+Requires: python-ptyprocess |
|
| 20 | 21 |
|
| 21 | 22 |
BuildArch: noarch |
| 22 | 23 |
|
| ... | ... |
@@ -31,6 +32,7 @@ Summary: Python3 package for pexpect |
| 31 | 31 |
BuildRequires: python3-devel |
| 32 | 32 |
Requires: python3 |
| 33 | 33 |
Requires: python3-libs |
| 34 |
+Requires: python3-ptyprocess |
|
| 34 | 35 |
|
| 35 | 36 |
%description -n python3-pexpect |
| 36 | 37 |
Python 3 version of pexpect |
| ... | ... |
@@ -64,6 +66,8 @@ popd |
| 64 | 64 |
%{python3_sitelib}/*
|
| 65 | 65 |
|
| 66 | 66 |
%changelog |
| 67 |
+* Tue Sep 19 2017 Kumar Kaushik <kaushikk@vmware.com> 4.2.1-2 |
|
| 68 |
+- Adding requires on ptyprocess |
|
| 67 | 69 |
* Mon Sep 11 2017 Kumar Kaushik <kaushikk@vmware.com> 4.2.1-1 |
| 68 | 70 |
- Initial packaging for Photon |
| 69 | 71 |
|
| 70 | 72 |
new file mode 100755 |
| ... | ... |
@@ -0,0 +1,67 @@ |
| 0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
| 1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
| 2 |
+ |
|
| 3 |
+Summary: Run a subprocess in a pseudo terminal. |
|
| 4 |
+Name: python-ptyprocess |
|
| 5 |
+Version: 0.5.2 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 |
+License: ISC |
|
| 8 |
+Url: https://github.com/pexpect/ptyprocess |
|
| 9 |
+Group: Development/Languages/Python |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
|
| 13 |
+%define sha1 ptyprocess=30b860d5509191d657397c312f2351f9559c5f4e |
|
| 14 |
+ |
|
| 15 |
+BuildRequires: python2-devel |
|
| 16 |
+BuildRequires: python-setuptools |
|
| 17 |
+Requires: python2 |
|
| 18 |
+Requires: python2-libs |
|
| 19 |
+ |
|
| 20 |
+BuildArch: noarch |
|
| 21 |
+ |
|
| 22 |
+%description |
|
| 23 |
+Launch a subprocess in a pseudo terminal (pty), and interact with both the |
|
| 24 |
+process and its pty. |
|
| 25 |
+ |
|
| 26 |
+%package -n python3-ptyprocess |
|
| 27 |
+Summary: Python3 package for ptyprocess |
|
| 28 |
+BuildRequires: python3-devel |
|
| 29 |
+Requires: python3 |
|
| 30 |
+Requires: python3-libs |
|
| 31 |
+ |
|
| 32 |
+%description -n python3-ptyprocess |
|
| 33 |
+Python 3 version of ptyprocess |
|
| 34 |
+ |
|
| 35 |
+%prep |
|
| 36 |
+%setup -q -n ptyprocess-%{version}
|
|
| 37 |
+rm -rf ../p3dir |
|
| 38 |
+cp -a . ../p3dir |
|
| 39 |
+ |
|
| 40 |
+%build |
|
| 41 |
+python2 setup.py build |
|
| 42 |
+ |
|
| 43 |
+pushd ../p3dir |
|
| 44 |
+python3 setup.py build |
|
| 45 |
+popd |
|
| 46 |
+ |
|
| 47 |
+ |
|
| 48 |
+%install |
|
| 49 |
+rm -rf %{buildroot}
|
|
| 50 |
+python2 setup.py install --root=%{buildroot}
|
|
| 51 |
+ |
|
| 52 |
+pushd ../p3dir |
|
| 53 |
+python3 setup.py install --root=%{buildroot}
|
|
| 54 |
+popd |
|
| 55 |
+ |
|
| 56 |
+%files |
|
| 57 |
+%defattr(-, root, root, -) |
|
| 58 |
+%{python2_sitelib}/*
|
|
| 59 |
+ |
|
| 60 |
+%files -n python3-ptyprocess |
|
| 61 |
+%{python3_sitelib}/*
|
|
| 62 |
+ |
|
| 63 |
+%changelog |
|
| 64 |
+* Tue Sep 19 2017 Kumar Kaushik <kaushikk@vmware.com> 0.5.2-1 |
|
| 65 |
+- Initial packaging for Photon |
|
| 66 |
+ |