-
Notifications
You must be signed in to change notification settings - Fork 0
/
openshift-origin-cartridge-php.spec
executable file
·223 lines (192 loc) · 8.82 KB
/
openshift-origin-cartridge-php.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
%global cartridgedir %{_libexecdir}/openshift/cartridges/v2/php
%global frameworkdir %{_libexecdir}/openshift/cartridges/v2/php
Name: openshift-origin-cartridge-php
Version: 0.3.4
Release: 1%{?dist}
Summary: Php cartridge
Group: Development/Languages
License: ASL 2.0
URL: https://www.openshift.com
Source0: http://mirror.openshift.com/pub/origin-server/source/%{name}/%{name}-%{version}.tar.gz
Requires: rubygem(openshift-origin-node)
%if 0%{?fedora}%{?rhel} <= 6
Requires: php >= 5.3.2
Requires: php < 5.4
Requires: httpd < 2.4
%endif
%if 0%{?fedora} >= 18
Requires: php >= 5.4
Requires: php < 5.5
Requires: httpd < 2.5
%endif
Requires: php
Requires: mod_bw
Requires: rubygem-builder
Requires: php-devel
Requires: php-pdo
Requires: php-gd
Requires: php-xml
Requires: php-mysql
Requires: php-pecl-mongo
Requires: php-pgsql
Requires: php-mbstring
Requires: php-pear
Requires: php-imap
Requires: php-pecl-apc
Requires: php-mcrypt
Requires: php-soap
Requires: php-bcmath
Requires: php-process
Requires: php-pecl-imagick
Requires: php-pecl-xdebug
Requires: openshift-origin-node-util
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
%description
PHP cartridge for openshift. (Cartridge Format V2)
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{cartridgedir}
mkdir -p %{buildroot}/%{_sysconfdir}/openshift/cartridges/v2
cp -r * %{buildroot}%{cartridgedir}/
%if 0%{?fedora}%{?rhel} <= 6
mv %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf-httpd-2.2/* %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf/
rm -rf %{buildroot}%{cartridgedir}/versions/5.4
mv %{buildroot}%{cartridgedir}/metadata/manifest.yml.rhel %{buildroot}%{cartridgedir}/metadata/manifest.yml
rm %{buildroot}%{cartridgedir}/metadata/manifest.yml.fedora
%endif
%if 0%{?fedora} >= 18
mv %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf-httpd-2.4/* %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf/
rm -rf %{buildroot}%{cartridgedir}/versions/5.3
mv %{buildroot}%{cartridgedir}/metadata/manifest.yml.fedora %{buildroot}%{cartridgedir}/metadata/manifest.yml
rm %{buildroot}%{cartridgedir}/metadata/manifest.yml.rhel
sed -i 's/#DefaultRuntimeDir/DefaultRuntimeDir/g' %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf.d/openshift.conf.erb
%endif
rm -rf %{buildroot}%{cartridgedir}/versions/shared/configuration/etc/conf-httpd-*
%clean
rm -rf %{buildroot}
%post
%{_sbindir}/oo-admin-cartridge --action install --offline --source /usr/libexec/openshift/cartridges/v2/php
%files
%defattr(-,root,root,-)
%dir %{cartridgedir}
%dir %{cartridgedir}/bin
%dir %{cartridgedir}/hooks
%dir %{cartridgedir}/metadata
%dir %{cartridgedir}/versions
%attr(0755,-,-) %{cartridgedir}/bin/
%attr(0755,-,-) %{cartridgedir}/hooks/
%attr(0755,-,-) %{frameworkdir}
%{cartridgedir}/metadata/manifest.yml
%doc %{cartridgedir}/README.md
%changelog
* Mon May 06 2013 Adam Miller <[email protected]> 0.3.4-1
- moving templates to usr ([email protected])
* Fri May 03 2013 Adam Miller <[email protected]> 0.3.3-1
- fix tests ([email protected])
- Special file processing ([email protected])
* Tue Apr 30 2013 Adam Miller <[email protected]> 0.3.2-1
- Merge pull request #2280 from mrunalp/dev/auto_env_vars
- Env var WIP. ([email protected])
- Merge pull request #2274 from rmillner/v2_misc_fixes
- Add /health url to php cartridges. ([email protected])
- Card 276 ([email protected])
* Thu Apr 25 2013 Adam Miller <[email protected]> 0.3.1-1
- Split v2 configure into configure/post-configure ([email protected])
- more install/post-install scripts ([email protected])
- Implement hot deployment for V2 cartridges ([email protected])
- Update outdated links in 'cartridges' directory. ([email protected])
- WIP Cartridge Refactor - Change environment variable files to contain just
value ([email protected])
- Adding V2 Format to all v2 cartridges ([email protected])
- Bug 928675 ([email protected])
- V2 documentation refactoring ([email protected])
- V2 cartridge documentation updates ([email protected])
- bump_minor_versions for sprint 2.0.26 ([email protected])
* Tue Apr 16 2013 Troy Dawson <[email protected]> 0.2.7-1
- Setting mongodb connection hooks to use the generic nosqldb name
* Mon Apr 15 2013 Adam Miller <[email protected]> 0.2.6-1
- Bug 952041 - Add support for tidy to DIY and PHP cartridges
* Sun Apr 14 2013 Krishna Raman <[email protected]> 0.2.5-1
- Fixing F18 build of PHP v2 cartridge ([email protected])
- WIP Cartridge Refactor - Move PATH to /etc/openshift/env ([email protected])
- Merge pull request #2053 from calfonso/master
- Adding connection hook for mongodb There are three leading params we don't
care about, so the hooks are using shift to discard. ([email protected])
- Action hook cleanup and documentation ([email protected])
* Wed Apr 10 2013 Adam Miller <[email protected]> 0.2.4-1
- Anchor locked_files.txt entries at the cart directory ([email protected])
- Merge pull request #1971 from mrunalp/bugs/949843 ([email protected])
- Bug 949843: Don't lock the directory to be synced. ([email protected])
* Tue Apr 09 2013 Adam Miller <[email protected]> 0.2.3-1
- Merge pull request #1962 from danmcp/master ([email protected])
- jenkins WIP ([email protected])
- Rename cideploy to geardeploy. ([email protected])
- Merge pull request #1942 from ironcladlou/dev/v2carts/vendor-changes
- Remove vendor name from installed V2 cartridge path ([email protected])
* Mon Apr 08 2013 Adam Miller <[email protected]> 0.2.2-1
- Fix Jenkins deploy cycle ([email protected])
- Merge pull request #1907 from brenton/spec_fixes1
- cleanup ([email protected])
- Fixing path to oo-admin-cartridge ([email protected])
- Add missing links. ([email protected])
- Fix how erb binary is resolved. Using util/util-scl packages instead of doing
it dynamically in code. Separating manifest into RHEL and Fedora versions
instead of using sed to set version. ([email protected])
- adding all the jenkins jobs ([email protected])
- Adding jenkins templates to carts ([email protected])
- Adding Apache 2.4 and PHP 5.4 support to PHP v2 cartridge Fix Path to erb
executable ([email protected])
* Thu Mar 28 2013 Adam Miller <[email protected]> 0.2.1-1
- bump_minor_versions for sprint 26 ([email protected])
* Wed Mar 27 2013 Adam Miller <[email protected]> 0.1.7-1
- Merge pull request #1821 from jwhonce/wip/threaddump
- WIP Cartridge Refactor - Roll out old threaddump support ([email protected])
- Merge pull request #1817 from jwhonce/wip/threaddump ([email protected])
- Merge pull request #1818 from mrunalp/dev/haproxy_wip ([email protected])
- WIP Cartridge Refactor - Add PHP support for threaddump ([email protected])
- Merge pull request #1801 from VojtechVitek/php5_standard
- HAProxy WIP. ([email protected])
- Fix health_check.php to conform PHP 5 standards ([email protected])
* Tue Mar 26 2013 Adam Miller <[email protected]> 0.1.6-1
- getting jenkins working ([email protected])
- Getting jenkins working ([email protected])
* Fri Mar 22 2013 Adam Miller <[email protected]> 0.1.5-1
- adding openshift node util ([email protected])
- implementing builder_cartridge based on cart categories ([email protected])
* Thu Mar 21 2013 Adam Miller <[email protected]> 0.1.4-1
- Merge pull request #1741 from mrunalp/dev/php_build_wip
- adding jenkins teardown ([email protected])
- PHP build wip. ([email protected])
- Merge pull request #1718 from mrunalp/bugs/php_cleanup
- Cleanup setup script and remove unused file. ([email protected])
- jenkins WIP ([email protected])
- Change V2 manifest Version elements to strings ([email protected])
- Merge pull request #1690 from danmcp/master ([email protected])
- Getting jenkins building ([email protected])
- Fix php cart to work with cart repo changes. ([email protected])
* Mon Mar 18 2013 Adam Miller <[email protected]> 0.1.3-1
- Fix issue in copying over template. ([email protected])
- add cart vendor and version ([email protected])
* Thu Mar 14 2013 Adam Miller <[email protected]> 0.1.2-1
- PHP cart manifest fixup and other cleanup. ([email protected])
* Thu Mar 14 2013 Adam Miller <[email protected]> 0.1.1-1
- Fixing tito tags on master
* Wed Mar 13 2013 Mrunal Patel <[email protected]> 0.1.1-1
- new package built with tito
* Wed Feb 13 2013 Mrunal Patel
- new package built with tito