Change-Id: Ibff8998258b9c11224ee944121d3edf4a2789764
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4676
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Kumar Kaushik <kaushikk@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,73 @@ |
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 |
+%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 |
+ |
|
4 |
+Summary: Amazon Web Services Library. |
|
5 |
+Name: python-botocore |
|
6 |
+Version: 1.8.15 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: Apache 2.0 |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Url: https://github.com/boto/botocore |
|
13 |
+Source0: https://github.com/boto/botocore/archive/botocore-%{version}.tar.gz |
|
14 |
+%define sha1 botocore=6ecad01c8235e53d22da5e2da65704cede758550 |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python2-devel |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python-xml |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+BuildArch: noarch |
|
23 |
+ |
|
24 |
+%description |
|
25 |
+A low-level interface to a growing number of Amazon Web Services. The botocore package is the foundation for the AWS CLI as well as boto3. |
|
26 |
+ |
|
27 |
+%package -n python3-botocore |
|
28 |
+Summary: python3-botocore |
|
29 |
+BuildRequires: python3-devel |
|
30 |
+BuildRequires: python3-libs |
|
31 |
+BuildRequires: python3-setuptools |
|
32 |
+BuildRequires: python3-xml |
|
33 |
+Requires: python3 |
|
34 |
+Requires: python3-libs |
|
35 |
+ |
|
36 |
+%description -n python3-botocore |
|
37 |
+Python 3 version. |
|
38 |
+ |
|
39 |
+%prep |
|
40 |
+%setup -q -n botocore-%{version} |
|
41 |
+rm -rf ../p3dir |
|
42 |
+cp -a . ../p3dir |
|
43 |
+ |
|
44 |
+%build |
|
45 |
+python2 setup.py build |
|
46 |
+pushd ../p3dir |
|
47 |
+python3 setup.py build |
|
48 |
+popd |
|
49 |
+ |
|
50 |
+%install |
|
51 |
+pushd ../p3dir |
|
52 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
53 |
+popd |
|
54 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
55 |
+ |
|
56 |
+%check |
|
57 |
+python2 setup.py test |
|
58 |
+pushd ../p3dir |
|
59 |
+python3 setup.py test |
|
60 |
+popd |
|
61 |
+ |
|
62 |
+%files |
|
63 |
+%defattr(-,root,root) |
|
64 |
+%{python2_sitelib}/* |
|
65 |
+ |
|
66 |
+%files -n python3-botocore |
|
67 |
+%defattr(-,root,root) |
|
68 |
+%{python3_sitelib}/* |
|
69 |
+ |
|
70 |
+%changelog |
|
71 |
+* Sun Jan 07 2018 Kumar Kaushik <kaushikk@vmware.com> 1.8.15-1 |
|
72 |
+- Initial packaging for photon. |
0 | 73 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,77 @@ |
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 |
+%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 |
+ |
|
4 |
+Summary: Extensions to the standard Python datetime module |
|
5 |
+Name: python-dateutil |
|
6 |
+Version: 2.6.1 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: Simplified BSD |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Url: https://pypi.python.org/pypi/python-dateutil |
|
13 |
+Source0: https://pypi.python.org/packages/54/bb/f1db86504f7a49e1d9b9301531181b00a1c7325dc85a29160ee3eaa73a54/python-dateutil-%{version}.tar.gz |
|
14 |
+%define sha1 python-dateutil=db2ace298dee7e47fd720ed03eb790885347bf4e |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python2-devel |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python-six |
|
20 |
+BuildRequires: python-xml |
|
21 |
+Requires: python2 |
|
22 |
+Requires: python2-libs |
|
23 |
+Requires: python-six |
|
24 |
+BuildArch: noarch |
|
25 |
+ |
|
26 |
+%description |
|
27 |
+The dateutil module provides powerful extensions to the datetime module available in the Python standard library. |
|
28 |
+ |
|
29 |
+%package -n python3-dateutil |
|
30 |
+Summary: python3-dateutil |
|
31 |
+BuildRequires: python3-devel |
|
32 |
+BuildRequires: python3-libs |
|
33 |
+BuildRequires: python3-setuptools |
|
34 |
+BuildRequires: python3-xml |
|
35 |
+Requires: python3 |
|
36 |
+Requires: python3-libs |
|
37 |
+Requires: python3-six |
|
38 |
+ |
|
39 |
+%description -n python3-dateutil |
|
40 |
+Python 3 version. |
|
41 |
+ |
|
42 |
+%prep |
|
43 |
+%setup -q -n python-dateutil-%{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 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
55 |
+pushd ../p3dir |
|
56 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
57 |
+popd |
|
58 |
+ |
|
59 |
+%check |
|
60 |
+python2 setup.py test |
|
61 |
+pushd ../p3dir |
|
62 |
+python3 setup.py test |
|
63 |
+popd |
|
64 |
+ |
|
65 |
+%files |
|
66 |
+%defattr(-,root,root) |
|
67 |
+%{python2_sitelib}/* |
|
68 |
+ |
|
69 |
+%files -n python3-dateutil |
|
70 |
+%defattr(-,root,root) |
|
71 |
+%{python3_sitelib}/* |
|
72 |
+ |
|
73 |
+%changelog |
|
74 |
+* Sun Jan 07 2018 Kumar Kaushik <kaushikk@vmware.com> 2.6.1-1 |
|
75 |
+- Initial packaging for photon. |
|
76 |
+ |
0 | 77 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,78 @@ |
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 |
+%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 |
+ |
|
4 |
+Summary: Query Language for JSON |
|
5 |
+Name: python-jmespath |
|
6 |
+Version: 0.9.3 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: MIT |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Url: https://pypi.python.org/pypi/jmespath |
|
13 |
+Source0: https://pypi.python.org/packages/e5/21/795b7549397735e911b032f255cff5fb0de58f96da794274660bca4f58ef/jmespath-%{version}.tar.gz |
|
14 |
+%define sha1 jmespath=eca7ba2e8d4fc50239973b59e07f9f527e0c0839 |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python2-devel |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python-xml |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+BuildArch: noarch |
|
23 |
+ |
|
24 |
+%description |
|
25 |
+JMESPath (pronounced “james path”) allows you to declaratively specify how to extract elements from a JSON document. |
|
26 |
+ |
|
27 |
+%package -n python3-jmespath |
|
28 |
+Summary: python-jmespath |
|
29 |
+BuildRequires: python3-devel |
|
30 |
+BuildRequires: python3-libs |
|
31 |
+BuildRequires: python3-setuptools |
|
32 |
+BuildRequires: python3-xml |
|
33 |
+Requires: python3 |
|
34 |
+Requires: python3-libs |
|
35 |
+ |
|
36 |
+%description -n python3-jmespath |
|
37 |
+Python 3 version. |
|
38 |
+ |
|
39 |
+%prep |
|
40 |
+%setup -q -n jmespath-%{version} |
|
41 |
+rm -rf ../p3dir |
|
42 |
+cp -a . ../p3dir |
|
43 |
+ |
|
44 |
+%build |
|
45 |
+python2 setup.py build |
|
46 |
+pushd ../p3dir |
|
47 |
+python3 setup.py build |
|
48 |
+popd |
|
49 |
+ |
|
50 |
+%install |
|
51 |
+pushd ../p3dir |
|
52 |
+python3 setup.py install --single-version-externally-managed -O1 --root=%{buildroot} |
|
53 |
+for item in %{buildroot}/%{_bindir}/* |
|
54 |
+ do mv ${item} "${item}-%{python3_version}" ; |
|
55 |
+done |
|
56 |
+popd |
|
57 |
+python2 setup.py install --single-version-externally-managed -O1 --root=%{buildroot} |
|
58 |
+ |
|
59 |
+%check |
|
60 |
+python2 setup.py test |
|
61 |
+pushd ../p3dir |
|
62 |
+python3 setup.py test |
|
63 |
+popd |
|
64 |
+ |
|
65 |
+%files |
|
66 |
+%defattr(-,root,root) |
|
67 |
+%{python2_sitelib}/* |
|
68 |
+%{_bindir}/jp.py |
|
69 |
+ |
|
70 |
+%files -n python3-jmespath |
|
71 |
+%defattr(-,root,root) |
|
72 |
+%{python3_sitelib}/* |
|
73 |
+%{_bindir}/jp.py-%{python3_version} |
|
74 |
+ |
|
75 |
+%changelog |
|
76 |
+* Sun Jan 07 2018 Kumar Kaushik <kaushikk@vmware.com> 0.9.3-1 |
|
77 |
+- Initial packaging for photon. |