Change-Id: Ib5087e3fffa1d10376457f4f63caa1d654317adf
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3034
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
Summary: Docutils -- Python Documentation Utilities. |
5 | 5 |
Name: python-docutils |
6 | 6 |
Version: 0.13.1 |
7 |
-Release: 2%{?dist} |
|
7 |
+Release: 3%{?dist} |
|
8 | 8 |
License: public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt) |
9 | 9 |
Group: Development/Languages/Python |
10 | 10 |
Vendor: VMware, Inc. |
... | ... |
@@ -17,6 +17,7 @@ BuildRequires: python2 |
17 | 17 |
BuildRequires: python2-libs |
18 | 18 |
BuildRequires: python2-devel |
19 | 19 |
BuildRequires: python-setuptools |
20 |
+BuildRequires: python-xml |
|
20 | 21 |
|
21 | 22 |
Requires: python2 |
22 | 23 |
Requires: python2-libs |
... | ... |
@@ -30,6 +31,7 @@ Docutils is a modular system for processing documentation into useful formats, s |
30 | 30 |
Summary: python-docutils |
31 | 31 |
BuildRequires: python3-devel |
32 | 32 |
BuildRequires: python3-libs |
33 |
+BuildRequires: python3-xml |
|
33 | 34 |
|
34 | 35 |
Requires: python3 |
35 | 36 |
Requires: python3-libs |
... | ... |
@@ -66,9 +68,13 @@ popd |
66 | 66 |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
67 | 67 |
|
68 | 68 |
%check |
69 |
-python2 setup.py test |
|
69 |
+PATH=%{buildroot}%{_bindir}:${PATH} \ |
|
70 |
+ PYTHONPATH=%{buildroot}%{python2_sitelib} |
|
71 |
+python2 test/alltests.py |
|
70 | 72 |
pushd ../p3dir |
71 |
-python3 setup.py test |
|
73 |
+PATH=%{buildroot}%{_bindir}:${PATH} \ |
|
74 |
+ PYTHONPATH=%{buildroot}%{python3_sitelib} |
|
75 |
+python3 test3/alltests.py |
|
72 | 76 |
popd |
73 | 77 |
|
74 | 78 |
%files |
... | ... |
@@ -102,6 +108,8 @@ popd |
102 | 102 |
%{_bindir}/rst2html3.py |
103 | 103 |
|
104 | 104 |
%changelog |
105 |
+* Thu Jun 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.13.1-3 |
|
106 |
+- Add BuildRequires python-xml and python3-xml for the tests to pass |
|
105 | 107 |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.13.1-2 |
106 | 108 |
- Create separate packages for python2 and python3 in the bin directory |
107 | 109 |
* Mon Mar 20 2017 Xiaolin Li <xiaolinl@vmware.com> 0.13.1-1 |