forked from C2Devel/boto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-boto.spec
285 lines (219 loc) · 9.33 KB
/
python-boto.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
%global dist_raw %(%{__grep} -oP "release \\K[0-9]+\\.[0-9]+" /etc/system-release | tr -d ".")
%if 0%{?fedora} > 12 || 0%{?rhel} && 0%{?dist_raw} >= 75
%bcond_without python3
%else
%bcond_with python3
%endif
# centos 7.2 and lower versions don't have %py2_* macros, so define it manually
%if 0%{?rhel} && 0%{?dist_raw} <= 72
%{!?py2_build: %global py2_build %py_build}
%{!?py2_install: %global py2_install %py_install}
%endif
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
%if %{with python3}
%{!?__python3: %global __python3 /usr/bin/python3}
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif # with python3
# Unit tests don't work on python 2.6
%if 0%{?el6}
%bcond_with unittests
%else
%bcond_without unittests
%endif
%define pkgname boto
%define buildid @BUILDID@
%global sum AWS authentication for Amazon S3 for the python requests module
%global descr \
Boto is a Python package that provides interfaces to Amazon Web Services.\
It supports over thirty services, such as S3 (Simple Storage Service),\
SQS (Simple Queue Service), and EC2 (Elastic Compute Cloud) via their\
REST and Query APIs. The goal of boto is to support the full breadth\
and depth of Amazon Web Services. In addition, boto provides support\
for other public services such as Google Storage in addition to private\
cloud systems like Eucalyptus, OpenStack and Open Nebula.
Summary: A simple, lightweight interface to Amazon Web Services
Name: python-%{pkgname}
Version: 2.46.1
Release: CROC32%{?buildid}%{?dist}
License: MIT
Group: Development/Languages
URL: https://github.com/c2devel/boto
Source0: https://pypi.io/packages/source/b/boto/boto-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python-setuptools
%if %{with python3}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%endif # with python3
%if %{with unittests}
BuildRequires: python-httpretty
BuildRequires: python-mock
BuildRequires: python-nose
BuildRequires: python-requests
%if %{with python3}
BuildRequires: python36-httpretty
BuildRequires: python36-mock
BuildRequires: python36-nose
BuildRequires: python36-requests
%endif # with python3
%endif # with unittests
BuildArch: noarch
%description
%{descr}
%package -n python2-%{pkgname}
Summary: %{sum}
Requires: python-requests
%if 0%{?el6}
Requires: python-ordereddict
%endif
Provides: python-boto
Obsoletes: python-boto <= 1441065600:2.46.1-CROC14%{?dist}
%description -n python2-%{pkgname}
%{descr}
%if %{with python3}
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: A simple, lightweight interface to Amazon Web Services
Requires: python%{python3_pkgversion}-requests
%description -n python%{python3_pkgversion}-%{pkgname}
%{descr}
%endif # with python3
%prep
%setup -q -n %pkgname-%version
%build
%{py2_build}
%if %{with python3}
%{py3_build}
%endif # with python3
%install
%{py2_install}
%if %{with python3}
%{py3_install}
%endif # with python3
rm -f %buildroot/%{_bindir}/*
%check
%if %{with unittests}
%{__python2} tests/test.py default
%if %{with python3}
%{__python3} tests/test.py default
%endif # with python3
%endif # with unittests
%files -n python2-%{pkgname}
%defattr(-,root,root,-)
%{python2_sitelib}/boto
%{python2_sitelib}/boto-%{version}-*.egg-info
%doc LICENSE README.rst
%if %{with python3}
%files -n python%{python3_pkgversion}-%{pkgname}
%defattr(-,root,root,-)
%{python3_sitelib}/boto
%{python3_sitelib}/boto-%{version}-*.egg-info
%doc LICENSE README.rst
%endif # with python3
%changelog
* Mon Dec 14 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC32
- vpc: add tags param in create_customer_gateway and create_vpn_connection
* Tue Dec 1 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC31
- ec2: rename virtualization types
* Fri Nov 6 2020 Alexandr Chernev <achernev@croc.ru> - 2.46.1-CROC30
- ec2: allow multiple interfaces along with eip assoc
- tests: remove obsolete part of test_cant_use_public_ip
- tests: add case for multi-eni spec with eip assoc on primary
* Thu Oct 22 2020 Evgeny Kovalev <evgkovalev@croc.ru> - 2.46.1-CROC29
- ec2: remove description from modify_volume_attribute
- ec2: remove description from run_instances
* Tue Sep 29 2020 Aleksandr Rudenko <arudenko@croc.ru> - 2.46.1-CROC28
- spec: change requirements for centos 7.8 build
* Tue Sep 15 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC27
- ec2: add private_ip_addresses to create_network_interface
* Tue Sep 08 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC26
- utils, ec2: move tagging on creation for common usage
- vpc: add tagging on creation for subnets
- vpc: add tagging on creation for acls
- vpc: add tagging on creation for dopts
- ec2: add tagging on creation for network interfaces
- ec2: add tagging on creation for placement groups
- vpc: add tagging on creation for route tables
- ec2: add tagging on creation for security groups
- vpc: add tagging on creation for vpc
* Wed Aug 05 2020 Evgeny Kovalev <evgkovalev@croc.ru> - 2.46.1-CROC25
- tariff: add deprecation status to instance type, volume type, other
* Mon Jul 13 2020 Alexandr Chernev <achernev@croc.ru> - 2.46.1-CROC24
- connection,utils: convert max_retry_delay to float before comparison
* Tue Jun 30 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC23
- vpc: support vpnc_create options specification
* Mon Jun 15 2020 Evgeny Kovalev <evgkovalev@croc.ru> - 2.46.1-CROC22
- ec2: add new method 'CreateDefaultSubnet'
* Mon Jun 08 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC21
- ec2: allow tagging keypair on creation and import
* Mon May 18 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC20
- ec2: add filters for get_all_public_ipv4_pools
- ec2: add id and tags to keypairs
- ec2: add tags and id to placement groups
* Wed Apr 01 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC19
- EC2Connection: add tags to create_volume
- EC2Connection: add tags to create_snapshot
- EC2Connection: add tags to run_instances
* Mon Feb 03 2020 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC18
- ec2 module: modify 'get_all_extnetworks' method
* Tue Dec 24 2019 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC17
- ec2: add ability to modify security group's attribute.
- ec2: add address pool entities
- ec2: add address pool methods
- ec2: add allocate_address() address pool support
- ec2 tests: add tests for address pool methods
- ec2: add public_ipv4_pool field handling
* Mon Nov 11 2019 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC16
- [cloudtrail] add aws_sudo_id support
* Wed Aug 07 2019 Vladislav Odinstov <odivlad@gmail.com> - 2.46.1-CROC15
- spec: add support for py2/py3 epel build
* Fri Jul 26 2019 Andrey Kulaev <akulaev@croc.ru> - 2.46.1-CROC14
- ec2: methods for changing sg.rule description
- ec2: add 'description' for GroupOrCIDR
* Thu Jun 06 2019 Pavel Kulyov <pkulev@croc.ru> - 2.46.1-CROC13
- ec2: add parser for Network Interface Association
- ec2: add missing Reset/Describe NI methods
- ec2: drop PrivateIps support
- ec2: add private DNS name parsing to NetworkInterface
- ec2: add switch_id to NetworkInterface
* Wed May 22 2019 Nikita Kretov <kretov995@gmail.com> - - 2.46.1-CROC12
- ec2: add get_tariff method
- travis: pin ubuntu dist
- travis: fix auto-build
* Fri Apr 05 2019 Kretov Nikita <kretov995@gmail.com> - - 2.46.1-CROC11
- cw: add new parameters for MetricAlarms
- ec2: Allow Tags deletion by resource ID only
* Thu Feb 28 2019 Nikita Kretov <kretov995@gmail.com> - 2.46.1-CROC10
- ec2: Add 'modify-instance-placemenet' method
* Thu Jan 10 2019 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC9
- requirements: pin idna version
- ec2: add to VirtualSwitch an optional parameter 'AvailabilityZone'
* Fri Oct 05 2018 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC8
- requirements: pin pycparser version
- ec2: update PrivateIp according NAPI
- ec2: update ExtNet according Switch and Subnet API
* Tue Aug 07 2018 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC7
- ec2: add 'cidr_ipv6' in SecurityGroup entity
- ec2: remove group_type
- ec2: add VirtualSwitch and CRD operations on it
- ec2: add switch_ids to instance
- s3: add AccessDenied error processing
* Mon Apr 02 2018 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC6
- compat: dont use strict requires to ordereddict
* Tue Dec 26 2017 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC5
- Freeze max versions for paramiko and cryptography
- boto: dont decode bytes string in PY2 when parse error message
* Tue Oct 03 2017 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC4
- Add address parameter to address allocation
- ec2: remove 'attach_type' from blockdevicemapping
- ec2: remove 'attach_type' argument from attach volume method
* Tue Jun 27 2017 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC3
- ec2: fix 'AllowReassociation' param according to AWS API
- ec2: fix tests for addresses.associate
* Fri May 26 2017 Mikhail Ushanov <gm.mephisto@gmail.com> - 2.46.1-CROC2
- ec2: preserved blockdevicemapping order
- rpm: added ordereddict requires on legacy platforms
* Fri Apr 14 2017 Anton Vazhnetsov <dragen15051@gmail.com> - 2.46.1-CROC1
- Update to latest boto - 2.46.1