Change-Id: I5ea5b291f58fbd6e415ef8ea57e752c5d800a384
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3192
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
Summary: An implementation of the OAuth request-signing logic |
5 | 5 |
Name: python-oauthlib |
6 | 6 |
Version: 2.0.2 |
7 |
-Release: 2%{?dist} |
|
7 |
+Release: 3%{?dist} |
|
8 | 8 |
License: BSD |
9 | 9 |
Url: https://pypi.python.org/pypi/python-oauthlib/ |
10 | 10 |
Group: Development/Languages/Python |
... | ... |
@@ -15,6 +15,7 @@ Source0: https://pypi.python.org/packages/fa/2e/25f25e6c69d97cf921f0a8f7d |
15 | 15 |
|
16 | 16 |
BuildRequires: python2-devel |
17 | 17 |
BuildRequires: python-setuptools |
18 |
+BuildRequires: libffi-devel |
|
18 | 19 |
Requires: python2 |
19 | 20 |
Requires: python2-libs |
20 | 21 |
|
... | ... |
@@ -56,9 +57,13 @@ python3 setup.py install --root=%{buildroot} |
56 | 56 |
popd |
57 | 57 |
|
58 | 58 |
%check |
59 |
+easy_install_2=$(ls /usr/bin |grep easy_install |grep 2) |
|
60 |
+$easy_install_2 mock |
|
59 | 61 |
python2 setup.py test |
60 | 62 |
|
61 | 63 |
pushd ../p3dir |
64 |
+easy_install_3=$(ls /usr/bin |grep easy_install |grep 3) |
|
65 |
+$easy_install_3 mock |
|
62 | 66 |
python3 setup.py test |
63 | 67 |
popd |
64 | 68 |
|
... | ... |
@@ -70,6 +75,8 @@ popd |
70 | 70 |
%{python3_sitelib}/* |
71 | 71 |
|
72 | 72 |
%changelog |
73 |
+* Fri Jul 07 2017 Chang Lee <changlee@vmware.com> 2.0.2-3 |
|
74 |
+- Add libffi-devel in BuildRequires and install mock python module in %check |
|
73 | 75 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 2.0.2-2 |
74 | 76 |
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires. |
75 | 77 |
* Thu Apr 13 2017 Anish Swaminathan <anishs@vmware.com> 2.0.2-1 |