-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdc.spec
420 lines (395 loc) · 20.5 KB
/
pdc.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
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%define srcname pdc
Name: python-%{srcname}
Version: 1.8.0
Release: 1%{?dist}
Summary: Product Definition Center
Group: Development/Libraries
License: MIT
URL: https://github.com/release-engineering/product-definition-center
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python-sphinx
Requires: Django >= 1.8.1, Django < 1.9.0
Requires: django-rest-framework >= 3.2
Requires: django-rest-framework < 3.3
Requires: django-mptt >= 0.7.1
Requires: kobo >= 0.4.2
Requires: kobo-django
Requires: kobo-rpmlib
Requires: koji
Requires: patternfly1 == 1.3.0
Requires: productmd >= 1.1
Requires: python-django-filter >= 0.9.2
Requires: python-ldap
Requires: python-markdown
Requires: python-mock
Requires: python-psycopg2
Requires: python-django-cors-headers
Requires: python-django-rest-framework-composed-permissions
%description
The Product Definition Center, at its core, is a database that defines every Red Hat products, and their relationships with several important entities.
This package contains server part of Product Definition Center (PDC)
%prep
%setup -q -n %{name}-%{version}
%build
make -C docs/ html
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --root=%{buildroot}
mkdir -p %{buildroot}/%{_datadir}/%{srcname}/static
mkdir -p %{buildroot}%{_defaultdocdir}/%{srcname}
cp pdc/settings_local.py.dist %{buildroot}/%{python_sitelib}/%{srcname}
cp -R docs %{buildroot}%{_defaultdocdir}/%{srcname}
cp manage.py %{buildroot}/%{python_sitelib}/%{srcname}
# don't need egg info
for egg_info in $(find %{buildroot}/%{python_sitelib} -type d -name '*.egg-info'); do
rm -rf $egg_info
done
# Install apache config for the app:
install -m 0644 -D -p conf/pdc-httpd.conf.sample %{buildroot}%{_defaultdocdir}/pdc/pdc.conf.sample
# only remove static dir when it's a uninstallation
# $1 == 0: uninstallation
# $1 == 1: upgrade
%preun
if [ "$1" = 0 ]; then
rm -rf %{_datadir}/%{srcname}/static
fi
%files
%defattr(-,root,apache,-)
%{_defaultdocdir}/pdc
%{python_sitelib}/%{srcname}
%{python_sitelib}/contrib
%exclude %{python_sitelib}/%{srcname}/conf
%{_datadir}/%{srcname}
%changelog
* Tue Oct 17 2017 Lukas Holecek <[email protected]> 1.8.0-1
- Add push-targets endpoint and allowed_push_targets fields
- Add allowed_debuginfos for release ([email protected])
- Add allow_buildroot_push to release API ([email protected])
- Add signing key in release api ([email protected])
- Add cpes endpoint ([email protected])
- Add variant-cpes endpoint ([email protected])
- Add descending ordering documentation on API pages ([email protected])
- Add API documentation links ([email protected])
- Make ComponentBranch filters case-sensitive ([email protected])
- Move common settings in one file ([email protected])
- Always allow to select fields to display ([email protected])
- Allow to use ordering names from serialized JSON ([email protected])
- Fix not-found error string ([email protected])
- Fix passing field errors to client ([email protected])
- Use fuzzy filter for resources ([email protected])
- Omit changing response for DEBUG mode ([email protected])
- Simplify enabling debug toolbar in settings ([email protected])
- doc: fix "then" spelling ([email protected])
* Tue Aug 15 2017 Chuang Cao <[email protected]> 1.7.0-1
- Revert "Automatic commit of package [python-pdc] minor release [1.7.0-1]."
- Automatic commit of package [python-pdc] minor release [1.7.0-1].
- Fix generating graphs for apps with a label ([email protected])
- Add tests for ordering ([email protected])
- Fix passing a serialization error to client ([email protected])
- Modify the comment of disable api permission ([email protected])
- Remove unneeded django-jsonfield dependency ([email protected])
- Add python-django-jsonfield as a dependency ([email protected])
- Remove duplicate string-to-bool conversion function ([email protected])
- Flake8 fixes ([email protected])
- Update doc strings. ([email protected])
- Remove unneeded parentheses. ([email protected])
- Remove unused test_tree.json ([email protected])
- Remove all references to "tree" which we never ended up using.
- Move the folder from tree/ to module/. ([email protected])
- Allow filtering modules by RPM's srpm_commit_branch. ([email protected])
- Add missing database migration script for srpm_commit_hash and
srpm_commit_branch. ([email protected])
- Allow storing RPMs used in module build. ([email protected])
- Add filters for build_deps and runtime_deps. ([email protected])
- Make flake8 happy. ([email protected])
- Add an active boolean field and use variant_uid for the lookup_field.
- Fix app loading in django 1.9 like in #419. ([email protected])
- Get the repository test suite working again. ([email protected])
- Get the release app test suite working again. ([email protected])
- Also require django-jsonfield for devel and tests. ([email protected])
- Add 'modulemd' field to unreleasedvariants ([email protected])
- New style deps for stream-based modulemd 1.0. ([email protected])
- (Un)Serialize dependencies as simple strings. ([email protected])
- fix RelatedManager not iterable by iterating over .all() ([email protected])
- Add exports for UnreleasedVariant *_deps ([email protected])
- add UnreleasedVariant *_deps to filters ([email protected])
- Don't require runtime_deps/build_deps in the API. ([email protected])
- implement querying of variant runtime/build deps ([email protected])
- Add comment to variant_version/_release API docs. ([email protected])
- Don't require variant_version/_release in the API. ([email protected])
- Add variant_version/_release to release.Variant. ([email protected])
- Add comment to variant_version/_release. ([email protected])
- add missing fields to test API calls ([email protected])
- API end points are plural, not singular ([email protected])
- sync up filters with changes in the models ([email protected])
- Add lookup_field etc. to Tree/UnreleasedVariant. ([email protected])
- fix URLs in API docs ([email protected])
- add migrations for Tree and UnreleasedVariant ([email protected])
- rename TreeVariant* to UnreleasedVariant* ([email protected])
- require django-jsonfield ([email protected])
- move JSON test data to own file ([email protected])
- Add initial version of tree app into pdc ([email protected])
- Add release variant type 'module' ([email protected])
- Add nested ordering filter ([email protected])
- Add the component-branches, component-sla-types, component-branch-slas APIs
- Add .idea to .gitignore ([email protected])
- Allow to add/update/remove component relationship types ([email protected])
- Fix mapping volume in example docker command ([email protected])
- Fix requirements for ipdb ([email protected])
- Fix installing kobo from requirements ([email protected])
- Fix accidentally uncommented line in default settings ([email protected])
- Default view of composes should be reversed in order ([email protected])
- Handle new page_not_found argument in django-1.9. ([email protected])
- unbrand ([email protected])
- Allow using mod_auth_oidc for remote user auth. ([email protected])
* Thu Dec 15 2016 bliu <[email protected]> 1.2.0-1
- WebUI shows the groups and superusers ([email protected])
- Remove inactive user and without group mapping to resource permission
- Revert "To fix the bug when testing PDC-1757" ([email protected])
- To fix the bug when testing PDC-1757 ([email protected])
- To verify the 'read' permission for all members ([email protected])
- To list all API permissions ([email protected])
- Add a test specifically for the new extended unique_together setting.
- Give a default value to ReleaseComponent.type in the Serializer.
- Add migration for 80397f1 ([email protected])
- Make release components be unique by name/release/type. ([email protected])
- Rename the colunm name for release, product version and product
- Fix apps loading in Django 1.9. ([email protected])
- Use slug in release / product version / product URLs. ([email protected])
- Display all/active/inactive ([email protected])
- Display all/active/inactive and filter the datatable ([email protected])
- Change contact APIs' response max-age to 0 ([email protected])
- Display all/active/inactive ([email protected])
- Update the docs and add the ordering fields ([email protected])
- UI for displaying resource permission ([email protected])
- Update pdc.spec for using patternfly1 1.3.0 ([email protected])
- Change group-resource-permissions API prompt. ([email protected])
- For group-resource-permissions API, add prompt when use illegal parameter.
* Mon Aug 08 2016 Cheng Yu <[email protected]> 1.1.0-1
- Make group resource permission work correctly in PATCH method
- Change version in code. ([email protected])
- Update the error info and looks friendly. ([email protected])
- Update the valid fields for ordering ([email protected])
- Support multiple dict values and empty input for /composes/{compose_id}/rpm-
mapping/ ([email protected])
- Unnest group resource permissions create/update/response data.
- Make page always locate at page header part. ([email protected])
- Allowe - and , character together to ordering ([email protected])
- Verify the ordering key and update the Release and Compose view
- Take keys into acount for ordering of all APIs ([email protected])
- Change the wrong doc description. ([email protected])
- Change doc description for compose/compose-images/compose-rpms
- Support regexp search in rpm name. ([email protected])
- Add more details to compose-images API docs. ([email protected])
- Doc change for compose api to mention how compose get created
- Add page switch to the bottom ([email protected])
- Fix bugs in cache control and add test cases. ([email protected])
- Implement more accurate last-modified header in some resources of PDC
- Specify Django version less than 1.9 in spec file. ([email protected])
- Add cache control headers to PDC HTTP response ([email protected])
- Fix bugs when inputing wrong format which will return server error
- Fix sync.sh problem in upstream version part. ([email protected])
- Add two new rules to API stability ([email protected])
- Group rpm query parameters in and operation. ([email protected])
- Add unique to Compose PathType's name field. ([email protected])
- Fix test failed after merge master to release branch. ([email protected])
- Change "ComposeTreeRTTTestVewSet" to "ComposeTreeRTTTestViewSet"
- Create new API of compose-tree-rtt-tests ([email protected])
- Update documentation for compose rpm mapping's bulk update method and fix
tests. ([email protected])
- Put permission control on more resources and show correct permissions.
- Add python-django-rest-framework-composed-permissions as a dependency.
- Fix a bug for api auth/resource-permissions retrieve method.
- Change the way to generate resource permissions automatically.
- Fix a url mistake in mail content. ([email protected])
- Create UI to display resource permissions in auth profile.
- Announce big changes in PDC database ([email protected])
- Document how to configure when behind a reverse proxy ([email protected])
- Fix a bug and add a flag for resource permissions. ([email protected])
- Update the release-groups API ([email protected])
- Implement resource based permissions control. ([email protected])
- instruct curl to follow HTTP redirect ([email protected])
- Create release-group API ([email protected])
- Add 'subvariant' as a query parameter in images endpoint. ([email protected])
* Tue May 17 2016 Cheng Yu <[email protected]> 1.0.0-2
- Pass empty string to productmd instead of None. ([email protected])
* Wed May 11 2016 Cheng Yu <[email protected]> 1.0.0-1
- Change version in code. ([email protected])
- Handle release has no compose in web UI ([email protected])
- Get rpm-mapping when release has no compose. ([email protected])
- Enable query with multi values. ([email protected])
- Make Release.integrated_with accept null as input. ([email protected])
- Allow to clone repositories with None product_id ([email protected])
- Remove create-plugin.py from server repo ([email protected])
- Update the doc in Repo API ([email protected])
- Set unique Charfield's default value to None insteadof empty string.
- Disable_eus/aus_repo_checks ([email protected])
- Make all update api following rule 'Update missing optional fields are
erased'. ([email protected])
- Simplify _bulk_insert_resource func in scripts/create_release_components.py
- Add doc to note the user when PUT optional parameter. ([email protected])
- Update tests to work with new productmd ([email protected])
- Fix the bug about "Manage Overrides" on release without compose
- Publish two new message topics. ([email protected])
- Store relative paths to variant/$arch/$content_category_name dir
- Update the view of auth/token api ([email protected])
- Return warning when query in boolean field with illegal value.
- Add API stability to doc ([email protected])
- Correct a documentation's url. ([email protected])
- Create rpc/overridesrpm/clone ([email protected])
- Create rpc/overrides-rpm/clone ([email protected])
- To create rpc/overrides-rpm/clone API ([email protected])
- To create Rpc/Overrides-rpm/clone new API. ([email protected])
- Rewrite the get_all_permissions function ([email protected])
- Sorte permission list with same api name ([email protected])
- Correct the using api doc ([email protected])
- Change compose tree location end point url. ([email protected])
- Initial image formats and types from productmd. ([email protected])
- To show Arch names on compose page which get truncated ([email protected])
- Check compose rpm mapping parameters strictly and fix bug.
- Visible for Arch names on compose page ([email protected])
- Compose import images/rpms and full import APIs extra parameter not allowed.
- Send signal when product is created or updated. ([email protected])
- Compose-tree-locations be unique over scheme ([email protected])
- Update the doc in compose-tree-location ([email protected])
- Visible for Arch names on compose page ([email protected])
- Remove useless header informations for some APIs ([email protected])
- Remove the client test in server repo ([email protected])
- Sync Release and BaseProduct models with productmd. ([email protected])
- Modify release 'short' and 'version' field validation to use regular
expressions from productmd. ([email protected])
- Remove useless header informations for some APIs ([email protected])
- Change corp name to the correct one. ([email protected])
- Avoid double-encoding the fedmsg json payload. ([email protected])
- Strip any extra dots from the fedmsg topic. ([email protected])
- Fix tests ([email protected])
- Add subvariant field to images ([email protected])
- Add set compose tree location function to compose full import
- Indicate a compose is deleted in its detail page. ([email protected])
- Remove redundant changelog. ([email protected])
- Fix the full compose import API web page footer error. ([email protected])
- Display deleted compose with special style in web UI. ([email protected])
- Ability to import compose-rpms, compose-images at once (atomicity).
- Allow marking composes as deleted ([email protected])
- Modify epochformat to work with both timestamps and datetime.
- Improve ordering releases, product versions and products. ([email protected])
- Remove productmd hacks, deserialize data directly. ([email protected])
* Fri Feb 26 2016 Cheng Yu <[email protected]> 0.9.rc-3
- Change version and organization name. ([email protected])
- Automatic commit of package [python-pdc] minor release [0.9.rc-2].
- Remove deprecated API /rpc/compose/import-images/ ([email protected])
- Remove permissions from inactive user accounts ([email protected])
- Remove deprecated end points under repository app. ([email protected])
- Change links from varianttype-list to releasevarianttype-list.
- Update the doc for some API ([email protected])
- Update the content-delivery-repos URL ([email protected])
- Add 2 image formats and 1 image type. ([email protected])
- Rename resource variant-types to release-variant-types. ([email protected])
- Add more detail error info for compose-tree-locations ([email protected])
- Allow import images work when filed 'implant_md5' is null.
- Fix the bug when change RPM built_for_release field won't record.
- Update the error info for compose-tree-location ([email protected])
- Make MultiValueRegexFilter could treat empty string or wrong regexp format
- Add error message for compose-tree-locations. ([email protected])
- Add optional "built-for-release" field in rpms resource ([email protected])
- This task have been fixed and just remove unavaliable code ([email protected])
- Add support for regexp for contact searches by component name
- Update the doc for release-component clone ([email protected])
- Return error info When srouce release doesn't contain component
- Provide a response header field name "pdc-warning" ([email protected])
- Raise error when there are wrong inputs or wrong input format.
- Add error info when release component clone with inactive ([email protected])
- Add response info for composes/{compose_id}/rpm-mapping/{package}
- Raise error when missing some inputs ([email protected])
- Improve output when successfully import files composeinfo.json/rpm-
manifest.json/image-manifest.json ([email protected])
- Add response info for composes/{compose_id}/rpm-mapping/{package}
- Try to improve composes list performance. ([email protected])
- Allow PATCH on build-image-rtt-tests with build_nvr/format ([email protected])
- Update error info more clear ([email protected])
- Add error info when input error para ([email protected])
- Fix cmposes/{compose_id}/rpm-mapping/{package}] return error if 'action' is
invalid ([email protected])
- Rpc/release/clone-components ([email protected])
- Some improvements for stare image test results. ([email protected])
- Rpc/release/clone-components ([email protected])
- Handle ValueError in exception_handler ([email protected])
- Fix the bug that build image rtt test resluts should not allow put method.
- Move contact releated test to new file accroding to master change.
- A slightly more friendly default 404 response. ([email protected])
- Add compose image RTT tests APIs. ([email protected])
- Clean up spec file to remove client related content. ([email protected])
- Add format filter for build-image-rtt-tests and fix a bug.
- Provide new resource for storing RTT test results of brew image builds
- Make tests pass on DRFv3.3 ([email protected])
- Allow single NVR (image_id) have multiple different formats
- Change required Django version in range [1.8.1, 1.9) ([email protected])
- Drop old contact API. ([email protected])
* Wed Dec 16 2015 Cheng Yu <[email protected]> 0.3.rc-2
- Fix the bug that when role count original value is unlimited, no constraint.
* Fri Dec 04 2015 Xiangyang Chu <[email protected]> 0.3.rc-1
- Bump Version to '0.3.rc'. ([email protected])
- Remove compose/package api. ([email protected])
- Specify Accept instead of Content-Type in curl examples. ([email protected])
- Use single string field for user names. ([email protected])
- Add new endpoint API ComposeTree ([email protected])
- Create script that can create release-components from compose information
- Remove pdc_client since pdc-client repo created. ([email protected])
* Fri Sep 11 2015 Xiangyang Chu <[email protected]> 0.1.0-1
- new package built with tito
* Thu Aug 27 2015 Xiangyang Chu <[email protected]> 0.1.0-1
- Use release tagger. ([email protected])
- init spec for copr build