forked from containerbuildsystem/atomic-reactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atomic-reactor.spec
538 lines (380 loc) · 17 KB
/
atomic-reactor.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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
%global binaries_py_version %{python3_version}
%global owner containerbuildsystem
%global project atomic-reactor
%global ar_subpackages_obsolete 1.6.50
Name: %{project}
Version: 3.7.0
Release: 1%{?dist}
Summary: Improved builder for Docker images
Group: Development/Tools
License: BSD
URL: https://github.com/%{owner}/%{project}
Source0: https://github.com/containerbuildsystem/%{name}/archive/%{version}.tar.gz
BuildArch: noarch
Requires: python3-atomic-reactor = %{version}-%{release}
Requires: git >= 1.7.10
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
Simple Python tool with command line interface for building Docker
images. It contains a lot of helpful functions which you would
probably implement if you started hooking Docker into your
infrastructure.
%package -n python3-atomic-reactor
Summary: Python 3 Atomic Reactor library
Group: Development/Tools
License: BSD
Requires: python3-docker >= 1.3.0, python3-docker < 4.3.0
Requires: python3-requests
Requires: python3-setuptools
Requires: python3-dockerfile-parse >= 0.0.11
Requires: python3-docker-squash >= 1.0.7
Requires: python3-jsonschema
Requires: python3-PyYAML
Requires: python3-ruamel-yaml
Requires: python3-rpm
Requires: koji
Requires: osbs >= 0.65
Requires: skopeo
Provides: python3-atomic-reactor-koji = %{version}-%{release}
Obsoletes: python3-atomic-reactor-koji <= %{ar_subpackages_obsolete}
Provides: python3-atomic-reactor-metadata = %{version}-%{release}
Obsoletes: python3-atomic-reactor-metadata <= %{ar_subpackages_obsolete}
Provides: python3-atomic-reactor-rebuilds = %{version}-%{release}
Obsoletes: python3-atomic-reactor-rebuilds <= %{ar_subpackages_obsolete}
%{?python_provide:%python_provide python3-atomic-reactor}
%description -n python3-atomic-reactor
Simple Python 3 library for building Docker images. It contains
a lot of helpful functions which you would probably implement if
you started hooking Docker into your infrastructure.
%prep
%setup -q
%py3_build
%install
%py3_install
mv %{buildroot}%{_bindir}/atomic-reactor %{buildroot}%{_bindir}/atomic-reactor-%{python3_version}
ln -s %{_bindir}/atomic-reactor-%{python3_version} %{buildroot}%{_bindir}/atomic-reactor-3
ln -s %{_bindir}/atomic-reactor-%{binaries_py_version} %{buildroot}%{_bindir}/atomic-reactor
# ship reactor in form of tarball so it can be installed within build image
cp -a %{sources} %{buildroot}/%{_datadir}/%{name}/atomic-reactor.tar.gz
mkdir -p %{buildroot}%{_mandir}/man1
cp -a docs/manpage/atomic-reactor.1 %{buildroot}%{_mandir}/man1/
%files
%doc README.md
%{_mandir}/man1/atomic-reactor.1*
%{!?_licensedir:%global license %doc}
%license LICENSE
%{_bindir}/atomic-reactor
%files -n python3-atomic-reactor
%doc README.md
%doc docs/*.md
%{!?_licensedir:%global license %doc}
%license LICENSE
%{_bindir}/atomic-reactor-%{python3_version}
%{_bindir}/atomic-reactor-3
%{_mandir}/man1/atomic-reactor.1*
%dir %{python3_sitelib}/atomic_reactor
%dir %{python3_sitelib}/atomic_reactor/__pycache__
%{python3_sitelib}/atomic_reactor/*.*
%{python3_sitelib}/atomic_reactor/cli
%{python3_sitelib}/atomic_reactor/plugins
%{python3_sitelib}/atomic_reactor/schemas
%{python3_sitelib}/atomic_reactor/utils
%{python3_sitelib}/atomic_reactor/__pycache__/*.py*
%{python3_sitelib}/atomic_reactor-*.egg-info
%dir %{_datadir}/%{name}
# ship reactor in form of tarball so it can be installed within build image
%{_datadir}/%{name}/atomic-reactor.tar.gz
# dockerfiles for build images
# there is also a script which starts docker in privileged container
# (is not executable, because it's meant to be used within provileged containers, not on a host system)
%{_datadir}/%{name}/images
%changelog
* Fri Jul 30 2021 mkosiarc <[email protected]> 3.7.0-1
- new upstream release: 3.7.0
* Thu Jun 10 2021 Robert Cerven <[email protected]> 3.6.2-1
- new upstream release: 3.6.2
* Thu Jun 10 2021 Robert Cerven <[email protected]> 3.6.1-1
- new upstream release: 3.6.1
* Wed Jun 09 2021 Robert Cerven <[email protected]> 3.6.0-1
- new upstream release: 3.6.0
* Fri Apr 16 2021 Robert Cerven <[email protected]> 3.5.0-1
- new upstream release: 3.5.0
* Mon Mar 15 2021 Martin Bašti <[email protected]> 3.4.0-1
- new upstream release: 3.4.0
* Wed Feb 03 2021 Chenxiong Qi <[email protected]> 3.3.0-1
- new upstream release: 3.3.0
* Fri Jan 29 2021 Chenxiong Qi <[email protected]> 3.2.0-1
- new upstream release: 3.2.0
* Mon Jan 18 2021 Martin Bašti <[email protected]> 3.1.0-1
- new upstream release: 3.1.0
* Mon Dec 07 2020 Ladislav Kolacek <[email protected]> 3.0.0-1
- new upstream release: 3.0.0
* Mon Nov 09 2020 Robert Cerven <[email protected]> 2.4.1-1
- new upstream release: 2.4.1
* Fri Nov 06 2020 Robert Cerven <[email protected]> 2.4.0-1
- new upstream release: 2.4.0
* Thu Sep 17 2020 Martin Bašti <[email protected]> 2.3.0-1
- new upstream release: 2.3.0
* Thu Aug 27 2020 Robert Cerven <[email protected]> 2.2.0-1
- new upstream release: 2.2.0
* Wed Jul 29 2020 Robert Cerven <[email protected]> 2.1.0-1
- new upstream release: 2.1.0
* Fri Jul 03 2020 Martin Bašti <[email protected]> 2.0.0-1
- new upstream release: 2.0.0
* Tue Jun 02 2020 Robert Cerven <[email protected]> 1.6.52-1
- new upstream release: 1.6.52
* Fri Apr 24 2020 Martin Bašti <[email protected]> 1.6.51-1
- new upstream release: 1.6.51
* Fri Apr 17 2020 Robert Cerven <[email protected]>
- Ship python package in a single RPM
* Wed Apr 01 2020 Martin Bašti <[email protected]> 1.6.50-1
- new upstream release: 1.6.50
* Wed Mar 04 2020 Robert Cerven <[email protected]> - 1.6.49.1-1
- new upstream release: 1.6.49.1
* Wed Feb 26 2020 Martin Bašti <[email protected]> - 1.6.49-2
- Remove koji-promote plugin
* Tue Feb 18 2020 Robert Cerven <[email protected]> - 1.6.49-1
- new upstream release: 1.6.49
* Thu Jan 23 2020 Robert Cerven <[email protected]> - 1.6.48.1-1
- new upstream release: 1.6.48.1
* Mon Jan 20 2020 Martin Bašti <[email protected]> - 1.6.48-0
- new upstream release: 1.6.48
* Tue Dec 10 2019 Robert Cerven <[email protected]> - 1.6.47-1
- new upstream release: 1.6.47
* Tue Dec 03 2019 Robert Cerven <[email protected]> - 1.6.46-1
- new upstream release: 1.6.46
* Tue Nov 05 2019 Robert Cerven <[email protected]> - 1.6.45-1
- new upstream release: 1.6.45
* Tue Oct 08 2019 Martin Bašti <[email protected]> - 1.6.44-2
- python-docker[-py]: Require minimal version >= 1.3.0
* Wed Oct 02 2019 Robert Cerven <[email protected]> - 1.6.44-1
- new upstream release: 1.6.44
* Wed Sep 25 2019 Robert Cerven <[email protected]> - 1.6.43.1-1
- new upstream release: 1.6.43.1
* Tue Sep 24 2019 Robert Cerven <[email protected]> - 1.6.43-1
- new upstream release: 1.6.43
* Mon Aug 19 2019 Robert Cerven <[email protected]> - 1.6.42-1
- new upstream release: 1.6.42
* Mon Jul 15 2019 Robert Cerven <[email protected]> - 1.6.41-1
- new upstream release: 1.6.41
* Thu Jun 20 2019 Robert Cerven <[email protected]> - 1.6.40.1-1
- new upstream release: 1.6.40.1
* Mon Jun 10 2019 Robert Cerven <[email protected]> - 1.6.40-1
- new upstream release: 1.6.40
* Mon May 27 2019 Robert Cerven <[email protected]> - 1.6.39.1-1
- new upstream release: 1.6.39.1
* Tue May 07 2019 Robert Cerven <[email protected]> - 1.6.39-1
- new upstream release: 1.6.39
* Wed Apr 24 2019 Robert Cerven <[email protected]> - 1.6.38.1-1
- new upstream release: 1.6.38.1
* Wed Mar 06 2019 Robert Cerven <[email protected]> - 1.6.38-1
- new upstream release: 1.6.38
* Tue Jan 15 2019 Robert Cerven <[email protected]> - 1.6.37.1-1
- new upstream release: 1.6.37.1
* Tue Jan 08 2019 Robert Cerven <[email protected]> - 1.6.37-1
- new upstream release: 1.6.37
* Thu Dec 06 2018 Athos Ribeiro <[email protected]>
- Fix changelog bogus dates
* Fri Nov 23 2018 Athos Ribeiro <[email protected]>
- Remove pytest-capturelog dependency
* Thu Nov 22 2018 Robert Cerven <[email protected]> - 1.6.36.1-1
- new upstream release: 1.6.36.1
* Wed Nov 14 2018 Robert Cerven <[email protected]> - 1.6.36-1
- new upstream release: 1.6.36
* Fri Oct 05 2018 Robert Cerven <[email protected]> - 1.6.35-1
- new upstream release: 1.6.35
* Wed Aug 22 2018 Robert Cerven <[email protected]> - 1.6.34-1
- new upstream release: 1.6.34
* Tue Aug 07 2018 Robert Cerven <[email protected]> - 1.6.33.1-1
- new upstream release: 1.6.33.1
* Wed Jul 25 2018 Robert Cerven <[email protected]> - 1.6.33-1
- new upstream release: 1.6.33
* Wed Jul 11 2018 Robert Cerven <[email protected]> - 1.6.32.3-1
- new upstream release: 1.6.32.3
* Fri Jun 29 2018 Robert Cerven <[email protected]> - 1.6.32.2-1
- new upstream release: 1.6.32.2
* Mon Jun 25 2018 Robert Cerven <[email protected]> - 1.6.32.1-1
- new upstream release: 1.6.32.1
* Wed Jun 13 2018 Robert Cerven <[email protected]> - 1.6.32-1
- new upstream release: 1.6.32
* Mon May 07 2018 Robert Cerven <[email protected]> - 1.6.31-1
- new upstream release: 1.6.31
* Tue May 01 2018 Tim Waugh <[email protected]> - 1.6.30.3-1
- new upstream release: 1.6.30.3
* Mon Apr 16 2018 Robert Cerven <[email protected]> - 1.6.30.2-1
- new upstream release: 1.6.30.2
* Thu Apr 05 2018 Robert Cerven <[email protected]> - 1.6.30.1-1
- new upstream release: 1.6.30.1
* Fri Mar 23 2018 Robert Cerven <[email protected]> - 1.6.30-1
- new upstream release: 1.6.30
* Wed Jan 24 2018 Robert Cerven <[email protected]> - 1.6.29.1-1
- new upstream release: 1.6.29.1
* Tue Jan 16 2018 Robert Cerven <[email protected]> - 1.6.29-1
- new upstream release: 1.6.29
* Mon Nov 06 2017 Robert Cerven <[email protected]> - 1.6.28-1
- new upstream release: 1.6.28
* Wed Oct 04 2017 Robert Cerven <[email protected]> - 1.6.27-1
- new upstream release: 1.6.27
* Mon Sep 11 2017 Robert Cerven <[email protected]> - 1.6.26.3-1
- new upstream release: 1.6.26.3
* Wed Sep 06 2017 Robert Cerven <[email protected]> - 1.6.26.2-1
- new upstream release: 1.6.26.2
* Wed Sep 06 2017 Robert Cerven <[email protected]> - 1.6.26.1-1
- new upstream release: 1.6.26.1
* Tue Sep 05 2017 Robert Cerven <[email protected]> - 1.6.26-1
- new upstream release: 1.6.26
* Mon Jul 31 2017 Robert Cerven <[email protected]> - 1.6.25-1
- new upstream release: 1.6.25
* Wed Jun 28 2017 Robert Cerven <[email protected]> - 1.6.24.1-1
- new upstream release: 1.6.24.1
* Tue Jun 27 2017 Robert Cerven <[email protected]> - 1.6.24-1
- new upstream release: 1.6.24
* Tue Apr 04 2017 Robert Cerven <[email protected]> - 1.6.23-1
- new upstream release: 1.6.23
* Mon Mar 06 2017 Robert Cerven <[email protected]> - 1.6.22-1
- new upstream release: 1.6.22
* Mon Feb 13 2017 Vadim Rutkovsky <[email protected]> - 1.16.21-1
- 1.6.21 release
* Mon Feb 6 2017 Vadim Rutkovsky <[email protected]> - 1.16.20-1
- 1.6.20 release
* Tue Nov 29 2016 Vadim Rutkovsky <[email protected]> - 1.16.19-1
- 1.6.19 release
* Fri Nov 11 2016 Vadim Rutkovsky <[email protected]> - 1.16.18-1
- 1.6.18 release
* Wed Sep 21 2016 Vadim Rutkovsky <[email protected]> - 1.16.17-1
- 1.6.17 release
* Tue Sep 13 2016 Luiz Carvalho <[email protected]> - 1.6.16-1
- 1.6.16 release
* Thu Aug 18 2016 Martin Milata <[email protected]> - 1.6.15-1
- 1.6.15 release
* Mon Aug 01 2016 Tim Waugh <[email protected]> - 1.6.14-1
- 1.6.14 release
* Fri Jul 08 2016 Tim Waugh <[email protected]> - 1.6.13-1
- 1.6.13 release
* Mon Jul 4 2016 Vadim Rutkovsky <[email protected]> - 1.6.12-1
- 1.6.12 release
* Fri Jun 24 2016 Vadim Rutkovsky <[email protected]> - 1.6.11-1
- 1.6.11 release
* Thu Jun 09 2016 Tim Waugh <[email protected]>
- Move the bump_release plugin to the koji subpackage since it uses Koji.
* Wed Jun 08 2016 Martin Milata <[email protected]> - 1.6.10-1
- 1.6.10 release
* Thu May 26 2016 Martin Milata <[email protected]> - 1.6.9-1
- 1.6.9 release
* Mon May 23 2016 Martin Milata <[email protected]> - 1.6.8-1
- New pre_add_filesystem plugin. (Tim Waugh <[email protected]>)
- New koji_util module in koji package. (Tim Waugh <[email protected]>)
- 1.6.8 release
* Fri Apr 22 2016 Martin Milata <[email protected]> - 1.6.7-1
- 1.6.7 release
* Tue Apr 12 2016 Martin Milata <[email protected]> - 1.6.6-1
- 1.6.6 release
* Mon Apr 11 2016 Martin Milata <[email protected]> - 1.6.5-1
- Move koji_promote plugin to koji package now that it is used in the
main workflow. (Tim Waugh <[email protected]>)
- 1.6.5 release
* Thu Apr 07 2016 Martin Milata <[email protected]> - 1.6.4-1
- 1.6.4 release
* Thu Feb 04 2016 Martin Milata <[email protected]> - 1.6.3-1
- 1.6.3 release
* Mon Feb 01 2016 Martin Milata <[email protected]> - 1.6.2-1
- 1.6.2 release
- BuildRequires python-flexmock >= 0.10.2 due to
https://github.com/bkabrda/flexmock/issues/6
* Fri Jan 15 2016 Martin Milata <[email protected]> - 1.6.1-1
- 1.6.1 release
* Fri Nov 20 2015 Jiri Popelka <[email protected]> - 1.6.0-4
- use py_build & py_install macros
- use python_provide macro
- ship executables per packaging guidelines
* Thu Nov 05 2015 Jiri Popelka <[email protected]> - 1.6.0-3
- %%check section
* Mon Oct 19 2015 Slavek Kabrda <[email protected]> - 1.6.0-2
- add requirements on python{,3}-docker-scripts
* Mon Oct 19 2015 Tomas Tomecek <[email protected]> - 1.6.0-1
- 1.6.0 release
* Tue Sep 08 2015 Tomas Tomecek <[email protected]> - 1.5.1-1
- 1.5.1 release
* Fri Sep 04 2015 Tomas Tomecek <[email protected]> - 1.5.0-2
- workaround lack of python-pygit2
* Fri Sep 04 2015 Tomas Tomecek <[email protected]> - 1.5.0-1
- 1.5.0 release
* Tue Jul 28 2015 bkabrda <[email protected]> - 1.4.0-2
- fix issues found during Fedora re-review (rhbz#1246702)
* Thu Jul 16 2015 Tomas Tomecek <[email protected]> - 1.4.0-1
- new upstream release 1.4.0
* Tue Jun 30 2015 Jiri Popelka <[email protected]> - 1.3.7-3
- define macros for RHEL-6
* Mon Jun 22 2015 Slavek Kabrda <[email protected]> - 1.3.7-2
- rename to atomic-reactor
* Mon Jun 22 2015 Martin Milata <[email protected]> - 1.3.7-1
- new upstream release 1.3.7
* Wed Jun 17 2015 Jiri Popelka <[email protected]> - 1.3.6-2
- update hash
* Wed Jun 17 2015 Tomas Tomecek <[email protected]> - 1.3.6-1
- new upstream release 1.3.6
* Tue Jun 16 2015 Tomas Tomecek <[email protected]> - 1.3.5-1
- new upstream release 1.3.5
* Fri Jun 12 2015 Tomas Tomecek <[email protected]> - 1.3.4-1
- new upstream release 1.3.4
* Wed Jun 10 2015 Jiri Popelka <[email protected]> - 1.3.3-2
- BuildRequires: python-docker-py
* Wed Jun 10 2015 Jiri Popelka <[email protected]> - 1.3.3-1
- new upstream release 1.3.3
* Mon Jun 01 2015 Tomas Tomecek <[email protected]> - 1.3.2-1
- new upstream release 1.3.2
* Wed May 27 2015 Tomas Tomecek <[email protected]> - 1.3.1-1
- new upstream release 1.3.1
* Mon May 25 2015 Tomas Tomecek <[email protected]> - 1.3.0-1
- new upstream release 1.3.0
* Tue May 19 2015 Jiri Popelka <[email protected]> - 1.2.1-3
- fix el7 build
* Tue May 19 2015 Jiri Popelka <[email protected]> - 1.2.1-2
- rebuilt
* Tue May 19 2015 Martin Milata <[email protected]> - 1.2.1-1
- new upstream release 1.2.1
* Thu May 14 2015 Jiri Popelka <[email protected]> - 1.2.0-4
- enable Python 3 build
* Thu May 07 2015 Slavek Kabrda <[email protected]> - 1.2.0-3
- Introduce python-dock subpackage
- Rename dock-{koji,metadata} to python-dock-{koji,metadata}
- move /usr/bin/dock to /usr/bin/dock2, /usr/bin/dock is now a symlink
* Tue May 05 2015 Jiri Popelka <[email protected]> - 1.2.0-2
- require python[3]-setuptools
* Tue Apr 21 2015 Tomas Tomecek <[email protected]> - 1.2.0-1
- new upstream release 1.2.0
* Tue Apr 07 2015 Tomas Tomecek <[email protected]> - 1.1.3-1
- new upstream release 1.1.3
* Thu Apr 02 2015 Martin Milata <[email protected]> - 1.1.2-1
- new upstream release 1.1.2
* Thu Mar 19 2015 Jiri Popelka <[email protected]> - 1.1.1-2
- separate executable for python 3
* Tue Mar 17 2015 Tomas Tomecek <[email protected]> - 1.1.1-1
- new upstream release 1.1.1
* Fri Feb 20 2015 Tomas Tomecek <[email protected]> - 1.1.0-1
- new upstream release 1.1.0
* Wed Feb 11 2015 Tomas Tomecek <[email protected]> - 1.0.0-2
- spec: fix python 3 packaging
- fix license in %%files
- comment on weird stuff (dock.tar.gz, docker.sh)
* Thu Feb 05 2015 Tomas Tomecek <[email protected]> - 1.0.0-1
- initial 1.0.0 upstream release
* Wed Feb 04 2015 Tomas Tomecek <[email protected]> 1.0.0.b-1
- new upstream release: beta
* Mon Dec 01 2014 Tomas Tomecek <[email protected]> 1.0.0.a-1
- complete rewrite ([email protected])
- Use inspect_image() instead of get_image() when checking for existence (#4).
* Mon Nov 10 2014 Tomas Tomecek <[email protected]> 0.0.2-1
- more friendly error msg when build img doesnt exist ([email protected])
- implement postbuild plugin system; do rpm -qa plugin ([email protected])
- core, logs: wait for container to finish and then gather output
- core, df copying: df was not copied when path wasn't provided
- store dockerfile in results dir ([email protected])
* Mon Nov 03 2014 Jakub Dorňák <[email protected]> 0.0.1-1
- new package built with tito
* Sun Nov 2 2014 Jakub Dorňák <[email protected]> - 0.0.1-1
- Initial package