Change-Id: Ie988fbfc51c22c09b2b0614a9e5239dfe3ed5a0b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3865
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
... | ... |
@@ -1,6 +1,8 @@ |
1 |
+%define python2_ver %(python2 -c "import sys;print sys.version[0:3]") |
|
2 |
+ |
|
1 | 3 |
Name: python-subprocess32 |
2 | 4 |
Version: 3.2.7 |
3 |
-Release: 1%{?dist} |
|
5 |
+Release: 2%{?dist} |
|
4 | 6 |
Summary: A backport of the subprocess module from Python 3.2/3.3 for use on 2.x |
5 | 7 |
License: PSF |
6 | 8 |
Group: Development/Languages/Python |
... | ... |
@@ -14,6 +16,10 @@ BuildRequires: python2 |
14 | 14 |
BuildRequires: python2-libs |
15 | 15 |
BuildRequires: python-setuptools |
16 | 16 |
BuildRequires: python-pytest |
17 |
+%if %{with_check} |
|
18 |
+BuildRequires: python2-test |
|
19 |
+%endif |
|
20 |
+ |
|
17 | 21 |
Requires: python2 |
18 | 22 |
Requires: python2-libs |
19 | 23 |
Requires: python-setuptools |
... | ... |
@@ -31,12 +37,14 @@ python2 setup.py build |
31 | 31 |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
32 | 32 |
|
33 | 33 |
%check |
34 |
-python2 setup.py test |
|
34 |
+PYTHONPATH=build/lib.linux-%{_arch}-%{python2_ver}/ python2 test_subprocess32.py |
|
35 | 35 |
|
36 | 36 |
%files |
37 | 37 |
%defattr(-,root,root,-) |
38 | 38 |
%{python_sitelib}/* |
39 | 39 |
|
40 | 40 |
%changelog |
41 |
+* Mon Sep 25 2017 Rui Gu <ruig@vmware.com> 3.2.7-2 |
|
42 |
+- Fix make check failure. |
|
41 | 43 |
* Fri Aug 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 3.2.7-1 |
42 | 44 |
- Initial version of python-subprocess32 package for Photon. |