Change-Id: I3ed288c854360a9142f58d05a3ced0591d10804b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4684
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Kumar Kaushik <kaushikk@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,81 @@ |
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: The AWS SDK for Python |
|
5 |
+Name: python-boto3 |
|
6 |
+Version: 1.5.9 |
|
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/boto3 |
|
13 |
+Source0: https://github.com/boto/boto3/archive/boto3-%{version}.tar.gz |
|
14 |
+%define sha1 boto3=31713c7ba10901494321e2a11fe19fb86b0176d5 |
|
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 |
+Requires: python-botocore |
|
23 |
+Requires: python-jmespath |
|
24 |
+Requires: python-dateutil |
|
25 |
+BuildArch: noarch |
|
26 |
+ |
|
27 |
+%description |
|
28 |
+Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, |
|
29 |
+which allows Python developers to write software that makes use of services like |
|
30 |
+Amazon S3 and Amazon EC2 |
|
31 |
+ |
|
32 |
+%package -n python3-boto3 |
|
33 |
+Summary: python3-boto3 |
|
34 |
+BuildRequires: python3-devel |
|
35 |
+BuildRequires: python3-libs |
|
36 |
+BuildRequires: python3-setuptools |
|
37 |
+BuildRequires: python3-xml |
|
38 |
+Requires: python3 |
|
39 |
+Requires: python3-libs |
|
40 |
+Requires: python3-botocore |
|
41 |
+Requires: python3-jmespath |
|
42 |
+Requires: python3-dateutil |
|
43 |
+ |
|
44 |
+%description -n python3-boto3 |
|
45 |
+Python 3 version. |
|
46 |
+ |
|
47 |
+%prep |
|
48 |
+%setup -q -n boto3-%{version} |
|
49 |
+rm -rf ../p3dir |
|
50 |
+cp -a . ../p3dir |
|
51 |
+ |
|
52 |
+%build |
|
53 |
+python2 setup.py build |
|
54 |
+pushd ../p3dir |
|
55 |
+python3 setup.py build |
|
56 |
+popd |
|
57 |
+ |
|
58 |
+%install |
|
59 |
+pushd ../p3dir |
|
60 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
61 |
+popd |
|
62 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
63 |
+ |
|
64 |
+%check |
|
65 |
+python2 setup.py test |
|
66 |
+pushd ../p3dir |
|
67 |
+python3 setup.py test |
|
68 |
+popd |
|
69 |
+ |
|
70 |
+%files |
|
71 |
+%defattr(-,root,root) |
|
72 |
+%{python2_sitelib}/* |
|
73 |
+ |
|
74 |
+%files -n python3-boto3 |
|
75 |
+%defattr(-,root,root) |
|
76 |
+%{python3_sitelib}/* |
|
77 |
+ |
|
78 |
+%changelog |
|
79 |
+* Wed Jan 24 2018 Kumar Kaushik <kaushikk@vmware.com> 1.5.9-1 |
|
80 |
+- Initial packaging for photon. |