-
Notifications
You must be signed in to change notification settings - Fork 35
/
python-productmd.spec
358 lines (278 loc) · 14.1 KB
/
python-productmd.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
# ** IMPORTANT NOTE **
# This spec is also tracked in productmd upstream git:
# https://github.com/release-engineering/productmd
# Please synchronize changes to it with upstream.
%bcond_without python3
Name: python-productmd
Version: 1.41
Release: 1%{?dist}
Summary: Library providing parsers for metadata related to OS installation
License: LGPLv2+
URL: https://github.com/release-engineering/productmd
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
%global _description\
Python library providing parsers for metadata related to composes\
and installation media.
%description %_description
%package -n python2-productmd
Summary: %summary
Obsoletes: productmd <= %{version}-%{release}
Provides: productmd = %{version}-%{release}
BuildRequires: python2-devel
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python-setuptools
BuildRequires: python-six
Requires: python-six
%else
BuildRequires: python2-setuptools
BuildRequires: python2-six
Requires: python2-six
%endif
%{?python_provide:%python_provide python2-productmd}
%description -n python2-productmd %_description
%if 0%{?with_python3}
%package -n python%{python3_pkgversion}-productmd
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-six
Requires: python%{python3_pkgversion}-six
%description -n python%{python3_pkgversion}-productmd %_description
%endif
%prep
%setup -q
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif
%install
%py2_install
%if 0%{?with_python3}
%py3_install
%endif
%check
%{__python2} ./setup.py test
%if 0%{?with_python3}
%{__python3} ./setup.py test
%endif
%files -n python2-productmd
%license LICENSE
%doc AUTHORS
%{python2_sitelib}/productmd/
%{python2_sitelib}/productmd-%{version}-py?.?.egg-info
%if 0%{?with_python3}
%files -n python%{python3_pkgversion}-productmd
%license LICENSE
%doc AUTHORS
%{python3_sitelib}/productmd/
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info
%endif
%changelog
* Mon Nov 04 2024 Lubomír Sedlář <[email protected]> 1.41-1
- common: Update RPM_ARCHES to match dnf ([email protected])
* Thu Aug 29 2024 Lubomír Sedlář <[email protected]> 1.40-1
- Remove 'iso' image type again ([email protected])
* Wed Aug 28 2024 Lubomír Sedlář <[email protected]> 1.39-1
- Add mappings for appx and iso types for kiwi image builds
* Thu Dec 07 2023 Lubomír Sedlář <[email protected]> 1.38-1
- Add ociarchive image type ([email protected])
- Run bandit in github action ([email protected])
- Create a github action to run tests ([email protected])
- Update list of python versions in tox.ini ([email protected])
- Set up security scanning with bandit ([email protected])
* Fri Sep 22 2023 Lubomír Sedlář <[email protected]> 1.37-1
- images: add `dvd-ostree-osbuild` image type ([email protected])
- images: add `live-osbuild` image type ([email protected])
* Thu Jul 27 2023 Lubomír Sedlář <[email protected]> 1.36-1
- Compose: test existence of compose/metadata/composeinfo.json
- Fix tests to pass on ancient version of python ([email protected])
* Tue Feb 28 2023 Lubomír Sedlář <[email protected]> 1.35-1
- Fix support for ftp protocol when fetching metadata ([email protected])
* Tue Feb 14 2023 Lubomír Sedlář <[email protected]> 1.34-1
- Add vhd-compressed image type ([email protected])
- Add support for euleros ([email protected])
* Mon May 24 2021 Lubomír Sedlář <[email protected]> 1.33-1
- Add ability to set a main variant while dumping TreeInfo:
* Fri Apr 16 2021 Lubomír Sedlář <[email protected]> 1.32-1
- Update macros in spec file ([email protected])
- fix release short name validated failed when running on other linux
distributions ([email protected])
* Mon Feb 08 2021 Lubomír Sedlář <[email protected]> 1.31-1
- Add py39 to tox ([email protected])
- Explicitly list six as a test dependency ([email protected])
- Handle build_timestamp in the float format ([email protected])
* Thu Nov 26 2020 Lubomír Sedlář <[email protected]> 1.30-1
- Support ftp protocol when fetching metadata. ([email protected])
* Tue Nov 10 2020 Lubomír Sedlář <[email protected]> 1.29-1
- Include non-ISO images in composeinfo ([email protected])
* Fri Sep 25 2020 Lubomír Sedlář <[email protected]> 1.28-1
- Add 'development' compose type for non-production version of compose.
- Use tar.gz for source distribution ([email protected])
* Tue Aug 18 2020 Haibo Lin <[email protected]> 1.27-1
- Fix VariantBase._validate_variants() ([email protected])
- Fix validation for optional variant ([email protected])
* Thu Apr 09 2020 Lubomír Sedlář <[email protected]> 1.26-1
- Fix validation for top-level Variant UIDs with dashes ([email protected])
* Mon Mar 23 2020 Lubomír Sedlář <[email protected]> 1.25-1
- Allow passing arguments to pytest via tox ([email protected])
- Relax validations enough to parse OpenSUSE treeinfo ([email protected])
* Fri Feb 07 2020 Lubomír Sedlář <[email protected]> 1.24-1
- Fix dumping extra_files metadata when CWD is deleted ([email protected])
- Make tests pass on Python 2.6 ([email protected])
* Thu Oct 31 2019 Lubomír Sedlář <[email protected]> 1.23-1
- Add class for representing extra files in the compose ([email protected])
- Add tests for multiple variants in one .treeinfo ([email protected])
* Wed Sep 04 2019 Lubomír Sedlář <[email protected]> 1.22-1
- Fix parsing composeinfo with almost conflicting UIDs ([email protected])
- Improve error message for invalid metadata ([email protected])
- Fix image format for vpc ([email protected])
- Set up test infrastructure ([email protected])
- Add missing parts to the TreeInfo documentation ([email protected])
- Add a comment explaining the 'tar-gz' type ([email protected])
* Mon Mar 11 2019 Lubomír Sedlář <[email protected]> 1.21-1
- Correct a typo in IMAGE_TYPE_FORMAT_MAPPING ([email protected])
* Tue Mar 05 2019 Lubomír Sedlář <[email protected]> 1.20-1
- Keep image types synced with formats ([email protected])
* Thu Jan 24 2019 Lubomír Sedlář <[email protected]> 1.19-1
- Fix extracting minor version from long string ([email protected])
- Add new release types for BaseProduct ([email protected])
- add __version__ attribute ([email protected])
- images: add doc example for using the Images class ([email protected])
* Fri Nov 23 2018 Lubomír Sedlář <[email protected]> 1.18-1
- get_major_version should always return first component ([email protected])
- Add SecurityFix label ([email protected])
* Fri Oct 05 2018 Lubomír Sedlář <[email protected]> 1.17-1
- Add additional_variants attribute to unified images ([email protected])
- Do not use custom repr for objects with no compose ([email protected])
- README: link to readthedocs ([email protected])
* Fri Jun 22 2018 Lubomír Sedlář <[email protected]> 1.16-1
- Allow modules without metadata ([email protected])
* Wed Jun 20 2018 Lubomír Sedlář <[email protected]> 1.15-1
- Add missing _modules attribute to Compose ([email protected])
- composeinfo: add docs for Compose class ([email protected])
- rpms: add doc example for using the Rpms class ([email protected])
- common: document parse_nvra() return value elements ([email protected])
- common: explain filename handling for parse_nvra() ([email protected])
* Fri May 11 2018 Lubomír Sedlář <[email protected]> 1.14-1
- Add rhevm-ova as valid type ([email protected])
* Thu May 10 2018 Lubomír Sedlář <[email protected]> 1.13-1
- Add vsphere-ova as valid image type ([email protected])
* Mon May 07 2018 Lubomír Sedlář <[email protected]> 1.12-1
- Add vpc type and vhd format for images ([email protected])
* Thu Mar 29 2018 Lubomír Sedlář <[email protected]> 1.11-1
- New class for processing modules ([email protected])
- packaging: fixes ([email protected])
* Wed Jan 17 2018 Lubomír Sedlář <[email protected]> 1.10-1
- Drop Fedora 25 build ([email protected])
- Drop RHEL compatibility from spec ([email protected])
- Use more relaxed release type checks ([email protected])
- Fix parse release id with dash in type ([email protected])
- Add tests for parse_release_id() ([email protected])
- Update dependencies to include Python version (#97)
* Tue Oct 24 2017 Lubomír Sedlář <[email protected]> 1.9-1
- add updates-testing as a valid compose type (#96)
- Update tito configuration ([email protected])
* Wed Oct 11 2017 Lubomír Sedlář <[email protected]> 1.8-1
- Report better error on parsing invalid JSON (#95) ([email protected])
- Python 2 binary package renamed to python2-productmd ([email protected])
- Sync spec file with Fedora (#94) ([email protected])
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <[email protected]> - 1.7-3
- Python 2 binary package renamed to python2-productmd
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Jul 27 2017 Fedora Release Engineering <[email protected]> - 1.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Apr 19 2017 Lubomír Sedlář <[email protected]> 1.7-1
- common: omit context kwarg to urlopen on old Python ([email protected])
* Thu Apr 06 2017 Lubomír Sedlář <[email protected]> 1.6-1
- Add a new image type dvd-debuginfo ([email protected])
- Add Tito release for F26 ([email protected])
* Tue Apr 04 2017 Lubomír Sedlář <[email protected]> 1.5-1
- Add 'unified' to unique image attributes ([email protected])
- Add EA - Early Access label ([email protected])
- Correctly parse type from ci compose ([email protected])
- Simplify tests for creating compose id ([email protected])
- Sync spec file with Fedora (enable Py3 for EPEL) (#79) ([email protected])
- Support 'unique image identifier' concept, enforce on 1.1+
* Wed Feb 15 2017 Adam Williamson <[email protected]>
- Restore compatibility cruft for pure-RHEL builds
* Sat Feb 11 2017 Fedora Release Engineering <[email protected]> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 10 2017 Adam Williamson <[email protected]> - 1.4-2
- Enable Python 3 build for EL 6+
* Tue Jan 10 2017 Lubomír Sedlář <[email protected]> 1.4-1
- Fix loading variants from legacy composeinfo. ([email protected])
- Fix sorting composes ([email protected])
- Compose: scan all subdirs under compose_path for metadata.
- Add Python 3.6 on Travis ([email protected])
- tests: add tests for ComposeInfo.get_variants() ([email protected])
- tests: composeinfo variant arches are sets ([email protected])
- composeinfo: py3 support for sort in get_variants() ([email protected])
- composeinfo: py3 support for iter in get_variants() ([email protected])
- composeinfo: check variant arches as a set ([email protected])
- composeinfo: fix arch kwarg handling in get_arches() ([email protected])
- Configure bztar with setup.cfg ([email protected])
- Remove requirements.txt ([email protected])
- Include requirements.txt in tarball ([email protected])
- Move %%license definition just before %%files ([email protected])
- Remove builder.test from releasers.conf ([email protected])
- Install deps with setup.py on Travis ([email protected])
* Wed Nov 23 2016 Lubomír Sedlář <[email protected]> 1.3-1
- new package built with tito
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 1.2-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Jun 02 2016 Lubomír Sedlář <[email protected]> - 1.2-1
- New upstream release
- Update source url to point to PyPI
- Allow numbers in variant IDs. (dmach)
- Add support for top-level variant UIDs with dashes. (dmach)
- Change JSON separators to unify behavior on py2 and py3. (dmach)
- Move src images under binary arches. (dmach)
- Silence flake8 by moving module imports to top. (dmach)
- Forbid 'src' arch in images.json and rpms.json. (dmach)
- Include tests/images data in MANIFEST.in. (dmach)
- Add docstring to Header class (lsedlar)
* Mon Apr 25 2016 Lubomír Sedlář <[email protected]> - 1.1-1
- new upstream release
- use .tar.gz tarball from github
- removed patches as they are merged upstream
* Fri Mar 11 2016 Dennis Gilmore <[email protected]> - 1.0-13
- add patch for supporting subvariant
* Thu Feb 18 2016 Dennis Gilmore <[email protected]> - 1.0-12
- add a patch to make rawhide as a version consistently an option
* Thu Feb 18 2016 Dennis Gilmore <[email protected]> - 1.0-11
- update from git to allow us to use rawhide as the version
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jan 26 2016 Dennis Gilmore <[email protected]> - 1.0-10
- provide python2-productmd
- remove defattr
* Fri Dec 11 2015 Daniel Mach <[email protected]> - 1.0-9
- Use v1.0 tarball from github
- Fix spec for el6 (license macro)
- Add dependency on python(3)-six
* Wed Dec 09 2015 Dennis Gilmore <[email protected]> - 1.0-8.git3b72969
- enable building only on python 2 on epel
* Tue Nov 10 2015 Fedora Release Engineering <[email protected]> - 1.0-7.git3b72969
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Tue Nov 03 2015 Dennis Gilmore <[email protected]> - 1.0-6.git3b72969
- update git snapshot
- rebuild for python-3.5
* Thu Jun 18 2015 Fedora Release Engineering <[email protected]> - 1.0-5.gitec8c627
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jun 07 2015 Dennis Gilmore <[email protected]> - 1.0-4.gitec8c627
- update git snapshot to latest git head with fixes for pungi
* Fri Mar 13 2015 Dennis Gilmore <[email protected]> - 1.0-3.git57efab
- rename to python-productmd
* Wed Mar 11 2015 Dennis Gilmore <[email protected]> - 1.0-2.git57efab
- update git tarball so we can run tests at build time
* Tue Mar 10 2015 Dennis Gilmore <[email protected]> - 1.0-1
- Initial packaging