-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenshift-origin-cartridge-python.spec
355 lines (293 loc) · 14.4 KB
/
openshift-origin-cartridge-python.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
%global cartridgedir %{_libexecdir}/openshift/cartridges/python
%global httpdconfdir /etc/openshift/cart.conf.d/httpd/python
Name: openshift-origin-cartridge-python
Version: 1.34.1
Release: 1%{?dist}
Summary: Python cartridge
Group: Development/Languages
License: ASL 2.0
URL: https://www.openshift.com
Source0: http://mirror.openshift.com/pub/openshift-origin/source/%{name}/%{name}-%{version}.tar.gz
Requires: rubygem(openshift-origin-node)
Requires: openshift-origin-node-util
%if 0%{?fedora}%{?rhel} <= 6
Requires: python >= 2.6
Requires: python < 2.7
Requires: scl-utils
BuildRequires: scl-utils-build
#FIXME: Use %scl_require macro to properly define dependencies
Requires: python27
Requires: mod_wsgi >= 3.2
Requires: mod_wsgi < 3.4
%endif
%if 0%{?fedora} >= 19
Requires: python >= 2.7
Requires: python < 2.8
Requires: mod_wsgi >= 3.4
Requires: mod_wsgi < 3.5
%endif
Requires: python-virtualenv
%if 0%{?fedora}%{?rhel} <= 6
Requires: python27-python-pip-virtualenv
Requires: python27-mod_wsgi
Requires: python33-python-virtualenv
Requires: python33-mod_wsgi
%endif
Provides: openshift-origin-cartridge-community-python-2.7 = 2.0.0
Provides: openshift-origin-cartridge-community-python-3.3 = 2.0.0
Provides: openshift-origin-cartridge-python-2.6 = 2.0.0
Obsoletes: openshift-origin-cartridge-community-python-2.7 <= 1.99.9
Obsoletes: openshift-origin-cartridge-community-python-3.3 <= 1.99.9
Obsoletes: openshift-origin-cartridge-python-2.6 <= 1.99.9
BuildArch: noarch
%description
Python cartridge for OpenShift. (Cartridge Format V2)
%prep
%setup -q
%build
%__rm %{name}.spec
%__rm logs/.gitkeep
%__rm run/.gitkeep
%install
%__mkdir -p %{buildroot}%{cartridgedir}
%__cp -r * %{buildroot}%{cartridgedir}
%__mkdir -p %{buildroot}%{httpdconfdir}
%__mkdir -p %{buildroot}%{cartridgedir}/env
%__mkdir -p %{buildroot}%{cartridgedir}/usr/versions/{2.6,2.7,3.3}
%if 0%{?fedora}%{?rhel} <= 6
%__cp -anv %{buildroot}%{cartridgedir}/usr/versions/2.7-scl/* %{buildroot}%{cartridgedir}/usr/versions/2.7/
%__cp -anv %{buildroot}%{cartridgedir}/usr/versions/3.3-scl/* %{buildroot}%{cartridgedir}/usr/versions/3.3/
%endif
%__cp -anv %{buildroot}%{cartridgedir}/usr/versions/shared/* %{buildroot}%{cartridgedir}/usr/versions/2.6/
%__cp -anv %{buildroot}%{cartridgedir}/usr/versions/shared/* %{buildroot}%{cartridgedir}/usr/versions/2.7/
%__cp -anv %{buildroot}%{cartridgedir}/usr/versions/shared/* %{buildroot}%{cartridgedir}/usr/versions/3.3/
%__rm -rf %{buildroot}%{cartridgedir}/usr/versions/shared
%__rm -rf %{buildroot}%{cartridgedir}/usr/versions/2.7-scl
%__rm -rf %{buildroot}%{cartridgedir}/usr/versions/3.3-scl
%files
%dir %{cartridgedir}
%attr(0755,-,-) %{cartridgedir}/bin/
%dir %{httpdconfdir}
%attr(0755,-,-) %{httpdconfdir}
%if 0%{?fedora}%{?rhel} <= 6
%attr(0755,-,-) %{cartridgedir}/usr/versions/2.6/bin/
%attr(0755,-,-) %{cartridgedir}/usr/versions/2.6/bin/*
%endif
%attr(0755,-,-) %{cartridgedir}/usr/versions/2.7/bin/*
%attr(0755,-,-) %{cartridgedir}/usr/versions/3.3/bin/*
%{cartridgedir}/env
%{cartridgedir}/logs
%{cartridgedir}/metadata
%{cartridgedir}/run
%{cartridgedir}/usr
%doc %{cartridgedir}/README.md
%doc %{cartridgedir}/COPYRIGHT
%doc %{cartridgedir}/LICENSE
%exclude %{cartridgedir}/usr/versions/*/template/*.pyc
%exclude %{cartridgedir}/usr/versions/*/template/*.pyo
%changelog
* Thu Sep 17 2015 Unknown name 1.34.1-1
- bump_minor_versions for sprint 103 ([email protected])
* Thu Aug 20 2015 Wesley Hearn <[email protected]> 1.33.3-1
- Bumping cartridge versions ([email protected])
* Tue Aug 11 2015 Wesley Hearn <[email protected]> 1.33.2-1
- Removed Double backslashes in variables ([email protected])
* Thu Jul 02 2015 Wesley Hearn <[email protected]> 1.33.1-1
- bump_minor_versions for 2.0.65 ([email protected])
* Wed Jul 01 2015 Wesley Hearn <[email protected]> 1.32.3-1
- Bump cartridge versions for Sprint 64 ([email protected])
* Tue Jun 30 2015 Wesley Hearn <[email protected]> 1.32.2-1
- Merge pull request #6184 from jhadvig/python33-envvar
- BZ1225291: Additional fix ([email protected])
- Incorrect self-documents link in README.md for markers and cron under
.openshift ([email protected])
- Bug 1225291 - Python-3.3 cartridge PIP wont install requirements.txt
dependencies ([email protected])
- Merge pull request #6079 from dashea/python3-template
- Encode the response to bytes before determining the length ([email protected])
* Thu Mar 19 2015 Adam Miller <[email protected]> 1.32.1-1
- bump_minor_versions for sprint 60 ([email protected])
* Wed Feb 25 2015 Adam Miller <[email protected]> 1.31.3-1
- Bump cartridge versions for Sprint 58 ([email protected])
* Fri Feb 20 2015 Adam Miller <[email protected]> 1.31.2-1
- updating links for developer resources in initial pages for cartridges
* Tue Dec 09 2014 Adam Miller <[email protected]> 1.31.1-1
- bump_minor_versions for sprint 55 ([email protected])
* Wed Dec 03 2014 Adam Miller <[email protected]> 1.30.3-1
- Cart version bump for Sprint 54 ([email protected])
* Mon Nov 24 2014 Adam Miller <[email protected]> 1.30.2-1
- Merge pull request #5949 from VojtechVitek/upgrade_scrips
- Clean up & unify upgrade scripts ([email protected])
* Tue Nov 11 2014 Adam Miller <[email protected]> 1.30.1-1
- bump_minor_versions for sprint 53 ([email protected])
- Version bump for the sprint 52 ([email protected])
* Mon Oct 20 2014 Adam Miller <[email protected]> 1.29.2-1
- Bug 1151494 - Add WSGIApplicationGroup directive to wsgi.conf
* Fri Aug 08 2014 Adam Miller <[email protected]> 1.29.1-1
- bump_minor_versions for sprint 49 ([email protected])
* Wed Jul 30 2014 Adam Miller <[email protected]> 1.28.3-1
- Merge pull request #5673 from bparees/latest_versions
- bump cart versions for sprint 48 ([email protected])
* Wed Jul 30 2014 Adam Miller <[email protected]> 1.28.2-1
- Bug 1122166 - Preserve sparse files during rsync operations
* Fri Jul 18 2014 Adam Miller <[email protected]> 1.28.1-1
- bump_minor_versions for sprint 48 ([email protected])
* Wed Jul 09 2014 Adam Miller <[email protected]> 1.27.3-1
- Bump cartridge versions for 2.0.47 ([email protected])
* Thu Jul 03 2014 Adam Miller <[email protected]> 1.27.2-1
- Bug 1114477: Incorrect pid written into appserver.pid upon python cartridge
start action ([email protected])
* Thu Jun 26 2014 Adam Miller <[email protected]> 1.27.1-1
- bump_minor_versions for sprint 47 ([email protected])
* Thu Jun 19 2014 Adam Miller <[email protected]> 1.26.2-1
- Bump cartridge versions for 2.0.46 ([email protected])
- Making apache server-status optional with a marker ([email protected])
* Thu Jun 05 2014 Adam Miller <[email protected]> 1.26.1-1
- bump_minor_versions for sprint 46 ([email protected])
* Thu May 29 2014 Adam Miller <[email protected]> 1.25.3-1
- Merge pull request #5465 from ncdc/python-3.3-pip ([email protected])
- Add pip installer to the python cartridge ([email protected])
- Bump cartridge versions ([email protected])
* Tue May 27 2014 Adam Miller <[email protected]> 1.25.2-1
- Make READMEs in template repos more obvious ([email protected])
* Fri May 16 2014 Adam Miller <[email protected]> 1.25.1-1
- bump_minor_versions for sprint 45 ([email protected])
* Fri Apr 25 2014 Adam Miller <[email protected]> 1.24.2-1
- mass bumpspec to fix tags ([email protected])
* Fri Apr 25 2014 Adam Miller <[email protected]>
- mass bumpspec to fix tags ([email protected])
* Fri Apr 25 2014 Adam Miller - 1.24.0-2
- bumpspec to mass fix tags
* Wed Apr 16 2014 Troy Dawson <[email protected]> 1.23.4-1
- Bumping cartridge versions for sprint 43 ([email protected])
* Tue Apr 15 2014 Troy Dawson <[email protected]> 1.23.3-1
- move libyaml-devel dependency into python cartridge optional dependencies
- Merge pull request #5260 from ironcladlou/cart-log-vars
- Re-introduce cartridge-scoped log environment vars ([email protected])
* Mon Apr 14 2014 Troy Dawson <[email protected]> 1.23.2-1
- Python cartridge suddenly stopped installing dependencies
* Wed Apr 09 2014 Adam Miller <[email protected]> 1.23.1-1
- Removing file listed twice warnings ([email protected])
- Use named pipes for logshifter redirection where appropriate
- Bug 1074237 - Exclude python template *.pyc and *.pyo from spec file
- Merge pull request #5168 from mfojtik/bugzilla/1084379
- Bug 1084379 - Added ensure_httpd_restart_succeed() back into ruby/phpmyadmin
- Bug 1084298 - Fixed typo in python control script ([email protected])
- Merge pull request #5157 from ironcladlou/httpd-pgroup-fix
- Force httpd into its own pgroup ([email protected])
- Check the return code before writing PID file in Python start_app()
- Fix graceful shutdown logic ([email protected])
- bump_minor_versions for sprint 43 ([email protected])
* Thu Mar 27 2014 Adam Miller <[email protected]> 1.22.5-1
- Update Cartridge Versions for Stage Cut ([email protected])
* Wed Mar 26 2014 Adam Miller <[email protected]> 1.22.4-1
- Bug 1080381 - Fixed problem with httpd based carts restart after force-stop
- Report lingering httpd procs following graceful shutdown
* Tue Mar 25 2014 Adam Miller <[email protected]> 1.22.3-1
- Port cartridges to use logshifter ([email protected])
* Fri Mar 21 2014 Adam Miller <[email protected]> 1.22.2-1
- Bug 1077591 - Add OPENSHIFT_REPO_DIR to python-path in wsgi
* Fri Mar 14 2014 Adam Miller <[email protected]> 1.22.1-1
- Bug 1073934 - Check the ERB safe-level for python openshift.conf.erb
- Removing f19 logic ([email protected])
- Updating cartridge versions ([email protected])
- bump_minor_versions for sprint 42 ([email protected])
* Wed Mar 05 2014 Adam Miller <[email protected]> 1.21.3-1
- virtualenv and mod_wsgi are required for python 2.6, 2.7 and 3.3.
* Mon Mar 03 2014 Adam Miller <[email protected]> 1.21.2-1
- Merge pull request #4862 from VojtechVitek/fix_bash_regexp
- fix bash regexp in upgrade scripts ([email protected])
- requirements.txt documentation ([email protected])
- Python - DocumentRoot logic, Repository Layout simplification
- Update python cartridge to support LD_LIBRARY_PATH_ELEMENT
- Template cleanup ([email protected])
* Thu Feb 27 2014 Adam Miller <[email protected]> 1.21.1-1
- python $OPENSHIFT_PYTHON_REQUIREMENTS_PATH ENV VAR ([email protected])
- bump_minor_versions for sprint 41 ([email protected])
* Sun Feb 16 2014 Adam Miller <[email protected]> 1.20.5-1
- httpd cartridges: OVERRIDE with custom httpd conf ([email protected])
* Wed Feb 12 2014 Adam Miller <[email protected]> 1.20.4-1
- Merge pull request #4744 from mfojtik/latest_versions
- Card origin_cartridge_111 - Updated cartridge versions for stage cut
- Merge pull request #4729 from tdawson/2014-02/tdawson/fix-obsoletes
- Merge pull request #4372 from maxamillion/admiller/no_defaulttype_apache24
- Fix obsoletes and provides ([email protected])
- This directive throws a deprecation warning in apache 2.4
* Tue Feb 11 2014 Adam Miller <[email protected]> 1.20.3-1
- Merge pull request #4712 from tdawson/2014-02/tdawson/cartridge-deps
- Bug 1063677 - Show apache running info when run "rhc cartridge status" for
python app ([email protected])
- Merge pull request #4707 from danmcp/master ([email protected])
- Cleanup cartridge dependencies ([email protected])
- Merge pull request #4559 from fabianofranz/dev/441
- Bug 888714 - Remove gitkeep files from rpms ([email protected])
- Removed references to OpenShift forums in several places
* Mon Feb 10 2014 Adam Miller <[email protected]> 1.20.2-1
- Cleaning specs ([email protected])
- Bug 1060902: Fix relative venv function during install_setup_tools
- Bug 1060295: Make setup reentrant for cp operations ([email protected])
- <httpd carts> bug 1060068: ensure extra httpd conf dirs exist
* Thu Jan 30 2014 Adam Miller <[email protected]> 1.20.1-1
- Remove community tag from Python manifests ([email protected])
- bump_minor_versions for sprint 40 ([email protected])
* Thu Jan 23 2014 Adam Miller <[email protected]> 1.19.8-1
- Bump up cartridge versions ([email protected])
* Mon Jan 20 2014 Adam Miller <[email protected]> 1.19.7-1
- <perl,python,phpmyadmin carts> bug 1055095 ([email protected])
* Fri Jan 17 2014 Adam Miller <[email protected]> 1.19.6-1
- Merge pull request #4502 from sosiouxme/custom-cart-confs
- <python cart> enable providing custom gear server confs ([email protected])
* Fri Jan 17 2014 Adam Miller <[email protected]> 1.19.5-1
- Merge pull request #4462 from bparees/cart_data_cleanup
- remove unnecessary cart-data variable descriptions ([email protected])
* Tue Jan 14 2014 Adam Miller <[email protected]> 1.19.4-1
- Merge pull request #4464 from ironcladlou/bz/1052103
- Bug 1052103: Fix template app.py for Python 3.3 ([email protected])
* Mon Jan 13 2014 Adam Miller <[email protected]> 1.19.3-1
- Merge pull request #4461 from ironcladlou/bz/1052059
- Bug 1052059: Fix Python 3.3 venv path references ([email protected])
- Bug 1051910: Fix Python 2.6 regressions ([email protected])
- Merge pull request #4444 from ironcladlou/dev/python-scl
- Fixing double-slash in python and posgresql cartridge code
- Convert Python 3.3 community cart to use SCL Python 3.3