-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdc.spec
More file actions
332 lines (309 loc) · 15.5 KB
/
Copy pathpdc.spec
File metadata and controls
332 lines (309 loc) · 15.5 KB
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
%{!?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.2.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.1
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
* Thu Dec 15 2016 bliu <bliu@redhat.com> 1.2.0-1
- WebUI shows the groups and superusers (bliu@redhat.com)
- Remove inactive user and without group mapping to resource permission
(bliu@redhat.com)
- Revert "To fix the bug when testing PDC-1757" (bliu@redhat.com)
- To fix the bug when testing PDC-1757 (bliu@redhat.com)
- To verify the 'read' permission for all members (bliu@redhat.com)
- To list all API permissions (bliu@redhat.com)
- Add a test specifically for the new extended unique_together setting.
(rbean@redhat.com)
- Give a default value to ReleaseComponent.type in the Serializer.
(rbean@redhat.com)
- Add migration for 80397f1 (rbean@redhat.com)
- Make release components be unique by name/release/type. (rbean@redhat.com)
- Rename the colunm name for release, product version and product
(bliu@redhat.com)
- Fix apps loading in Django 1.9. (dmach@redhat.com)
- Use slug in release / product version / product URLs. (dmach@redhat.com)
- Display all/active/inactive (bliu@redhat.com)
- Display all/active/inactive and filter the datatable (bliu@redhat.com)
- Change contact APIs' response max-age to 0 (ycheng@redhat.com)
- Display all/active/inactive (bliu@redhat.com)
- Update the docs and add the ordering fields (bliu@redhat.com)
- UI for displaying resource permission (bliu@redhat.com)
- Update pdc.spec for using patternfly1 1.3.0 (bliu@redhat.com)
- Change group-resource-permissions API prompt. (ycheng@redhat.com)
- For group-resource-permissions API, add prompt when use illegal parameter.
(ycheng@redhat.com)
* Mon Aug 08 2016 Cheng Yu <ycheng@redhat.com> 1.1.0-1
- Make group resource permission work correctly in PATCH method
(ycheng@redhat.com)
- Change version in code. (chuzhang@redhat.com)
- Update the error info and looks friendly. (bliu@redhat.com)
- Update the valid fields for ordering (bliu@redhat.com)
- Support multiple dict values and empty input for /composes/{compose_id}/rpm-
mapping/ (chuzhang@redhat.com)
- Unnest group resource permissions create/update/response data.
(ycheng@redhat.com)
- Make page always locate at page header part. (chuzhang@redhat.com)
- Allowe - and , character together to ordering (bliu@redhat.com)
- Verify the ordering key and update the Release and Compose view
(bliu@redhat.com)
- Take keys into acount for ordering of all APIs (bliu@redhat.com)
- Change the wrong doc description. (chuzhang@redhat.com)
- Change doc description for compose/compose-images/compose-rpms
(chuzhang@redhat.com)
- Support regexp search in rpm name. (ycheng@redhat.com)
- Add more details to compose-images API docs. (chuzhang@redhat.com)
- Doc change for compose api to mention how compose get created
(chuzhang@redhat.com)
- Add page switch to the bottom (chuzhang@redhat.com)
- Fix bugs in cache control and add test cases. (ycheng@redhat.com)
- Implement more accurate last-modified header in some resources of PDC
(ycheng@redhat.com)
- Specify Django version less than 1.9 in spec file. (chuzhang@redhat.com)
- Add cache control headers to PDC HTTP response (ycheng@redhat.com)
- Fix bugs when inputing wrong format which will return server error
(chuzhang@redhat.com)
- Fix sync.sh problem in upstream version part. (ycheng@redhat.com)
- Add two new rules to API stability (sochotnicky@redhat.com)
- Group rpm query parameters in and operation. (chuzhang@redhat.com)
- Add unique to Compose PathType's name field. (chuzhang@redhat.com)
- Fix test failed after merge master to release branch. (ycheng@redhat.com)
- Change "ComposeTreeRTTTestVewSet" to "ComposeTreeRTTTestViewSet"
(bliu@redhat.com)
- Create new API of compose-tree-rtt-tests (bliu@redhat.com)
- Update documentation for compose rpm mapping's bulk update method and fix
tests. (ycheng@redhat.com)
- Put permission control on more resources and show correct permissions.
(ycheng@redhat.com)
- Add python-django-rest-framework-composed-permissions as a dependency.
(ycheng@redhat.com)
- Fix a bug for api auth/resource-permissions retrieve method.
(ycheng@redhat.com)
- Change the way to generate resource permissions automatically.
(ycheng@redhat.com)
- Fix a url mistake in mail content. (ycheng@redhat.com)
- Create UI to display resource permissions in auth profile.
(chuzhang@redhat.com)
- Announce big changes in PDC database (ycheng@redhat.com)
- Document how to configure when behind a reverse proxy (bliu@redhat.com)
- Fix a bug and add a flag for resource permissions. (ycheng@redhat.com)
- Update the release-groups API (bliu@redhat.com)
- Implement resource based permissions control. (ycheng@redhat.com)
- instruct curl to follow HTTP redirect (karsten@t540.str.redhat.com)
- Create release-group API (bliu@redhat.com)
- Add 'subvariant' as a query parameter in images endpoint. (ycheng@redhat.com)
* Tue May 17 2016 Cheng Yu <ycheng@redhat.com> 1.0.0-2
- Pass empty string to productmd instead of None. (chuzhang@redhat.com)
* Wed May 11 2016 Cheng Yu <ycheng@redhat.com> 1.0.0-1
- Change version in code. (ycheng@redhat.com)
- Handle release has no compose in web UI (ycheng@redhat.com)
- Get rpm-mapping when release has no compose. (ycheng@redhat.com)
- Enable query with multi values. (chuzhang@redhat.com)
- Make Release.integrated_with accept null as input. (chuzhang@redhat.com)
- Allow to clone repositories with None product_id (bliu@redhat.com)
- Remove create-plugin.py from server repo (bliu@redhat.com)
- Update the doc in Repo API (bliu@redhat.com)
- Set unique Charfield's default value to None insteadof empty string.
(chuzhang@redhat.com)
- Disable_eus/aus_repo_checks (bliu@redhat.com)
- Make all update api following rule 'Update missing optional fields are
erased'. (chuzhang@redhat.com)
- Simplify _bulk_insert_resource func in scripts/create_release_components.py
(tmlcoch@redhat.com)
- Add doc to note the user when PUT optional parameter. (chuzhang@redhat.com)
- Update tests to work with new productmd (lsedlar@redhat.com)
- Fix the bug about "Manage Overrides" on release without compose
(bliu@redhat.com)
- Publish two new message topics. (rbean@redhat.com)
- Store relative paths to variant/$arch/$content_category_name dir
(ycheng@redhat.com)
- Update the view of auth/token api (bliu@redhat.com)
- Return warning when query in boolean field with illegal value.
(ycheng@redhat.com)
- Add API stability to doc (sochotnicky@redhat.com)
- Correct a documentation's url. (ycheng@redhat.com)
- Create rpc/overridesrpm/clone (bliu@redhat.com)
- Create rpc/overrides-rpm/clone (bliu@redhat.com)
- To create rpc/overrides-rpm/clone API (bliu@redhat.com)
- To create Rpc/Overrides-rpm/clone new API. (bliu@redhat.com)
- Rewrite the get_all_permissions function (bliu@redhat.com)
- Sorte permission list with same api name (bliu@redhat.com)
- Correct the using api doc (bliu@redhat.com)
- Change compose tree location end point url. (ycheng@redhat.com)
- Initial image formats and types from productmd. (ycheng@redhat.com)
- To show Arch names on compose page which get truncated (bliu@redhat.com)
- Check compose rpm mapping parameters strictly and fix bug.
(ycheng@redhat.com)
- Visible for Arch names on compose page (bliu@redhat.com)
- Compose import images/rpms and full import APIs extra parameter not allowed.
(ycheng@redhat.com)
- Send signal when product is created or updated. (ycheng@redhat.com)
- Compose-tree-locations be unique over scheme (bliu@redhat.com)
- Update the doc in compose-tree-location (bliu@redhat.com)
- Visible for Arch names on compose page (bliu@redhat.com)
- Remove useless header informations for some APIs (bliu@redhat.com)
- Remove the client test in server repo (bliu@redhat.com)
- Sync Release and BaseProduct models with productmd. (dmach@redhat.com)
- Modify release 'short' and 'version' field validation to use regular
expressions from productmd. (dmach@redhat.com)
- Remove useless header informations for some APIs (bliu@redhat.com)
- Change corp name to the correct one. (ycheng@redhat.com)
- Avoid double-encoding the fedmsg json payload. (rbean@redhat.com)
- Strip any extra dots from the fedmsg topic. (rbean@redhat.com)
- Fix tests (lsedlar@redhat.com)
- Add subvariant field to images (lsedlar@redhat.com)
- Add set compose tree location function to compose full import
(ycheng@redhat.com)
- Indicate a compose is deleted in its detail page. (ycheng@redhat.com)
- Remove redundant changelog. (ycheng@redhat.com)
- Fix the full compose import API web page footer error. (ycheng@redhat.com)
- Display deleted compose with special style in web UI. (ycheng@redhat.com)
- Ability to import compose-rpms, compose-images at once (atomicity).
(ycheng@redhat.com)
- Allow marking composes as deleted (ycheng@redhat.com)
- Modify epochformat to work with both timestamps and datetime.
(dmach@redhat.com)
- Improve ordering releases, product versions and products. (dmach@redhat.com)
- Remove productmd hacks, deserialize data directly. (dmach@redhat.com)
* Fri Feb 26 2016 Cheng Yu <ycheng@redhat.com> 0.9.rc-3
- Change version and organization name. (ycheng@redhat.com)
- Automatic commit of package [python-pdc] minor release [0.9.rc-2].
(ycheng@redhat.com)
- Remove deprecated API /rpc/compose/import-images/ (ycheng@redhat.com)
- Remove permissions from inactive user accounts (ycheng@redhat.com)
- Remove deprecated end points under repository app. (ycheng@redhat.com)
- Change links from varianttype-list to releasevarianttype-list.
(ycheng@redhat.com)
- Update the doc for some API (bliu@redhat.com)
- Update the content-delivery-repos URL (bliu@redhat.com)
- Add 2 image formats and 1 image type. (ycheng@redhat.com)
- Rename resource variant-types to release-variant-types. (ycheng@redhat.com)
- Add more detail error info for compose-tree-locations (bliu@redhat.com)
- Allow import images work when filed 'implant_md5' is null.
(ycheng@redhat.com)
- Fix the bug when change RPM built_for_release field won't record.
(ycheng@redhat.com)
- Update the error info for compose-tree-location (bliu@redhat.com)
- Make MultiValueRegexFilter could treat empty string or wrong regexp format
(ycheng@redhat.com)
- Add error message for compose-tree-locations. (bliu@redhat.com)
- Add optional "built-for-release" field in rpms resource (ycheng@redhat.com)
- This task have been fixed and just remove unavaliable code (bliu@redhat.com)
- Add support for regexp for contact searches by component name
(ycheng@redhat.com)
- Update the doc for release-component clone (bliu@redhat.com)
- Return error info When srouce release doesn't contain component
(bliu@redhat.com)
- Provide a response header field name "pdc-warning" (ycheng@redhat.com)
- Raise error when there are wrong inputs or wrong input format.
(chuzhang@redhat.com)
- Add error info when release component clone with inactive (bliu@redhat.com)
- Add response info for composes/{compose_id}/rpm-mapping/{package}
(bliu@redhat.com)
- Raise error when missing some inputs (chuzhang@redhat.com)
- Improve output when successfully import files composeinfo.json/rpm-
manifest.json/image-manifest.json (chuzhang@redhat.com)
- Add response info for composes/{compose_id}/rpm-mapping/{package}
(bliu@redhat.com)
- Try to improve composes list performance. (ycheng@redhat.com)
- Allow PATCH on build-image-rtt-tests with build_nvr/format (bliu@redhat.com)
- Update error info more clear (bliu@redhat.com)
- Add error info when input error para (bliu@redhat.com)
- Fix cmposes/{compose_id}/rpm-mapping/{package}] return error if 'action' is
invalid (ycheng@redhat.com)
- Rpc/release/clone-components (bliu@redhat.com)
- Some improvements for stare image test results. (ycheng@redhat.com)
- Rpc/release/clone-components (bliu@redhat.com)
- Handle ValueError in exception_handler (ycheng@redhat.com)
- Fix the bug that build image rtt test resluts should not allow put method.
(ycheng@redhat.com)
- Move contact releated test to new file accroding to master change.
(ycheng@redhat.com)
- A slightly more friendly default 404 response. (rbean@redhat.com)
- Add compose image RTT tests APIs. (xchu@redhat.com)
- Clean up spec file to remove client related content. (xchu@redhat.com)
- Add format filter for build-image-rtt-tests and fix a bug.
(ycheng@redhat.com)
- Provide new resource for storing RTT test results of brew image builds
(ycheng@redhat.com)
- Make tests pass on DRFv3.3 (xchu@redhat.com)
- Allow single NVR (image_id) have multiple different formats
(ycheng@redhat.com)
- Change required Django version in range [1.8.1, 1.9) (chuzhang@redhat.com)
- Drop old contact API. (chuzhang@redhat.com)
* Wed Dec 16 2015 Cheng Yu <ycheng@redhat.com> 0.3.rc-2
- Fix the bug that when role count original value is unlimited, no constraint.
(ycheng@redhat.com)
* Fri Dec 04 2015 Xiangyang Chu <xchu@redhat.com> 0.3.rc-1
- Bump Version to '0.3.rc'. (xchu@redhat.com)
- Remove compose/package api. (xchu@redhat.com)
- Specify Accept instead of Content-Type in curl examples. (rbean@redhat.com)
- Use single string field for user names. (ycheng@redhat.com)
- Add new endpoint API ComposeTree (chuzhang@redhat.com)
- Create script that can create release-components from compose information
(ycheng@redhat.com)
- Remove pdc_client since pdc-client repo created. (xchu@redhat.com)
* Fri Sep 11 2015 Xiangyang Chu <xychu2008@gmail.com> 0.1.0-1
- new package built with tito
* Thu Aug 27 2015 Xiangyang Chu <xchu@redhat.com> 0.1.0-1
- Use release tagger. (xchu@redhat.com)
- init spec for copr build