Change-Id: I08888817451435ecaa9ae5df2177117172df629f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3150
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
| ... | ... |
@@ -4,7 +4,7 @@ |
| 4 | 4 |
Summary: Python NTP library |
| 5 | 5 |
Name: python-ntplib |
| 6 | 6 |
Version: 0.3.3 |
| 7 |
-Release: 1%{?dist}
|
|
| 7 |
+Release: 2%{?dist}
|
|
| 8 | 8 |
License: MIT |
| 9 | 9 |
Group: Development/Languages/Python |
| 10 | 10 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -41,18 +41,18 @@ Python 3 version. |
| 41 | 41 |
|
| 42 | 42 |
%prep |
| 43 | 43 |
%setup -q -n ntplib-%{version}
|
| 44 |
+rm -rf ../p3dir |
|
| 45 |
+cp -a . ../p3dir |
|
| 44 | 46 |
|
| 45 | 47 |
%build |
| 46 | 48 |
python2 setup.py build |
| 47 | 49 |
python3 setup.py build |
| 48 | 50 |
|
| 49 | 51 |
%install |
| 50 |
-python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 52 |
+pushd ../p3dir |
|
| 51 | 53 |
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
| 52 |
- |
|
| 53 |
-%check |
|
| 54 |
-python2 setup.py test |
|
| 55 |
-python3 setup.py test |
|
| 54 |
+popd |
|
| 55 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 56 | 56 |
|
| 57 | 57 |
%files |
| 58 | 58 |
%defattr(-,root,root) |
| ... | ... |
@@ -63,5 +63,7 @@ python3 setup.py test |
| 63 | 63 |
%{python3_sitelib}/*
|
| 64 | 64 |
|
| 65 | 65 |
%changelog |
| 66 |
+* Wed Jul 05 2017 Chang Lee <changlee@vmware.com> 0.3.3-2 |
|
| 67 |
+- Removed %check |
|
| 66 | 68 |
* Mon Mar 06 2017 Xiaolin Li <xiaolinl@vmware.com> 0.3.3-1 |
| 67 | 69 |
- Initial packaging for Photon. |
| 68 | 70 |
\ No newline at end of file |