Change-Id: Iec9bbd35238aa649bc32d2f3784ebc49ae0b616d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2872
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
(cherry picked from commit 952bf41456ecd3e03d8331615ded91d1b7a1e098)
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2886
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,70 @@ |
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 |
+Name: docker-py |
|
4 |
+Version: 2.3.0 |
|
5 |
+Release: 1%{?dist} |
|
6 |
+Summary: Python API for docker |
|
7 |
+License: ASL2.0 |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Url: https://github.com/docker/docker-py |
|
10 |
+Source0: %{name}-%{version}.tar.gz |
|
11 |
+%define sha1 docker-py=9029528629fd0c5ebe3132acfbcb078247a905ba |
|
12 |
+ |
|
13 |
+BuildRequires: python2 |
|
14 |
+BuildRequires: python2-libs |
|
15 |
+BuildRequires: python-ipaddress |
|
16 |
+BuildRequires: python-pip |
|
17 |
+BuildRequires: python-requests |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python-six |
|
20 |
+BuildRequires: python-xml |
|
21 |
+Requires: python2 |
|
22 |
+Requires: python2-libs |
|
23 |
+Requires: docker-pycreds |
|
24 |
+Requires: python-backports.ssl_match_hostname |
|
25 |
+Requires: python-ipaddress |
|
26 |
+Requires: python-requests |
|
27 |
+Requires: python-six |
|
28 |
+Requires: python-websocket-client |
|
29 |
+ |
|
30 |
+BuildArch: noarch |
|
31 |
+ |
|
32 |
+%description |
|
33 |
+Python API for docker |
|
34 |
+ |
|
35 |
+%package -n docker-py3 |
|
36 |
+Summary: Python3 API for docker |
|
37 |
+BuildRequires: python3-devel |
|
38 |
+ |
|
39 |
+%description -n docker-py3 |
|
40 |
+Python3 API for docker |
|
41 |
+ |
|
42 |
+%prep |
|
43 |
+%setup -n %{name}-%{version} |
|
44 |
+rm -rf ../p3dir |
|
45 |
+cp -a . ../p3dir |
|
46 |
+ |
|
47 |
+%build |
|
48 |
+python2 setup.py build |
|
49 |
+pushd ../p3dir |
|
50 |
+python3 setup.py build |
|
51 |
+popd |
|
52 |
+ |
|
53 |
+%install |
|
54 |
+pushd ../p3dir |
|
55 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
56 |
+popd |
|
57 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
58 |
+ |
|
59 |
+%files |
|
60 |
+%defattr(-,root,root,-) |
|
61 |
+%{python2_sitelib}/* |
|
62 |
+ |
|
63 |
+%files -n docker-py3 |
|
64 |
+%defattr(-,root,root,-) |
|
65 |
+%{python3_sitelib}/* |
|
66 |
+ |
|
67 |
+%changelog |
|
68 |
+* Sun Jun 04 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.3.0-1 |
|
69 |
+- Initial version of docker-py for PhotonOS. |
0 | 70 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,59 @@ |
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 |
+Name: docker-pycreds |
|
4 |
+Version: 0.2.1 |
|
5 |
+Release: 1%{?dist} |
|
6 |
+Summary: Python API for docker credentials store |
|
7 |
+License: ASL2.0 |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Url: https://pypi.python.org/packages/95/2e/3c99b8707a397153bc78870eb140c580628d7897276960da25d8a83c4719/%{name}-%{version}.tar.gz |
|
10 |
+Source0: %{name}-%{version}.tar.gz |
|
11 |
+%define sha1 docker-pycreds=02e65f3b4a75bd65cd4c312835961d3551967454 |
|
12 |
+ |
|
13 |
+BuildRequires: python2 |
|
14 |
+BuildRequires: python2-libs |
|
15 |
+BuildRequires: python-setuptools |
|
16 |
+Requires: python2 |
|
17 |
+Requires: python2-libs |
|
18 |
+ |
|
19 |
+BuildArch: noarch |
|
20 |
+ |
|
21 |
+%description |
|
22 |
+Python API for docker credentials store |
|
23 |
+ |
|
24 |
+%package -n docker-pycreds3 |
|
25 |
+Summary: Python3 API for docker credentials store |
|
26 |
+BuildRequires: python3-devel |
|
27 |
+ |
|
28 |
+%description -n docker-pycreds3 |
|
29 |
+Python3 API for docker credentials store |
|
30 |
+ |
|
31 |
+%prep |
|
32 |
+%setup -n %{name}-%{version} |
|
33 |
+rm -rf ../p3dir |
|
34 |
+cp -a . ../p3dir |
|
35 |
+ |
|
36 |
+%build |
|
37 |
+python2 setup.py build |
|
38 |
+pushd ../p3dir |
|
39 |
+python3 setup.py build |
|
40 |
+popd |
|
41 |
+ |
|
42 |
+%install |
|
43 |
+pushd ../p3dir |
|
44 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
45 |
+popd |
|
46 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
47 |
+ |
|
48 |
+%files |
|
49 |
+%defattr(-,root,root,-) |
|
50 |
+%{python2_sitelib}/* |
|
51 |
+ |
|
52 |
+%files -n docker-pycreds3 |
|
53 |
+%defattr(-,root,root,-) |
|
54 |
+%{python3_sitelib}/* |
|
55 |
+ |
|
56 |
+%changelog |
|
57 |
+* Sun Jun 04 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.2.1-1 |
|
58 |
+- Initial version of docker-pycreds for PhotonOS. |
0 | 59 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,39 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+ |
|
2 |
+Name: python-backports.ssl_match_hostname |
|
3 |
+Version: 3.5.0.1 |
|
4 |
+Release: 1%{?dist} |
|
5 |
+Summary: Backported python ssl_match_hostname |
|
6 |
+License: PSFL |
|
7 |
+Group: Development/Languages/Python |
|
8 |
+Url: https://pypi.python.org/pypi/backports.ssl_match_hostname/%{version} |
|
9 |
+Source0: https://pypi.python.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-%{version}.tar.gz |
|
10 |
+%define sha1 backports.ssl_match_hostname=0567c136707a5f53b95aa793b79cc8d5c61d8e22 |
|
11 |
+ |
|
12 |
+BuildRequires: python2 |
|
13 |
+BuildRequires: python2-libs |
|
14 |
+BuildRequires: python-setuptools |
|
15 |
+Requires: python2 |
|
16 |
+Requires: python2-libs |
|
17 |
+ |
|
18 |
+BuildArch: noarch |
|
19 |
+ |
|
20 |
+%description |
|
21 |
+Backported python ssl_match_hostname feature |
|
22 |
+ |
|
23 |
+%prep |
|
24 |
+%setup -n backports.ssl_match_hostname-%{version} |
|
25 |
+ |
|
26 |
+%build |
|
27 |
+python2 setup.py build |
|
28 |
+ |
|
29 |
+%install |
|
30 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
31 |
+ |
|
32 |
+%files |
|
33 |
+%defattr(-,root,root,-) |
|
34 |
+%{python2_sitelib}/* |
|
35 |
+ |
|
36 |
+%changelog |
|
37 |
+* Sun Jun 04 2017 Vinay Kulkarni <kulkarniv@vmware.com> 3.5.0.1-1 |
|
38 |
+- Initial version of python backports.ssl_match_hostname for PhotonOS. |
0 | 39 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,60 @@ |
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 |
+Name: python-websocket-client |
|
4 |
+Version: 0.7.0 |
|
5 |
+Release: 1%{?dist} |
|
6 |
+Summary: WebSocket client for python |
|
7 |
+License: LGPL |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Url: https://pypi.python.org/packages/8f/2d/8eb061e94e29c0b35e1fd87f1c0e779f4288d7393b180ef0e5c0ee2b155e/websocket-client-%{version}.tar.gz |
|
10 |
+Source0: websocket-client-%{version}.tar.gz |
|
11 |
+%define sha1 websocket-client=cb36dc1c9b0dda4d4672f0d2c812e65343f509b8 |
|
12 |
+ |
|
13 |
+BuildRequires: python2 |
|
14 |
+BuildRequires: python2-libs |
|
15 |
+BuildRequires: python-setuptools |
|
16 |
+Requires: python2 |
|
17 |
+Requires: python2-libs |
|
18 |
+ |
|
19 |
+BuildArch: noarch |
|
20 |
+ |
|
21 |
+%description |
|
22 |
+WebSocket client for python |
|
23 |
+ |
|
24 |
+%package -n python3-websocket-client |
|
25 |
+Summary: WebSocket client for python3 |
|
26 |
+BuildRequires: python3-devel |
|
27 |
+ |
|
28 |
+%description -n python3-websocket-client |
|
29 |
+WebSocket client for python3 |
|
30 |
+ |
|
31 |
+%prep |
|
32 |
+%setup -n websocket-client-%{version} |
|
33 |
+rm -rf ../p3dir |
|
34 |
+cp -a . ../p3dir |
|
35 |
+ |
|
36 |
+%build |
|
37 |
+python2 setup.py build |
|
38 |
+pushd ../p3dir |
|
39 |
+python3 setup.py build |
|
40 |
+popd |
|
41 |
+ |
|
42 |
+%install |
|
43 |
+pushd ../p3dir |
|
44 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
45 |
+popd |
|
46 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
47 |
+ |
|
48 |
+%files |
|
49 |
+%defattr(-,root,root,-) |
|
50 |
+%{python2_sitelib}/* |
|
51 |
+/usr/bin/wsdump.py |
|
52 |
+ |
|
53 |
+%files -n python3-websocket-client |
|
54 |
+%defattr(-,root,root,-) |
|
55 |
+%{python3_sitelib}/* |
|
56 |
+ |
|
57 |
+%changelog |
|
58 |
+* Sun Jun 04 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.7.0-1 |
|
59 |
+- Initial version of python WebSocket for PhotonOS. |