1 |
%define _disable_ld_no_undefined 1 |
2 |
|
3 |
%define mod_name mod_php |
4 |
%define load_order 70 |
5 |
|
6 |
%define build_test 1 |
7 |
%{?_with_test: %{expand: %%global build_test 1}} |
8 |
%{?_without_test: %{expand: %%global build_test 0}} |
9 |
|
10 |
%define build_libmagic 0 |
11 |
%{?_with_libmagic: %{expand: %%global build_libmagic 1}} |
12 |
%{?_without_libmagic: %{expand: %%global build_libmagic 0}} |
13 |
|
14 |
%define _requires_exceptions BEGIN\\|mkinstalldirs\\|pear(\\|/usr/bin/tclsh |
15 |
|
16 |
%define php5_common_major 5 |
17 |
%define libname %mklibname php5_common %{php5_common_major} |
18 |
|
19 |
# enforce versioned postgresql dependencies because of multiple version |
20 |
# availability in the distribution |
21 |
%define postgresql_version %(pg_config &>/dev/null && pg_config 2>/dev/null | awk '/^VERSION/ { print $4 }'|| echo 0) |
22 |
|
23 |
%if %{mgaversion} < 3 |
24 |
%define _httpd_apxs %{_sbindir}/apxs |
25 |
%define _httpd_modconfdir %{_sysconfdir}/httpd/modules.d/ |
26 |
%define _httpd_moddir %{_libdir}/apache-extramodules |
27 |
%endif |
28 |
|
29 |
Summary: The PHP5 scripting language |
30 |
Name: php |
31 |
Version: 5.5.0 |
32 |
Release: %mkrel 0.0.RC3.1 |
33 |
Source0: http://se.php.net/distributions/php-%{version}RC3.tar.bz2 |
34 |
Group: Development/PHP |
35 |
License: PHP License |
36 |
URL: http://www.php.net |
37 |
Source1: php-test.ini |
38 |
Source2: maxlifetime |
39 |
Source3: php.crond |
40 |
Source4: php-fpm.service |
41 |
Source5: php-fpm.sysconf |
42 |
Source6: php-fpm.logrotate |
43 |
# S7 comes from ext/fileinfo/create_data_file.php but could be removed someday |
44 |
Source7: create_data_file.php |
45 |
Source9: php-fpm-tmpfiles.conf |
46 |
Patch0: php-init.diff |
47 |
Patch1: php-shared.diff |
48 |
Patch2: php-5.5.0RC3-mga_php.ini.diff |
49 |
Patch3: php-libtool.diff |
50 |
Patch4: php-phpize.diff |
51 |
Patch5: php-phpbuilddir.diff |
52 |
# http://www.outoforder.cc/projects/apache/mod_transform/ |
53 |
# http://www.outoforder.cc/projects/apache/mod_transform/patches/php5-apache2-filters.patch |
54 |
Patch6: php5-apache2-filters.diff |
55 |
# remove libedit once and for all |
56 |
Patch7: php-no_libedit.diff |
57 |
Patch8: php-xmlrpc_epi.patch |
58 |
Patch9: php-xmlrpc_no_rpath.diff |
59 |
Patch11: php-5.3.8-bdb-5.2.diff |
60 |
##################################################################### |
61 |
# Stolen from PLD |
62 |
Patch20: php-5.5.0RC3-mail.diff |
63 |
Patch21: php-filter-shared.diff |
64 |
Patch22: php-dba-link.patch |
65 |
Patch23: php-zlib-for-getimagesize.patch |
66 |
#(spuhler) taken from Mandriva |
67 |
Patch25: php-5.4.16-external_libzip.diff |
68 |
Patch26: php-5.3.9RC2-mcrypt-libs.diff |
69 |
# for kolab2 |
70 |
# P50 was rediffed from PLD (php-5.3.3-8.src.rpm) which merges the annotation and status-current patches |
71 |
Patch27: php-imap-annotation+status-current.diff |
72 |
# P51 was taken from http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/php/patches/php-5.3.2/ |
73 |
Patch28: php-imap-myrights.diff |
74 |
Patch29: php-5.3.x-fpm-0.6.5-shared.diff |
75 |
Patch30: php-5.3.x-fpm-0.6.5-mdv_conf.diff |
76 |
##################################################################### |
77 |
# stolen from debian |
78 |
Patch50: php-session.save_path.diff |
79 |
Patch51: php-exif_nesting_level.diff |
80 |
# https://bugs.php.net/bug.php?id=51247 |
81 |
Patch52: php-5.3.9RC2-fix_broken_sha-2_test.diff |
82 |
##################################################################### |
83 |
# Stolen from fedora |
84 |
# Functional changes |
85 |
Patch115: php-dlopen.diff |
86 |
# Fix bugs |
87 |
Patch120: php-tests-wddx.diff |
88 |
Patch121: php-bug43221.diff |
89 |
Patch123: php-bug43589.diff |
90 |
Patch226: php-no-fvisibility_hidden_fix.diff |
91 |
Patch227: php-5.3.0RC1-enchant_lib64_fix.diff |
92 |
Patch228: php-5.3.0RC2-xmlrpc-epi_fix.diff |
93 |
# apache-mod_php |
94 |
Patch400: php-5.4.6-apache-mod_php.diff |
95 |
BuildRequires: apache-devel >= 2.2 |
96 |
BuildRequires: autoconf |
97 |
BuildRequires: automake |
98 |
BuildRequires: libtool |
99 |
BuildRequires: bison |
100 |
BuildRequires: byacc |
101 |
BuildRequires: bzip2-devel |
102 |
BuildRequires: c-client-devel >= 2007 |
103 |
BuildRequires: curl-devel >= 7.9.8 |
104 |
BuildRequires: db-devel |
105 |
BuildRequires: elfutils-devel |
106 |
BuildRequires: enchant-devel |
107 |
BuildRequires: expat-devel |
108 |
BuildRequires: file |
109 |
BuildRequires: firebird-devel |
110 |
BuildRequires: flex |
111 |
BuildRequires: freetds-devel >= 0.63 |
112 |
BuildRequires: freetype2-devel |
113 |
BuildRequires: gdbm-devel |
114 |
BuildRequires: gd-devel >= 2.1 |
115 |
BuildRequires: gettext-devel |
116 |
BuildRequires: gmp-devel |
117 |
BuildRequires: gpm-devel |
118 |
BuildRequires: icu-devel >= 49.0 |
119 |
BuildRequires: lemon |
120 |
BuildRequires: libjpeg-devel |
121 |
BuildRequires: libldap-devel |
122 |
BuildRequires: libmcrypt-devel |
123 |
BuildRequires: libpng-devel |
124 |
BuildRequires: libsasl-devel |
125 |
BuildRequires: libtool-devel |
126 |
BuildRequires: libx11-devel |
127 |
BuildRequires: libxml2-devel >= 2.6 |
128 |
BuildRequires: libxpm-devel |
129 |
BuildRequires: libxslt-devel >= 1.1.0 |
130 |
BuildRequires: libvpx-devel |
131 |
BuildRequires: libzip-devel >= 0.10.1 |
132 |
BuildRequires: mbfl-devel >= 1.2.0-2 |
133 |
BuildRequires: ncurses-devel |
134 |
BuildRequires: net-snmp-devel |
135 |
BuildRequires: net-snmp-mibs |
136 |
BuildRequires: onig-devel >= 5.9.2 |
137 |
BuildRequires: openssl |
138 |
BuildRequires: openssl-devel |
139 |
BuildRequires: pam-devel |
140 |
BuildRequires: pcre-devel >= 6.6 |
141 |
BuildRequires: postgresql-devel |
142 |
BuildRequires: re2c >= 0.13.4 |
143 |
BuildRequires: readline-devel |
144 |
BuildRequires: recode-devel |
145 |
BuildRequires: sqlite3-devel |
146 |
BuildRequires: t1lib-devel |
147 |
BuildRequires: tidy-devel |
148 |
BuildRequires: unixODBC-devel >= 2.2.1 |
149 |
BuildRequires: xmlrpc-epi-devel |
150 |
%if %{build_libmagic} |
151 |
BuildRequires: file-devel |
152 |
%endif |
153 |
Epoch: 3 |
154 |
|
155 |
%description |
156 |
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
157 |
integration for several commercial and non-commercial database management |
158 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
159 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
160 |
|
161 |
%package ini |
162 |
Summary: INI files for PHP |
163 |
Group: Development/Other |
164 |
|
165 |
%description ini |
166 |
The php-ini package contains the ini file required for PHP. |
167 |
|
168 |
|
169 |
%package -n apache-mod_php |
170 |
Summary: The PHP5 HTML-embedded scripting language for use with apache |
171 |
Group: System/Servers |
172 |
Requires(pre): rpm-helper |
173 |
Requires(postun): rpm-helper |
174 |
Requires: apache >= 2.2 |
175 |
#TODO are theses really required ? |
176 |
Requires: php-ctype >= %{epoch}:%{version} |
177 |
Requires: php-filter >= %{epoch}:%{version} |
178 |
Requires: php-ftp >= %{epoch}:%{version} |
179 |
Requires: php-gettext >= %{epoch}:%{version} |
180 |
Requires: php-hash >= %{epoch}:%{version} |
181 |
Requires: php-ini >= %{version} |
182 |
Requires: php-json >= %{epoch}:%{version} |
183 |
Requires: php-openssl >= %{epoch}:%{version} |
184 |
Requires: php-pcre >= %{epoch}:%{version} |
185 |
Requires: php-posix >= %{epoch}:%{version} |
186 |
Requires: php-session >= %{epoch}:%{version} |
187 |
Suggests: php-suhosin >= 0.9.33 |
188 |
Requires: php-sysvsem >= %{epoch}:%{version} |
189 |
Requires: php-sysvshm >= %{epoch}:%{version} |
190 |
Requires: php-tokenizer >= %{epoch}:%{version} |
191 |
Requires: php-xmlreader >= %{epoch}:%{version} |
192 |
Requires: php-xmlwriter >= %{epoch}:%{version} |
193 |
Requires: php-zlib >= %{epoch}:%{version} |
194 |
Requires: php-xml >= %{epoch}:%{version} |
195 |
Requires: php-timezonedb >= 3:2012.3 |
196 |
# php is not fully thread safe |
197 |
# http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 |
198 |
# http://stackoverflow.com/questions/681081/is-php-thread-safe |
199 |
|
200 |
Epoch: %{epoch} |
201 |
|
202 |
%description -n apache-mod_php |
203 |
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
204 |
integration for several commercial and non-commercial database management |
205 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
206 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
207 |
|
208 |
This package contains the PHP apache module. |
209 |
|
210 |
%package cli |
211 |
Summary: PHP5 CLI interface |
212 |
Group: Development/Other |
213 |
Requires: %{libname} >= %{epoch}:%{version} |
214 |
Requires: php-ctype >= %{epoch}:%{version} |
215 |
Requires: php-filter >= %{epoch}:%{version} |
216 |
Requires: php-ftp >= %{epoch}:%{version} |
217 |
Requires: php-gettext >= %{epoch}:%{version} |
218 |
Requires: php-hash >= %{epoch}:%{version} |
219 |
Requires: php-ini >= %{version} |
220 |
Requires: php-json >= %{epoch}:%{version} |
221 |
Requires: php-openssl >= %{epoch}:%{version} |
222 |
Requires: php-pcre >= %{epoch}:%{version} |
223 |
Requires: php-posix >= %{epoch}:%{version} |
224 |
Requires: php-session >= %{epoch}:%{version} |
225 |
Suggests: php-suhosin >= 0.9.33 |
226 |
Requires: php-sysvsem >= %{epoch}:%{version} |
227 |
Requires: php-sysvshm >= %{epoch}:%{version} |
228 |
Requires: php-timezonedb >= 3:2012.3 |
229 |
Requires: php-tokenizer >= %{epoch}:%{version} |
230 |
Requires: php-xmlreader >= %{epoch}:%{version} |
231 |
Requires: php-xmlwriter >= %{epoch}:%{version} |
232 |
Requires: php-zlib >= %{epoch}:%{version} |
233 |
Requires: php-xml >= %{epoch}:%{version} |
234 |
Provides: php = %{epoch}:%{version} |
235 |
Provides: /usr/bin/php |
236 |
|
237 |
%description cli |
238 |
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
239 |
integration for several commercial and non-commercial database management |
240 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
241 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
242 |
|
243 |
This package contains a command-line (CLI) version of php. You must also |
244 |
install libphp5_common. If you need apache module support, you also need to |
245 |
install the apache-mod_php package. |
246 |
|
247 |
%package cgi |
248 |
Summary: PHP5 CGI interface |
249 |
Group: Development/Other |
250 |
Requires: %{libname} >= %{epoch}:%{version} |
251 |
Requires: php-ctype >= %{epoch}:%{version} |
252 |
Requires: php-filter >= %{epoch}:%{version} |
253 |
Requires: php-ftp >= %{epoch}:%{version} |
254 |
Requires: php-gettext >= %{epoch}:%{version} |
255 |
Requires: php-hash >= %{epoch}:%{version} |
256 |
Requires: php-ini >= %{version} |
257 |
Requires: php-json >= %{epoch}:%{version} |
258 |
Requires: php-openssl >= %{epoch}:%{version} |
259 |
Requires: php-pcre >= %{epoch}:%{version} |
260 |
Requires: php-posix >= %{epoch}:%{version} |
261 |
Requires: php-session >= %{epoch}:%{version} |
262 |
Suggests: php-suhosin >= 0.9.33 |
263 |
Requires: php-sysvsem >= %{epoch}:%{version} |
264 |
Requires: php-sysvshm >= %{epoch}:%{version} |
265 |
Requires: php-timezonedb >= 3:2012.3 |
266 |
Requires: php-tokenizer >= %{epoch}:%{version} |
267 |
Requires: php-xmlreader >= %{epoch}:%{version} |
268 |
Requires: php-xmlwriter >= %{epoch}:%{version} |
269 |
Requires: php-zlib >= %{epoch}:%{version} |
270 |
Requires: php-xml >= %{epoch}:%{version} |
271 |
Provides: php = %{epoch}:%{version} |
272 |
Provides: php-fcgi = %{epoch}:%{version}-%{release} |
273 |
Obsoletes: php-fcgi |
274 |
# because of a added compat softlink |
275 |
Conflicts: php-fcgi < %{epoch}:%{version}-%{release} |
276 |
|
277 |
%description cgi |
278 |
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
279 |
integration for several commercial and non-commercial database management |
280 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
281 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
282 |
|
283 |
This package contains a standalone (CGI) version of php with FastCGI support. |
284 |
You must also install libphp5_common. If you need apache module support, you |
285 |
also need to install the apache-mod_php package. |
286 |
|
287 |
%package -n %{libname} |
288 |
Summary: Shared library for PHP5 |
289 |
Group: Development/Other |
290 |
Provides: php-pcre = %{epoch}:%{version} |
291 |
Provides: php-simplexml = %{epoch}:%{version} |
292 |
|
293 |
%description -n %{libname} |
294 |
This package provides the common files to run with different implementations of |
295 |
PHP5. You need this package if you install the php standalone package or a |
296 |
webserver with php support (ie: apache-mod_php). |
297 |
|
298 |
%package devel |
299 |
Summary: Development package for PHP5 |
300 |
Group: Development/C |
301 |
Requires: %{libname} >= %{epoch}:%{version} |
302 |
Requires: autoconf automake libtool |
303 |
Requires: bison |
304 |
Requires: byacc |
305 |
Requires: chrpath |
306 |
Requires: dos2unix |
307 |
Requires: flex |
308 |
Requires: libxml2-devel >= 2.6 |
309 |
Requires: libxslt-devel >= 1.1.0 |
310 |
Requires: openssl >= 0.9.7 |
311 |
Requires: openssl-devel >= 0.9.7 |
312 |
Requires: pam-devel |
313 |
Requires: pcre-devel >= 6.6 |
314 |
Requires: re2c >= 0.9.11 |
315 |
Requires: tcl |
316 |
|
317 |
%description devel |
318 |
The php-devel package lets you compile dynamic extensions to PHP5. Included |
319 |
here is the source for the php extensions. Instead of recompiling the whole php |
320 |
binary to add support for, say, oracle, install this package and use the new |
321 |
self-contained extensions support. For more information, read the file |
322 |
SELF-CONTAINED-EXTENSIONS. |
323 |
|
324 |
%package openssl |
325 |
Summary: OpenSSL extension module for PHP |
326 |
Group: Development/PHP |
327 |
Requires: %{libname} >= %{epoch}:%{version} |
328 |
|
329 |
%description openssl |
330 |
This is a dynamic shared object (DSO) for PHP that will add OpenSSL support. |
331 |
|
332 |
%package zlib |
333 |
Summary: Zlib extension module for PHP |
334 |
Group: Development/PHP |
335 |
Requires: %{libname} >= %{epoch}:%{version} |
336 |
|
337 |
%description zlib |
338 |
This is a dynamic shared object (DSO) for PHP that will add zlib compression |
339 |
support to PHP. |
340 |
|
341 |
%package doc |
342 |
Summary: Documentation for PHP |
343 |
Group: Development/PHP |
344 |
BuildArch: noarch |
345 |
|
346 |
%description doc |
347 |
Documentation for php. |
348 |
|
349 |
%package bcmath |
350 |
Summary: The bcmath module for PHP |
351 |
Group: Development/PHP |
352 |
Requires: %{libname} >= %{epoch}:%{version} |
353 |
|
354 |
%description bcmath |
355 |
This is a dynamic shared object (DSO) for PHP that will add bc style precision |
356 |
math functions support. |
357 |
|
358 |
For arbitrary precision mathematics PHP offers the Binary Calculator which |
359 |
supports numbers of any size and precision, represented as strings. |
360 |
|
361 |
%package bz2 |
362 |
Summary: Bzip2 extension module for PHP |
363 |
Group: Development/PHP |
364 |
Requires: %{libname} >= %{epoch}:%{version} |
365 |
|
366 |
%description bz2 |
367 |
This is a dynamic shared object (DSO) for PHP that will add bzip2 compression |
368 |
support to PHP. |
369 |
|
370 |
The bzip2 functions are used to transparently read and write bzip2 (.bz2) |
371 |
compressed files. |
372 |
|
373 |
%package calendar |
374 |
Summary: Calendar extension module for PHP |
375 |
Group: Development/PHP |
376 |
Requires: %{libname} >= %{epoch}:%{version} |
377 |
|
378 |
%description calendar |
379 |
This is a dynamic shared object (DSO) for PHP that will add calendar support. |
380 |
|
381 |
The calendar extension presents a series of functions to simplify converting |
382 |
between different calendar formats. The intermediary or standard it is based on |
383 |
is the Julian Day Count. The Julian Day Count is a count of days starting from |
384 |
January 1st, 4713 B.C. To convert between calendar systems, you must first |
385 |
convert to Julian Day Count, then to the calendar system of your choice. Julian |
386 |
Day Count is very different from the Julian Calendar! For more information on |
387 |
Julian Day Count, visit http://www.hermetic.ch/cal_stud/jdn.htm. For more |
388 |
information on calendar systems visit |
389 |
http://www.boogle.com/info/cal-overview.html. Excerpts from this page are |
390 |
included in these instructions, and are in quotes. |
391 |
|
392 |
%package ctype |
393 |
Summary: Ctype extension module for PHP |
394 |
Group: Development/PHP |
395 |
Requires: %{libname} >= %{epoch}:%{version} |
396 |
|
397 |
%description ctype |
398 |
This is a dynamic shared object (DSO) for PHP that will add ctype support. |
399 |
|
400 |
The functions provided by this extension check whether a character or string |
401 |
falls into a certain character class according to the current locale (see also |
402 |
setlocale()). |
403 |
|
404 |
%package curl |
405 |
Summary: Curl extension module for PHP |
406 |
Group: Development/PHP |
407 |
Requires: %{libname} >= %{epoch}:%{version} |
408 |
|
409 |
%description curl |
410 |
This is a dynamic shared object (DSO) for PHP that will add curl support. |
411 |
|
412 |
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to |
413 |
connect and communicate to many different types of servers with many different |
414 |
types of protocols. libcurl currently supports the http, https, ftp, gopher, |
415 |
telnet, dict, file, and ldap protocols. libcurl also supports HTTPS |
416 |
certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with |
417 |
PHP's ftp extension), HTTP form based upload, proxies, cookies, and |
418 |
user+password authentication. |
419 |
|
420 |
%package dba |
421 |
Summary: DBA extension module for PHP |
422 |
Group: Development/PHP |
423 |
Requires: %{libname} >= %{epoch}:%{version} |
424 |
|
425 |
%description dba |
426 |
This is a dynamic shared object (DSO) for PHP that will add flat-file databases |
427 |
(DBA) support. |
428 |
|
429 |
These functions build the foundation for accessing Berkeley DB style databases. |
430 |
|
431 |
This is a general abstraction layer for several file-based databases. As such, |
432 |
functionality is limited to a common subset of features supported by modern |
433 |
databases such as Sleepycat Software's DB2. (This is not to be confused with |
434 |
IBM's DB2 software, which is supported through the ODBC functions.) |
435 |
|
436 |
%package dom |
437 |
Summary: Dom extension module for PHP |
438 |
Group: Development/PHP |
439 |
Requires: %{libname} >= %{epoch}:%{version} |
440 |
|
441 |
%description dom |
442 |
This is a dynamic shared object (DSO) for PHP that will add dom support. |
443 |
|
444 |
The DOM extension is the replacement for the DOM XML extension from PHP 4. The |
445 |
extension still contains many old functions, but they should no longer be used. |
446 |
In particular, functions that are not object-oriented should be avoided. |
447 |
|
448 |
The extension allows you to operate on an XML document with the DOM API. |
449 |
|
450 |
%package enchant |
451 |
Summary: Libenchant binder, support near all spelling tools |
452 |
Group: Development/PHP |
453 |
Requires: %{libname} >= %{epoch}:%{version} |
454 |
|
455 |
%description enchant |
456 |
Enchant is a binder for libenchant. Libenchant provides a common API for many |
457 |
spell libraries: |
458 |
|
459 |
- aspell/pspell (intended to replace ispell) |
460 |
- hspell (hebrew) |
461 |
- ispell |
462 |
- hunspell (OpenOffice project, mozilla) |
463 |
- uspell (primarily Yiddish, Hebrew, and Eastern European languages) |
464 |
A plugin system allows to add custom spell support. |
465 |
see www.abisource.com/enchant/ |
466 |
|
467 |
%package exif |
468 |
Summary: EXIF extension module for PHP |
469 |
Group: Development/PHP |
470 |
Requires: %{libname} >= %{epoch}:%{version} |
471 |
Requires: php-mbstring >= %{epoch}:%{version} |
472 |
|
473 |
%description exif |
474 |
This is a dynamic shared object (DSO) for PHP that will add EXIF tags support |
475 |
in image files. |
476 |
|
477 |
With the exif extension you are able to work with image meta data. For example, |
478 |
you may use exif functions to read meta data of pictures taken from digital |
479 |
cameras by working with information stored in the headers of the JPEG and TIFF |
480 |
images. |
481 |
|
482 |
%package fileinfo |
483 |
Summary: Fileinfo extension module for PHP |
484 |
Group: Development/PHP |
485 |
Requires: %{libname} >= %{epoch}:%{version} |
486 |
|
487 |
%description fileinfo |
488 |
This extension allows retrieval of information regarding vast majority of file. |
489 |
This information may include dimensions, quality, length etc... |
490 |
|
491 |
Additionally it can also be used to retrieve the mime type for a particular |
492 |
file and for text files proper language encoding. |
493 |
|
494 |
%package filter |
495 |
Summary: Extension for safely dealing with input parameters |
496 |
Group: Development/PHP |
497 |
Requires: %{libname} >= %{epoch}:%{version} |
498 |
|
499 |
%description filter |
500 |
The Input Filter extension is meant to address this issue by implementing a set |
501 |
of filters and mechanisms that users can use to safely access their input data. |
502 |
|
503 |
%package ftp |
504 |
Summary: FTP extension module for PHP |
505 |
Group: Development/PHP |
506 |
Requires: %{libname} >= %{epoch}:%{version} |
507 |
|
508 |
%description ftp |
509 |
This is a dynamic shared object (DSO) for PHP that will add FTP support. |
510 |
|
511 |
The functions in this extension implement client access to file servers |
512 |
speaking the File Transfer Protocol (FTP) as defined in |
513 |
http://www.faqs.org/rfcs/rfc959. This extension is meant for detailed access to |
514 |
an FTP server providing a wide range of control to the executing script. If you |
515 |
only wish to read from or write to a file on an FTP server, consider using the |
516 |
ftp:// wrapper with the filesystem functions which provide a simpler and more |
517 |
intuitive interface. |
518 |
|
519 |
%package gd |
520 |
Summary: GD extension module for PHP |
521 |
Group: Development/PHP |
522 |
Requires: %{libname} >= %{epoch}:%{version} |
523 |
Provides: php-gd-bundled = %{epoch}:%{version} |
524 |
Obsoletes: php-gd-bundled |
525 |
|
526 |
%description gd |
527 |
This is a dynamic shared object (DSO) for PHP that will add GD support, |
528 |
allowing you to create and manipulate images with PHP using the gd library. |
529 |
|
530 |
PHP is not limited to creating just HTML output. It can also be used to create |
531 |
and manipulate image files in a variety of different image formats, including |
532 |
gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image |
533 |
streams directly to a browser. You will need to compile PHP with the GD library |
534 |
of image functions for this to work. GD and PHP may also require other |
535 |
libraries, depending on which image formats you want to work with. |
536 |
|
537 |
You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF, |
538 |
TIFF and JPEG2000 images. |
539 |
|
540 |
%package gettext |
541 |
Summary: Gettext extension module for PHP |
542 |
Group: Development/PHP |
543 |
Requires: %{libname} >= %{epoch}:%{version} |
544 |
|
545 |
%description gettext |
546 |
This is a dynamic shared object (DSO) for PHP that will add gettext support. |
547 |
|
548 |
The gettext functions implement an NLS (Native Language Support) API which can |
549 |
be used to internationalize your PHP applications. Please see the gettext |
550 |
documentation for your system for a thorough explanation of these functions or |
551 |
view the docs at http://www.gnu.org/software/gettext/manual/gettext.html. |
552 |
|
553 |
%package gmp |
554 |
Summary: Gmp extension module for PHP |
555 |
Group: Development/PHP |
556 |
Requires: %{libname} >= %{epoch}:%{version} |
557 |
|
558 |
%description gmp |
559 |
This is a dynamic shared object (DSO) for PHP that will add arbitrary length |
560 |
number support using the GNU MP library. |
561 |
|
562 |
%package hash |
563 |
Summary: HASH Message Digest Framework |
564 |
Group: Development/PHP |
565 |
Requires: %{libname} >= %{epoch}:%{version} |
566 |
|
567 |
%description hash |
568 |
Native implementations of common message digest algorithms using a generic |
569 |
factory method. |
570 |
|
571 |
Message Digest (hash) engine. Allows direct or incremental processing of |
572 |
arbitrary length messages using a variety of hashing algorithms. |
573 |
|
574 |
%package iconv |
575 |
Summary: Iconv extension module for PHP |
576 |
Group: Development/PHP |
577 |
Requires: %{libname} >= %{epoch}:%{version} |
578 |
|
579 |
%description iconv |
580 |
This is a dynamic shared object (DSO) for PHP that will add iconv support. |
581 |
|
582 |
This module contains an interface to iconv character set conversion facility. |
583 |
With this module, you can turn a string represented by a local character set |
584 |
into the one represented by another character set, which may be the Unicode |
585 |
character set. Supported character sets depend on the iconv implementation of |
586 |
your system. Note that the iconv function on some systems may not work as you |
587 |
expect. In such case, it'd be a good idea to install the GNU libiconv library. |
588 |
It will most likely end up with more consistent results. |
589 |
|
590 |
%package imap |
591 |
Summary: IMAP extension module for PHP |
592 |
Group: Development/PHP |
593 |
Requires: %{libname} >= %{epoch}:%{version} |
594 |
|
595 |
%description imap |
596 |
This is a dynamic shared object (DSO) for PHP that will add IMAP support. |
597 |
|
598 |
These functions are not limited to the IMAP protocol, despite their name. The |
599 |
underlying c-client library also supports NNTP, POP3 and local mailbox access |
600 |
methods. |
601 |
|
602 |
%package interbase |
603 |
Summary: Interbase/Firebird database module for PHP |
604 |
Group: Development/PHP |
605 |
Requires: %{libname} >= %{epoch}:%{version} |
606 |
Obsoletes: php-firebird |
607 |
Provides: php-firebird = %{epoch}:%{version} |
608 |
|
609 |
%description interbase |
610 |
This is a dynamic shared object (DSO) for PHP that will add Firebird |
611 |
database support. |
612 |
|
613 |
%package intl |
614 |
Summary: Internationalization extension module for PHP |
615 |
Group: Development/PHP |
616 |
Requires: %{libname} >= %{epoch}:%{version} |
617 |
|
618 |
%description intl |
619 |
This is a dynamic shared object (DSO) for PHP that will add |
620 |
Internationalization support. |
621 |
|
622 |
Internationalization extension implements ICU library functionality in PHP. |
623 |
|
624 |
%package json |
625 |
Summary: JavaScript Object Notation |
626 |
Group: Development/PHP |
627 |
Requires: %{libname} >= %{epoch}:%{version} |
628 |
|
629 |
%description json |
630 |
Support for JSON (JavaScript Object Notation) serialization. |
631 |
|
632 |
%package ldap |
633 |
Summary: LDAP extension module for PHP |
634 |
Group: Development/PHP |
635 |
Requires: %{libname} >= %{epoch}:%{version} |
636 |
|
637 |
%description ldap |
638 |
This is a dynamic shared object (DSO) for PHP that will add LDAP support. |
639 |
|
640 |
LDAP is the Lightweight Directory Access Protocol, and is a protocol used to |
641 |
access "Directory Servers". The Directory is a special kind of database that |
642 |
holds information in a tree structure. |
643 |
|
644 |
The concept is similar to your hard disk directory structure, except that in |
645 |
this context, the root directory is "The world" and the first level |
646 |
subdirectories are "countries". Lower levels of the directory structure contain |
647 |
entries for companies, organisations or places, while yet lower still we find |
648 |
directory entries for people, and perhaps equipment or documents. |
649 |
|
650 |
%package mbstring |
651 |
Summary: MBstring extension module for PHP |
652 |
Group: Development/PHP |
653 |
Requires: %{libname} >= %{epoch}:%{version} |
654 |
|
655 |
%description mbstring |
656 |
This is a dynamic shared object (DSO) for PHP that will add multibyte string |
657 |
support. |
658 |
|
659 |
mbstring provides multibyte specific string functions that help you deal with |
660 |
multibyte encodings in PHP. In addition to that, mbstring handles character |
661 |
encoding conversion between the possible encoding pairs. mbstring is designed |
662 |
to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte |
663 |
encodings for convenience. |
664 |
|
665 |
%package mcrypt |
666 |
Summary: Mcrypt extension module for PHP |
667 |
Group: Development/PHP |
668 |
Requires: %{libname} >= %{epoch}:%{version} |
669 |
|
670 |
%description mcrypt |
671 |
This is a dynamic shared object (DSO) for PHP that will add mcrypt support. |
672 |
|
673 |
This is an interface to the mcrypt library, which supports a wide variety of |
674 |
block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, |
675 |
SAFER-SK128, TWOFISH, TEA, RC3 and GOST in CBC, OFB, CFB and ECB cipher modes. |
676 |
Additionally, it supports RC6 and IDEA which are considered "non-free". |
677 |
|
678 |
%package mssql |
679 |
Summary: MS SQL extension module for PHP |
680 |
Group: Development/PHP |
681 |
Requires: freetds >= 0.63 |
682 |
Requires: %{libname} >= %{epoch}:%{version} |
683 |
|
684 |
%description mssql |
685 |
This is a dynamic shared object (DSO) for PHP that will add MS SQL databases |
686 |
support using the FreeTDS library. |
687 |
|
688 |
%package mysql |
689 |
Summary: MySQL database module for PHP |
690 |
Group: Development/PHP |
691 |
Requires: %{libname} >= %{epoch}:%{version} |
692 |
Requires: %{name}-mysqlnd = %{epoch}:%{version} |
693 |
|
694 |
%description mysql |
695 |
This is a dynamic shared object (DSO) for PHP that will add MySQL database |
696 |
support. |
697 |
|
698 |
These functions allow you to access MySQL database servers. More information |
699 |
about MySQL can be found at http://www.mysql.com/. |
700 |
|
701 |
This extension is deprecated as of PHP 5.5.0, and is not recommended for |
702 |
writing new code as it will be removed in the future. Instead, either the |
703 |
mysqli or PDO_MySQL extension should be used. |
704 |
|
705 |
%package mysqli |
706 |
Summary: MySQL database module for PHP |
707 |
Group: Development/PHP |
708 |
Requires: %{libname} >= %{epoch}:%{version} |
709 |
Requires: %{name}-mysqlnd = %{epoch}:%{version} |
710 |
|
711 |
%description mysqli |
712 |
This is a dynamic shared object (DSO) for PHP that will add MySQL database |
713 |
support. |
714 |
|
715 |
The mysqli extension allows you to access the functionality provided by MySQL |
716 |
4.1 and above. It is an improved version of the older PHP MySQL driver, |
717 |
offering various benefits. The developers of the PHP programming language |
718 |
recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer |
719 |
(takes advantage of new functionality) |
720 |
|
721 |
More information about the MySQL Database server can be found at |
722 |
http://www.mysql.com/ |
723 |
|
724 |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
725 |
|
726 |
Documentation for MySQLi can be found at http://www.php.net/manual/en/mysqli.overview.php. |
727 |
|
728 |
%package mysqlnd |
729 |
Summary: MySQL native database module for PHP |
730 |
Group: Development/PHP |
731 |
Requires: %{libname} >= %{epoch}:%{version} |
732 |
|
733 |
%description mysqlnd |
734 |
This is a dynamic shared object (DSO) for PHP that will add MySQL native |
735 |
database support. |
736 |
|
737 |
These functions allow you to access MySQL database servers. More information |
738 |
about MySQL can be found at http://www.mysql.com/. |
739 |
|
740 |
Documentation for MySQL can be found at http://dev.mysql.com/doc/. |
741 |
|
742 |
%package odbc |
743 |
Summary: ODBC extension module for PHP |
744 |
Group: Development/PHP |
745 |
Requires: %{libname} >= %{epoch}:%{version} |
746 |
|
747 |
%description odbc |
748 |
This is a dynamic shared object (DSO) for PHP that will add ODBC support. |
749 |
|
750 |
In addition to normal ODBC support, the Unified ODBC functions in PHP allow you |
751 |
to access several databases that have borrowed the semantics of the ODBC API to |
752 |
implement their own API. Instead of maintaining multiple database drivers that |
753 |
were all nearly identical, these drivers have been unified into a single set of |
754 |
ODBC functions. |
755 |
|
756 |
%package opcache |
757 |
Summary: Zend OPcache for PHP |
758 |
Group: Development/PHP |
759 |
Requires: %{libname} >= %{epoch}:%{version} |
760 |
|
761 |
%description opcache |
762 |
This is a dynamic shared object (DSO) for PHP that will add OPcache support. |
763 |
|
764 |
The Zend OPcache provides faster PHP execution through opcode caching and |
765 |
optimization. It improves PHP performance by storing precompiled script |
766 |
bytecode in the shared memory. This eliminates the stages of reading code from |
767 |
the disk and compiling it on future access. In addition, it applies a few |
768 |
bytecode optimization patterns that make code execution faster. |
769 |
|
770 |
%package pcntl |
771 |
Summary: Process Control extension module for PHP |
772 |
Group: Development/PHP |
773 |
Requires: %{libname} >= %{epoch}:%{version} |
774 |
|
775 |
%description pcntl |
776 |
This is a dynamic shared object (DSO) for PHP that will add process spawning |
777 |
and control support. It supports functions like fork(), waitpid(), signal() |
778 |
etc. |
779 |
|
780 |
Process Control support in PHP implements the Unix style of process creation, |
781 |
program execution, signal handling and process termination. Process Control |
782 |
should not be enabled within a webserver environment and unexpected results may |
783 |
happen if any Process Control functions are used within a webserver |
784 |
environment. |
785 |
|
786 |
%package pdo |
787 |
Summary: PHP Data Objects Interface |
788 |
Group: Development/PHP |
789 |
Requires: %{libname} >= %{epoch}:%{version} |
790 |
|
791 |
%description pdo |
792 |
PDO provides a uniform data access interface, sporting advanced features such |
793 |
as prepared statements and bound parameters. PDO drivers are dynamically |
794 |
loadable and may be developed independently from the core, but still accessed |
795 |
using the same API. |
796 |
|
797 |
Read the documentation at http://www.php.net/pdo for more information. |
798 |
|
799 |
%package pdo_dblib |
800 |
Summary: Sybase Interface driver for PDO |
801 |
Group: Development/PHP |
802 |
Requires: freetds >= 0.63 |
803 |
Requires: php-pdo >= %{epoch}:%{version} |
804 |
Requires: %{libname} >= %{epoch}:%{version} |
805 |
|
806 |
%description pdo_dblib |
807 |
PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to |
808 |
enable access from PHP to Microsoft SQL Server and Sybase databases through the |
809 |
FreeTDS libary. |
810 |
|
811 |
%package pdo_firebird |
812 |
Summary: Firebird/InterBase driver for PDO |
813 |
Group: Development/PHP |
814 |
Requires: php-pdo >= %{epoch}:%{version} |
815 |
Requires: %{libname} >= %{epoch}:%{version} |
816 |
|
817 |
%description pdo_firebird |
818 |
PDO_Firebird is a driver that implements the PHP Data Objects (PDO) interface to |
819 |
enable access from PHP to Firebird databases. |
820 |
|
821 |
%package pdo_mysql |
822 |
Summary: MySQL Interface driver for PDO |
823 |
Group: Development/PHP |
824 |
Requires: php-pdo >= %{epoch}:%{version} |
825 |
Requires: %{libname} >= %{epoch}:%{version} |
826 |
Requires: %{name}-mysqlnd = %{epoch}:%{version} |
827 |
|
828 |
%description pdo_mysql |
829 |
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to |
830 |
enable access from PHP to MySQL 3.x, 4.x and 5.x databases. |
831 |
|
832 |
PDO_MYSQL will take advantage of native prepared statement support present in |
833 |
MySQL 4.1 and higher. If you're using an older version of the mysql client |
834 |
libraries, PDO will emulate them for you. |
835 |
|
836 |
Please note that this build does NOT support compression protocol because it |
837 |
is built with MySQL Native Driver (mysqlnd). |
838 |
|
839 |
%package pdo_odbc |
840 |
Summary: ODBC v3 Interface driver for PDO |
841 |
Group: Development/PHP |
842 |
Requires: php-pdo >= %{epoch}:%{version} |
843 |
Requires: %{libname} >= %{epoch}:%{version} |
844 |
|
845 |
%description pdo_odbc |
846 |
PDO_ODBC is a driver that implements the PHP Data Objects (PDO) interface to |
847 |
enable access from PHP to databases through ODBC drivers or through the IBM DB2 |
848 |
Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three |
849 |
different "flavours" of database drivers: |
850 |
|
851 |
o ibm-db2 - Supports access to IBM DB2 Universal Database, Cloudscape, and |
852 |
Apache Derby servers through the free DB2 client. ibm-db2 is not |
853 |
supported in Mageia. |
854 |
|
855 |
o unixODBC - Supports access to database servers through the unixODBC driver |
856 |
manager and the database's own ODBC drivers. |
857 |
|
858 |
o generic - Offers a compile option for ODBC driver managers that are not |
859 |
explicitly supported by PDO_ODBC. |
860 |
|
861 |
%package pdo_pgsql |
862 |
Summary: PostgreSQL interface driver for PDO |
863 |
Group: Development/PHP |
864 |
Requires: php-pdo >= %{epoch}:%{version} |
865 |
Requires: %{libname} >= %{epoch}:%{version} |
866 |
Requires: postgresql-libs >= %{postgresql_version} |
867 |
|
868 |
%description pdo_pgsql |
869 |
PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to |
870 |
enable access from PHP to PostgreSQL databases. |
871 |
|
872 |
%package pdo_sqlite |
873 |
Summary: SQLite v3 Interface driver for PDO |
874 |
Group: Development/PHP |
875 |
Requires: php-pdo >= %{epoch}:%{version} |
876 |
Requires: %{libname} >= %{epoch}:%{version} |
877 |
|
878 |
%description pdo_sqlite |
879 |
PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to |
880 |
enable access to SQLite 3 databases. |
881 |
|
882 |
This extension provides an SQLite v3 driver for PDO. SQLite V3 is NOT |
883 |
compatible with the bundled SQLite 2 in PHP 5, but is a significant step |
884 |
forwards, featuring complete utf-8 support, native support for blobs, native |
885 |
support for prepared statements with bound parameters and improved concurrency. |
886 |
|
887 |
%package pgsql |
888 |
Summary: PostgreSQL database module for PHP |
889 |
Group: Development/PHP |
890 |
Requires: %{libname} >= %{epoch}:%{version} |
891 |
Requires: postgresql-libs >= %{postgresql_version} |
892 |
|
893 |
%description pgsql |
894 |
This is a dynamic shared object (DSO) for PHP that will add PostgreSQL database |
895 |
support. |
896 |
|
897 |
PostgreSQL database is Open Source product and available without cost. |
898 |
Postgres, developed originally in the UC Berkeley Computer Science Department, |
899 |
pioneered many of the object-relational concepts now becoming available in some |
900 |
commercial databases. It provides SQL92/SQL99 language support, transactions, |
901 |
referential integrity, stored procedures and type extensibility. PostgreSQL is |
902 |
an open source descendant of this original Berkeley code. |
903 |
|
904 |
%package phar |
905 |
Summary: Allows running of complete applications out of .phar files |
906 |
Group: Development/PHP |
907 |
Requires: %{libname} >= %{epoch}:%{version} |
908 |
Requires: php-bz2 |
909 |
Requires: php-hash |
910 |
|
911 |
%description phar |
912 |
This is the extension version of PEAR's PHP_Archive package. Support for |
913 |
zlib, bz2 and crc32 is achieved without any dependency other than the external |
914 |
zlib or bz2 extension. |
915 |
|
916 |
.phar files can be read using the phar stream, or with the Phar class. If the |
917 |
SPL extension is available, a Phar object can be used as an array to iterate |
918 |
over a phar's contents or to read files directly from the phar. |
919 |
|
920 |
Phar archives can be created using the streams API or with the Phar class, if |
921 |
the phar.readonly ini variable is set to false. |
922 |
|
923 |
Full support for MD5 and SHA1 signatures is possible. Signatures can be |
924 |
required if the ini variable phar.require_hash is set to true. When PECL |
925 |
extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as |
926 |
well. |
927 |
|
928 |
%package posix |
929 |
Summary: POSIX extension module for PHP |
930 |
Group: Development/PHP |
931 |
Requires: %{libname} >= %{epoch}:%{version} |
932 |
|
933 |
%description posix |
934 |
This is a dynamic shared object (DSO) for PHP that will add POSIX functions |
935 |
support to PHP. |
936 |
|
937 |
This module contains an interface to those functions defined in the IEEE 1003.1 |
938 |
(POSIX.1) standards document which are not accessible through other means. |
939 |
POSIX.1 for example defined the open(), read(), write() and close() functions, |
940 |
too, which traditionally have been part of PHP 3 for a long time. Some more |
941 |
system specific functions have not been available before, though, and this |
942 |
module tries to remedy this by providing easy access to these functions. |
943 |
|
944 |
%package readline |
945 |
Summary: Readline extension module for PHP |
946 |
Group: Development/PHP |
947 |
Requires: %{libname} >= %{epoch}:%{version} |
948 |
|
949 |
%description readline |
950 |
This PHP module adds support for readline functions (only for cli and cgi |
951 |
SAPIs). |
952 |
|
953 |
The readline() functions implement an interface to the GNU Readline library. |
954 |
These are functions that provide editable command lines. An example being the |
955 |
way Bash allows you to use the arrow keys to insert characters or scroll |
956 |
through command history. Because of the interactive nature of this library, it |
957 |
will be of little use for writing Web applications, but may be useful when |
958 |
writing scripts used from a command line. |
959 |
|
960 |
%package recode |
961 |
Summary: Recode extension module for PHP |
962 |
Group: Development/PHP |
963 |
Requires: %{libname} >= %{epoch}:%{version} |
964 |
|
965 |
%description recode |
966 |
This is a dynamic shared object (DSO) for PHP that will add recode support |
967 |
using the recode library. |
968 |
|
969 |
This module contains an interface to the GNU Recode library. The GNU Recode |
970 |
library converts files between various coded character sets and surface |
971 |
encodings. When this cannot be achieved exactly, it may get rid of the |
972 |
offending characters or fall back on approximations. The library recognises or |
973 |
produces nearly 150 different character sets and is able to convert files |
974 |
between almost any pair. Most RFC 1345 character sets are supported. |
975 |
|
976 |
%package session |
977 |
Summary: Session extension module for PHP |
978 |
Group: Development/PHP |
979 |
Requires(pre): rpm-helper |
980 |
Requires(postun): rpm-helper |
981 |
Requires: %{libname} >= %{epoch}:%{version} |
982 |
Requires: webserver-base |
983 |
|
984 |
%description session |
985 |
This is a dynamic shared object (DSO) for PHP that will add session support. |
986 |
|
987 |
Session support in PHP consists of a way to preserve certain data across |
988 |
subsequent accesses. This enables you to build more customized applications and |
989 |
increase the appeal of your web site. |
990 |
|
991 |
A visitor accessing your web site is assigned a unique id, the so-called |
992 |
session id. This is either stored in a cookie on the user side or is propagated |
993 |
in the URL. |
994 |
|
995 |
%package shmop |
996 |
Summary: Shared Memory Operations extension module for PHP |
997 |
Group: Development/PHP |
998 |
Requires: %{libname} >= %{epoch}:%{version} |
999 |
|
1000 |
%description shmop |
1001 |
This is a dynamic shared object (DSO) for PHP that will add Shared Memory |
1002 |
Operations support. |
1003 |
|
1004 |
Shmop is an easy to use set of functions that allows PHP to read, write, create |
1005 |
and delete Unix shared memory segments. |
1006 |
|
1007 |
%package snmp |
1008 |
Summary: NET-SNMP extension module for PHP |
1009 |
Group: Development/PHP |
1010 |
Requires: net-snmp-mibs |
1011 |
Requires: %{libname} >= %{epoch}:%{version} |
1012 |
|
1013 |
%description snmp |
1014 |
This is a dynamic shared object (DSO) for PHP that will add SNMP support using |
1015 |
the NET-SNMP libraries. |
1016 |
|
1017 |
In order to use the SNMP functions you need to install the NET-SNMP package. |
1018 |
|
1019 |
%package soap |
1020 |
Summary: Soap extension module for PHP |
1021 |
Group: Development/PHP |
1022 |
Requires: %{libname} >= %{epoch}:%{version} |
1023 |
|
1024 |
%description soap |
1025 |
This is a dynamic shared object (DSO) for PHP that will add soap support. |
1026 |
|
1027 |
The SOAP extension can be used to write SOAP Servers and Clients. It supports |
1028 |
subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications. |
1029 |
|
1030 |
%package sockets |
1031 |
Summary: Sockets extension module for PHP |
1032 |
Group: Development/PHP |
1033 |
Requires: %{libname} >= %{epoch}:%{version} |
1034 |
|
1035 |
%description sockets |
1036 |
This is a dynamic shared object (DSO) for PHP that will add sockets support. |
1037 |
|
1038 |
The socket extension implements a low-level interface to the socket |
1039 |
communication functions based on the popular BSD sockets, providing the |
1040 |
possibility to act as a socket server as well as a client. |
1041 |
|
1042 |
%package sqlite3 |
1043 |
Summary: SQLite database bindings for PHP |
1044 |
Group: Development/PHP |
1045 |
Requires: php-pdo >= %{epoch}:%{version} |
1046 |
Requires: %{libname} >= %{epoch}:%{version} |
1047 |
|
1048 |
%description sqlite3 |
1049 |
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a |
1050 |
C library that implements an embeddable SQL database engine. Programs that link |
1051 |
with the SQLite library can have SQL database access without running a separate |
1052 |
RDBMS process. |
1053 |
|
1054 |
SQLite is not a client library used to connect to a big database server. SQLite |
1055 |
is the server. The SQLite library reads and writes directly to and from the |
1056 |
database files on disk. |
1057 |
|
1058 |
%package sybase_ct |
1059 |
Summary: Sybase extension module for PHP |
1060 |
Group: Development/PHP |
1061 |
Obsoletes: php-sybase |
1062 |
Provides: php-sybase = %{epoch}:%{version} |
1063 |
Requires: %{libname} >= %{epoch}:%{version} |
1064 |
|
1065 |
%description sybase_ct |
1066 |
This is a dynamic shared object (DSO) for PHP that will add Sybase support to |
1067 |
PHP. |
1068 |
|
1069 |
%package sysvmsg |
1070 |
Summary: SysV msg extension module for PHP |
1071 |
Group: Development/PHP |
1072 |
Requires: %{libname} >= %{epoch}:%{version} |
1073 |
|
1074 |
%description sysvmsg |
1075 |
This is a dynamic shared object (DSO) for PHP that will add SysV message queues |
1076 |
support. |
1077 |
|
1078 |
%package sysvsem |
1079 |
Summary: SysV sem extension module for PHP |
1080 |
Group: Development/PHP |
1081 |
Requires: %{libname} >= %{epoch}:%{version} |
1082 |
|
1083 |
%description sysvsem |
1084 |
This is a dynamic shared object (DSO) for PHP that will add SysV semaphores |
1085 |
support. |
1086 |
|
1087 |
%package sysvshm |
1088 |
Summary: SysV shm extension module for PHP |
1089 |
Group: Development/PHP |
1090 |
Requires: %{libname} >= %{epoch}:%{version} |
1091 |
|
1092 |
%description sysvshm |
1093 |
This is a dynamic shared object (DSO) for PHP that will add SysV Shared Memory |
1094 |
support. |
1095 |
|
1096 |
%package tidy |
1097 |
Summary: Tidy HTML Repairing and Parsing for PHP |
1098 |
Group: Development/PHP |
1099 |
Requires: %{libname} >= %{epoch}:%{version} |
1100 |
|
1101 |
%description tidy |
1102 |
Tidy is a binding for the Tidy HTML clean and repair utility which allows you |
1103 |
to not only clean and otherwise manipluate HTML documents, but also traverse |
1104 |
the document tree using the Zend Engine 2 OO semantics. |
1105 |
|
1106 |
%package tokenizer |
1107 |
Summary: Tokenizer extension module for PHP |
1108 |
Group: Development/PHP |
1109 |
Requires: %{libname} >= %{epoch}:%{version} |
1110 |
|
1111 |
%description tokenizer |
1112 |
This is a dynamic shared object (DSO) for PHP that will add Tokenizer support. |
1113 |
|
1114 |
The tokenizer functions provide an interface to the PHP tokenizer embedded in |
1115 |
the Zend Engine. Using these functions you may write your own PHP source |
1116 |
analyzing or modification tools without having to deal with the language |
1117 |
specification at the lexical level. |
1118 |
|
1119 |
%package xml |
1120 |
Summary: XML extension module for PHP |
1121 |
Group: Development/PHP |
1122 |
Requires: %{libname} >= %{epoch}:%{version} |
1123 |
|
1124 |
%description xml |
1125 |
This is a dynamic shared object (DSO) for PHP that will add XML support. This |
1126 |
extension lets you create XML parsers and then define handlers for different |
1127 |
XML events. |
1128 |
|
1129 |
%package xmlreader |
1130 |
Summary: Xmlreader extension module for PHP |
1131 |
Group: Development/PHP |
1132 |
Requires: php-dom |
1133 |
Requires: %{libname} >= %{epoch}:%{version} |
1134 |
|
1135 |
%description xmlreader |
1136 |
XMLReader represents a reader that provides non-cached, forward-only access to |
1137 |
XML data. It is based upon the xmlTextReader api from libxml |
1138 |
|
1139 |
%package xmlrpc |
1140 |
Summary: Xmlrpc extension module for PHP |
1141 |
Group: Development/PHP |
1142 |
Requires: %{libname} >= %{epoch}:%{version} |
1143 |
|
1144 |
%description xmlrpc |
1145 |
This is a dynamic shared object (DSO) for PHP that will add XMLRPC support. |
1146 |
|
1147 |
These functions can be used to write XML-RPC servers and clients. You can find |
1148 |
more information about XML-RPC at http://www.xmlrpc.com/, and more |
1149 |
documentation on this extension and its functions at |
1150 |
http://xmlrpc-epi.sourceforge.net/. |
1151 |
|
1152 |
%package xmlwriter |
1153 |
Summary: Provides fast, non-cached, forward-only means to write XML data |
1154 |
Group: Development/PHP |
1155 |
Requires: %{libname} >= %{epoch}:%{version} |
1156 |
|
1157 |
%description xmlwriter |
1158 |
This extension wraps the libxml xmlWriter API. Represents a writer that |
1159 |
provides a non-cached, forward-only means of generating streams or files |
1160 |
containing XML data. |
1161 |
|
1162 |
%package xsl |
1163 |
Summary: Xsl extension module for PHP |
1164 |
Group: Development/PHP |
1165 |
Requires: %{libname} >= %{epoch}:%{version} |
1166 |
|
1167 |
%description xsl |
1168 |
This is a dynamic shared object (DSO) for PHP that will add xsl support. |
1169 |
|
1170 |
The XSL extension implements the XSL standard, performing XSLT transformations |
1171 |
using the libxslt library |
1172 |
|
1173 |
%package wddx |
1174 |
Summary: WDDX serialization functions |
1175 |
Group: Development/PHP |
1176 |
Requires: php-xml |
1177 |
Requires: %{libname} >= %{epoch}:%{version} |
1178 |
|
1179 |
%description wddx |
1180 |
This is a dynamic shared object (DSO) that adds wddx support to PHP. |
1181 |
|
1182 |
These functions are intended for work with WDDX (http://www.openwddx.org/) |
1183 |
|
1184 |
%package zip |
1185 |
Summary: A zip management extension for PHP |
1186 |
Group: Development/PHP |
1187 |
|
1188 |
%description zip |
1189 |
This is a dynamic shared object (DSO) for PHP that will add zip support to |
1190 |
create and read zip files using the libzip library. |
1191 |
|
1192 |
%package fpm |
1193 |
Summary: PHP5 FastCGI Process Manager |
1194 |
Group: Development/Other |
1195 |
Requires(post): systemd >= %{systemd_required_version} |
1196 |
Requires(post): rpm-helper |
1197 |
Requires(preun): rpm-helper |
1198 |
Requires(pre): rpm-helper |
1199 |
Requires(postun): rpm-helper |
1200 |
Requires: %{libname} >= %{epoch}:%{version} |
1201 |
Requires: php-ctype >= %{epoch}:%{version} |
1202 |
Requires: php-filter >= %{epoch}:%{version} |
1203 |
Requires: php-ftp >= %{epoch}:%{version} |
1204 |
Requires: php-gettext >= %{epoch}:%{version} |
1205 |
Requires: php-hash >= %{epoch}:%{version} |
1206 |
Requires: php-ini >= %{version} |
1207 |
Requires: php-json >= %{epoch}:%{version} |
1208 |
Requires: php-openssl >= %{epoch}:%{version} |
1209 |
Requires: php-pcre >= %{epoch}:%{version} |
1210 |
Requires: php-posix >= %{epoch}:%{version} |
1211 |
Requires: php-session >= %{epoch}:%{version} |
1212 |
Suggests: php-suhosin >= 0.9.33 |
1213 |
Requires: php-sysvsem >= %{epoch}:%{version} |
1214 |
Requires: php-sysvshm >= %{epoch}:%{version} |
1215 |
Requires: php-timezonedb >= 3:2012.3 |
1216 |
Requires: php-tokenizer >= %{epoch}:%{version} |
1217 |
Requires: php-xmlreader >= %{epoch}:%{version} |
1218 |
Requires: php-xmlwriter >= %{epoch}:%{version} |
1219 |
Requires: php-zlib >= %{epoch}:%{version} |
1220 |
Requires: php-xml >= %{epoch}:%{version} |
1221 |
Requires: webserver-base |
1222 |
Provides: php = %{epoch}:%{version} |
1223 |
|
1224 |
%description fpm |
1225 |
PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in database |
1226 |
integration for several commercial and non-commercial database management |
1227 |
systems, so writing a database-enabled script with PHP5 is fairly simple. The |
1228 |
most common use of PHP5 coding is probably as a replacement for CGI scripts. |
1229 |
|
1230 |
This package contains the FastCGI Process Manager. You must also install |
1231 |
libphp5_common. |
1232 |
|
1233 |
%prep |
1234 |
|
1235 |
%setup -q -n php-%{version}RC3 |
1236 |
|
1237 |
# the ".droplet" suffix is here to nuke the backups later..., we don't want those in php-devel |
1238 |
|
1239 |
%patch0 -p0 -b .init.droplet |
1240 |
%patch1 -p1 -b .shared.droplet |
1241 |
%patch2 -p0 -b .mga_php.ini.droplet |
1242 |
%patch3 -p0 -b .libtool.droplet |
1243 |
%patch4 -p1 -b .phpize.droplet |
1244 |
%patch5 -p1 -b .phpbuilddir.droplet |
1245 |
%patch6 -p1 -b .apache2-filters.droplet |
1246 |
%patch7 -p1 -b .no_libedit.droplet |
1247 |
%patch8 -p0 -b .xmlrpc_epi_header |
1248 |
%patch9 -p0 -b .xmlrpc_no_rpath.droplet |
1249 |
%patch11 -p0 -b .bdb-5.2.droplet |
1250 |
|
1251 |
##################################################################### |
1252 |
# Stolen from PLD |
1253 |
%patch20 -p1 -b .mail.droplet |
1254 |
%patch21 -p0 -b .filter-shared.droplet |
1255 |
%patch22 -p0 -b .dba-link.droplet |
1256 |
%patch23 -p0 -b .zlib-for-getimagesize.droplet |
1257 |
%patch25 -p1 -b .external_libzip.droplet |
1258 |
%patch26 -p0 -b .mcrypt-libs.droplet |
1259 |
# for kolab2 |
1260 |
%patch27 -p1 -b .imap-annotation.droplet |
1261 |
%patch28 -p1 -b .imap-myrights.droplet |
1262 |
# fpm stuff |
1263 |
%patch29 -p1 -b .shared-fpm.droplet |
1264 |
%patch30 -p1 -b .fpmmdv.droplet |
1265 |
|
1266 |
##################################################################### |
1267 |
# stolen from debian |
1268 |
%patch50 -p1 -b .session.save_path.droplet |
1269 |
%patch51 -p0 -b .exif_nesting_level.droplet |
1270 |
%patch52 -p0 -b .fix_broken_sha-2_test.droplet |
1271 |
|
1272 |
##################################################################### |
1273 |
# Stolen from fedora |
1274 |
%patch115 -p0 -b .dlopen.droplet |
1275 |
|
1276 |
# upstream fixes |
1277 |
%patch120 -p1 -b .tests-wddx.droplet |
1278 |
%patch121 -p0 -b .bug43221.droplet |
1279 |
%patch123 -p0 -b .bug43589.droplet |
1280 |
%patch226 -p0 -b .no-fvisibility_hidden.droplet |
1281 |
%patch227 -p0 -b .enchant_lib64_fix.droplet |
1282 |
%patch228 -p0 -b .xmlrpc-epi_fix.droplet |
1283 |
|
1284 |
# mod_php |
1285 |
%patch400 -p1 |
1286 |
mv sapi/apache2handler/mod_php5.c sapi/apache2handler/mod_php.c |
1287 |
|
1288 |
cp %{SOURCE1} php-test.ini |
1289 |
cp %{SOURCE4} php-fpm.service |
1290 |
cp %{SOURCE5} php-fpm.sysconf |
1291 |
cp %{SOURCE6} php-fpm.logrotate |
1292 |
cp %{SOURCE7} create_data_file.php |
1293 |
|
1294 |
# nuke bogus checks becuase i fixed this years ago in our recode package |
1295 |
rm -f ext/recode/config9.m4 |
1296 |
|
1297 |
# Change perms otherwise rpm would get fooled while finding requires |
1298 |
find -name "*.inc" | xargs chmod 644 |
1299 |
find -name "*.php*" | xargs chmod 644 |
1300 |
find -name "*README*" | xargs chmod 644 |
1301 |
|
1302 |
mkdir -p php-devel/extensions |
1303 |
mkdir -p php-devel/sapi |
1304 |
|
1305 |
# Install test files in php-devel |
1306 |
cp -a tests php-devel |
1307 |
|
1308 |
cp -dpR ext/* php-devel/extensions/ |
1309 |
rm -f php-devel/extensions/informix/stub.c |
1310 |
rm -f php-devel/extensions/standard/.deps |
1311 |
rm -f php-devel/extensions/skeleton/EXPERIMENTAL |
1312 |
|
1313 |
# SAPI |
1314 |
cp -dpR sapi/* php-devel/sapi/ |
1315 |
rm -f php-devel/sapi/thttpd/stub.c |
1316 |
rm -f php-devel/sapi/cgi/php.sym |
1317 |
rm -f php-devel/sapi/fastcgi/php.sym |
1318 |
rm -f php-devel/sapi/pi3web/php.sym |
1319 |
|
1320 |
# cleanup |
1321 |
find php-devel -name "*.droplet" | xargs rm -f |
1322 |
|
1323 |
# don't ship MS Windows source |
1324 |
rm -rf php-devel/extensions/com_dotnet |
1325 |
|
1326 |
# likewise with these: |
1327 |
find php-devel -name "*.dsp" | xargs rm -f |
1328 |
find php-devel -name "*.mak" | xargs rm -f |
1329 |
find php-devel -name "*.w32" | xargs rm |
1330 |
|
1331 |
# make sure using system libs |
1332 |
rm -rf ext/pcre/pcrelib |
1333 |
rm -rf ext/pdo_sqlite/sqlite |
1334 |
rm -rf ext/xmlrpc/libxmlrpc |
1335 |
|
1336 |
%build |
1337 |
%serverbuild |
1338 |
|
1339 |
export CFLAGS="${CFLAGS} -fno-strict-aliasing" |
1340 |
export LDFLAGS="%{ldflags}" |
1341 |
|
1342 |
cat > php-devel/buildext <<EOF |
1343 |
#!/bin/bash |
1344 |
gcc -Wall -fPIC -shared $CFLAGS \\ |
1345 |
-I. \`%{_bindir}/php-config --includes\` \\ |
1346 |
-I%{_includedir}/libxml2 \\ |
1347 |
-I%{_includedir}/freetype \\ |
1348 |
-I%{_includedir}/openssl \\ |
1349 |
-I%{_usrsrc}/php-devel/ext \\ |
1350 |
-I%{_includedir}/\$1 \\ |
1351 |
\$4 \$2 -o \$1.so \$3 -lc |
1352 |
EOF |
1353 |
|
1354 |
chmod 755 php-devel/buildext |
1355 |
|
1356 |
#export PHP_AUTOCONF=autoconf-2.13 |
1357 |
rm -f configure |
1358 |
rm -rf autom4te.cache |
1359 |
./buildconf --force |
1360 |
|
1361 |
# Do this patch with a perl hack... |
1362 |
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh |
1363 |
|
1364 |
export oldstyleextdir=yes |
1365 |
export EXTENSION_DIR="%{_libdir}/php/extensions" |
1366 |
export PROG_SENDMAIL="%{_sbindir}/sendmail" |
1367 |
export GD_SHARED_LIBADD="$GD_SHARED_LIBADD -lm" |
1368 |
|
1369 |
# never use "--disable-rpath", it does the opposite |
1370 |
|
1371 |
# Configure php5 |
1372 |
for i in fpm cgi cli apxs; do |
1373 |
./configure \ |
1374 |
`[ $i = fpm ] && echo --disable-cli --enable-fpm --with-libxml-dir=%{_prefix} --with-fpm-user=apache --with-fpm-group=apache` \ |
1375 |
`[ $i = cgi ] && echo --disable-cli` \ |
1376 |
`[ $i = cli ] && echo --disable-cgi --enable-cli` \ |
1377 |
`[ $i = apxs ] && echo --with-apxs2=%{_httpd_apxs}` \ |
1378 |
--build=%{_build} \ |
1379 |
--prefix=%{_prefix} \ |
1380 |
--exec-prefix=%{_prefix} \ |
1381 |
--bindir=%{_bindir} \ |
1382 |
--sbindir=%{_sbindir} \ |
1383 |
--sysconfdir=%{_sysconfdir} \ |
1384 |
--datadir=%{_datadir} \ |
1385 |
--includedir=%{_includedir} \ |
1386 |
--libdir=%{_libdir} \ |
1387 |
--libexecdir=%{_libexecdir} \ |
1388 |
--localstatedir=/var/lib \ |
1389 |
--mandir=%{_mandir} \ |
1390 |
--enable-shared=yes \ |
1391 |
--enable-static=no \ |
1392 |
--with-libdir=%{_lib} \ |
1393 |
--with-config-file-path=%{_sysconfdir} \ |
1394 |
--with-config-file-scan-dir=%{_sysconfdir}/php.d \ |
1395 |
--disable-debug \ |
1396 |
--enable-inline-optimization \ |
1397 |
--with-regex=system \ |
1398 |
--with-pcre-regex=%{_prefix} \ |
1399 |
--with-freetype-dir=%{_prefix} --with-zlib=%{_prefix} \ |
1400 |
--with-png-dir=%{_prefix} \ |
1401 |
--with-pdo-odbc=unixODBC \ |
1402 |
--with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \ |
1403 |
--with-openssl=shared,%{_prefix} \ |
1404 |
--enable-libxml=%{_prefix} --with-libxml-dir=%{_prefix} \ |
1405 |
--enable-mod_charset \ |
1406 |
--without-pear \ |
1407 |
--enable-bcmath=shared \ |
1408 |
--with-bz2=shared,%{_prefix} \ |
1409 |
--enable-calendar=shared \ |
1410 |
--enable-ctype=shared \ |
1411 |
--with-curl=shared,%{_prefix} --without-curlwrappers \ |
1412 |
--enable-dba=shared --with-gdbm --with-db4 --with-cdb \ |
1413 |
--enable-dom=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1414 |
--with-enchant=shared,%{_prefix} \ |
1415 |
--enable-exif=shared \ |
1416 |
--enable-fileinfo=shared \ |
1417 |
--enable-filter=shared --with-pcre-dir=%{_prefix} \ |
1418 |
--enable-intl=shared --with-icu-dir=%{_prefix} \ |
1419 |
--enable-json=shared \ |
1420 |
--with-openssl-dir=%{_prefix} --enable-ftp=shared \ |
1421 |
--with-gd=shared,%{_prefix} --with-jpeg-dir=%{_prefix} --with-vpx-dir=%{_prefix} --with-png-dir=%{_prefix} --with-zlib-dir=%{_prefix} --with-xpm-dir=%{_prefix}/X11R6 --with-freetype-dir=%{_prefix} --enable-gd-native-ttf --with-t1lib=%{_prefix} \ |
1422 |
--with-gettext=shared,%{_prefix} \ |
1423 |
--with-gmp=shared,%{_prefix} \ |
1424 |
--enable-hash=shared,%{_prefix} \ |
1425 |
--with-iconv=shared \ |
1426 |
--with-imap=shared,%{_prefix} --with-imap-ssl=%{_prefix} \ |
1427 |
--with-ldap=shared,%{_prefix} --with-ldap-sasl=%{_prefix} \ |
1428 |
--enable-mbstring=shared,%{_prefix} --enable-mbregex --with-libmbfl=%{_prefix} --with-onig=%{_prefix} \ |
1429 |
--with-mcrypt=shared,%{_prefix} \ |
1430 |
--with-mssql=shared,%{_prefix} \ |
1431 |
--with-mysql=shared,mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-zlib-dir=%{_prefix} \ |
1432 |
--with-mysqli=shared,mysqlnd \ |
1433 |
--enable-mysqlnd=shared,%{_prefix} \ |
1434 |
--with-unixODBC=shared,%{_prefix} \ |
1435 |
--enable-opcache=shared \ |
1436 |
--enable-pcntl=shared \ |
1437 |
--enable-pdo=shared,%{_prefix} --with-pdo-dblib=shared,%{_prefix} --with-pdo-mysql=shared,mysqlnd --with-pdo-odbc=shared,unixODBC,%{_prefix} --with-pdo-pgsql=shared,%{_prefix} --with-pdo-sqlite=shared,%{_prefix} \ |
1438 |
--with-pgsql=shared,%{_prefix} \ |
1439 |
--enable-phar=shared \ |
1440 |
--enable-posix=shared \ |
1441 |
--with-readline=shared,%{_prefix} \ |
1442 |
--with-recode=shared,%{_prefix} \ |
1443 |
--enable-session=shared,%{_prefix} \ |
1444 |
--enable-shmop=shared,%{_prefix} \ |
1445 |
--enable-simplexml \ |
1446 |
--with-snmp=shared,%{_prefix} \ |
1447 |
--enable-soap=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1448 |
--enable-sockets=shared,%{_prefix} \ |
1449 |
--with-sqlite3=shared,%{_prefix} \ |
1450 |
--with-sybase-ct=shared,%{_prefix} \ |
1451 |
--enable-sysvmsg=shared,%{_prefix} \ |
1452 |
--enable-sysvsem=shared,%{_prefix} \ |
1453 |
--enable-sysvshm=shared,%{_prefix} \ |
1454 |
--with-tidy=shared,%{_prefix} \ |
1455 |
--enable-tokenizer=shared,%{_prefix} \ |
1456 |
--enable-xml=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1457 |
--enable-xmlreader=shared,%{_prefix} \ |
1458 |
--with-xmlrpc=shared,%{_prefix} \ |
1459 |
--enable-xmlwriter=shared,%{_prefix} \ |
1460 |
--with-xsl=shared,%{_prefix} \ |
1461 |
--enable-wddx=shared --with-libxml-dir=%{_prefix} \ |
1462 |
--enable-zip=shared --with-libzip=%{_prefix} \ |
1463 |
--with-interbase=shared,%{_libdir}/firebird --with-pdo-firebird=shared,%{_libdir}/firebird |
1464 |
|
1465 |
cp -f Makefile Makefile.$i |
1466 |
|
1467 |
# left for debugging purposes |
1468 |
cp -f main/php_config.h php_config.h.$i |
1469 |
|
1470 |
# when all else failed... |
1471 |
perl -pi -e "s|-prefer-non-pic -static||g" Makefile.$i |
1472 |
|
1473 |
done |
1474 |
|
1475 |
%make |
1476 |
|
1477 |
%if %{build_libmagic} |
1478 |
# keep in sync with latest system magic, the next best thing when system libmagic can't be used... |
1479 |
sapi/cli/php create_data_file.php %{_datadir}/misc/magic.mgc > ext/fileinfo/data_file.c |
1480 |
rm -rf ext/fileinfo/.libs ext/fileinfo/*.lo ext/fileinfo/*.la modules/fileinfo.so modules/fileinfo.la |
1481 |
cp -p ext/fileinfo/data_file.c php-devel/extensions/fileinfo/data_file.c |
1482 |
%make |
1483 |
%endif |
1484 |
|
1485 |
# make php-cgi |
1486 |
cp -af php_config.h.cgi main/php_config.h |
1487 |
make -f Makefile.cgi sapi/cgi/php-cgi |
1488 |
cp -af php_config.h.apxs main/php_config.h |
1489 |
|
1490 |
# make php-fpm |
1491 |
cp -af php_config.h.fpm main/php_config.h |
1492 |
make -f Makefile.fpm sapi/fpm/php-fpm |
1493 |
cp -af php_config.h.apxs main/php_config.h |
1494 |
|
1495 |
%install |
1496 |
|
1497 |
install -d %{buildroot}%{_libdir} |
1498 |
install -d %{buildroot}%{_bindir} |
1499 |
install -d %{buildroot}%{_sysconfdir}/php.d |
1500 |
install -d %{buildroot}%{_libdir}/php/extensions |
1501 |
install -d %{buildroot}%{_usrsrc}/php-devel |
1502 |
install -d %{buildroot}%{_mandir}/man1 |
1503 |
install -d %{buildroot}%{_sysconfdir}/cron.d |
1504 |
install -d %{buildroot}/var/lib/php |
1505 |
install -d %{buildroot}%{_datadir}/php |
1506 |
|
1507 |
make -f Makefile.apxs install \ |
1508 |
INSTALL_ROOT=%{buildroot} \ |
1509 |
INSTALL_IT="\$(LIBTOOL) --mode=install install libphp5_common.la %{buildroot}%{_libdir}/" |
1510 |
|
1511 |
# borked autopoo |
1512 |
rm -f %{buildroot}%{_bindir}/php %{buildroot}%{_bindir}/php-cgi |
1513 |
./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php |
1514 |
./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi |
1515 |
|
1516 |
# compat php-fcgi symink |
1517 |
ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi |
1518 |
|
1519 |
cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/ |
1520 |
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/ |
1521 |
install -m0644 main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/ |
1522 |
|
1523 |
install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/ |
1524 |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
1525 |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
1526 |
|
1527 |
# fpm |
1528 |
install -d %{buildroot}%{_unitdir} |
1529 |
install -d %{buildroot}%{_sysconfdir}/logrotate.d |
1530 |
install -d %{buildroot}%{_sysconfdir}/sysconfig |
1531 |
install -d %{buildroot}%{_sysconfdir}/php-fpm.d |
1532 |
install -d %{buildroot}%{_sbindir} |
1533 |
install -d %{buildroot}%{_mandir}/man8 |
1534 |
install -d %{buildroot}/var/lib/php-fpm |
1535 |
install -d %{buildroot}/var/log/php-fpm |
1536 |
install -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/php-fpm.conf |
1537 |
# a small bug here... |
1538 |
echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf |
1539 |
|
1540 |
./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm |
1541 |
install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/ |
1542 |
install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/ |
1543 |
install -m0644 php-fpm.service %{buildroot}%{_unitdir}/php-fpm.service |
1544 |
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm |
1545 |
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm |
1546 |
|
1547 |
ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext |
1548 |
|
1549 |
install -d %{buildroot}%{_httpd_moddir} |
1550 |
install -d %{buildroot}%{_httpd_modconfdir} |
1551 |
|
1552 |
install -m0755 .libs/libphp5.so %{buildroot}%{_httpd_moddir}/%{mod_name}.so |
1553 |
|
1554 |
cat > %{buildroot}%{_httpd_modconfdir}/%{load_order}_%{mod_name}.conf <<EOF |
1555 |
%if %{mgaversion} < 3 |
1556 |
LoadModule php_module extramodules/%{mod_name}.so |
1557 |
%endif |
1558 |
%if %{mgaversion} >= 3 |
1559 |
LoadModule php_module modules/%{mod_name}.so |
1560 |
%endif |
1561 |
|
1562 |
AddType application/x-httpd-php .php |
1563 |
AddType application/x-httpd-php .phtml |
1564 |
AddType application/x-httpd-php-source .phps |
1565 |
|
1566 |
DirectoryIndex index.php index.phtml |
1567 |
EOF |
1568 |
|
1569 |
# rpm filetrigger to reload httpd when installing/removing php extensions |
1570 |
install -d -m 755 %{buildroot}%{_localstatedir}/lib/rpm/filetriggers |
1571 |
cat > %{buildroot}%{_localstatedir}/lib/rpm/filetriggers/httpd-php.filter << EOF |
1572 |
^.%{_libdir}/php/extensions/.*\.so$ |
1573 |
EOF |
1574 |
cat > %{buildroot}%{_localstatedir}/lib/rpm/filetriggers/httpd-php.script << EOF |
1575 |
#!/bin/sh |
1576 |
service httpd reload 2>/dev/null || : |
1577 |
EOF |
1578 |
|
1579 |
# extensions |
1580 |
echo "extension = openssl.so" > %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini |
1581 |
echo "extension = zlib.so" > %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini |
1582 |
echo "extension = bcmath.so" > %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini |
1583 |
echo "extension = bz2.so" > %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini |
1584 |
echo "extension = calendar.so" > %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini |
1585 |
echo "extension = ctype.so" > %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini |
1586 |
echo "extension = curl.so" > %{buildroot}%{_sysconfdir}/php.d/13_curl.ini |
1587 |
echo "extension = dba.so" > %{buildroot}%{_sysconfdir}/php.d/14_dba.ini |
1588 |
echo "extension = dom.so" > %{buildroot}%{_sysconfdir}/php.d/18_dom.ini |
1589 |
echo "extension = exif.so" > %{buildroot}%{_sysconfdir}/php.d/19_exif.ini |
1590 |
echo "extension = filter.so" > %{buildroot}%{_sysconfdir}/php.d/81_filter.ini |
1591 |
echo "extension = ftp.so" > %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini |
1592 |
echo "extension = gd.so" > %{buildroot}%{_sysconfdir}/php.d/23_gd.ini |
1593 |
echo "extension = gettext.so" > %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini |
1594 |
echo "extension = gmp.so" > %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini |
1595 |
echo "extension = hash.so" > %{buildroot}%{_sysconfdir}/php.d/54_hash.ini |
1596 |
echo "extension = iconv.so" > %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini |
1597 |
echo "extension = imap.so" > %{buildroot}%{_sysconfdir}/php.d/27_imap.ini |
1598 |
echo "extension = intl.so" > %{buildroot}%{_sysconfdir}/php.d/27_intl.ini |
1599 |
echo "extension = ldap.so" > %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini |
1600 |
echo "extension = mbstring.so" > %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini |
1601 |
echo "extension = mcrypt.so" > %{buildroot}%{_sysconfdir}/php.d/30_mcrypt.ini |
1602 |
echo "extension = fileinfo.so" > %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini |
1603 |
echo "extension = mysqlnd.so" > %{buildroot}%{_sysconfdir}/php.d/33_mysqlnd.ini |
1604 |
echo "extension = mssql.so" > %{buildroot}%{_sysconfdir}/php.d/35_mssql.ini |
1605 |
echo "extension = mysql.so" > %{buildroot}%{_sysconfdir}/php.d/36_mysql.ini |
1606 |
echo "extension = mysqli.so" > %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini |
1607 |
echo "extension = enchant.so" > %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini |
1608 |
echo "extension = odbc.so" > %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini |
1609 |
echo "extension = pcntl.so" > %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini |
1610 |
echo "extension = interbase.so" > %{buildroot}%{_sysconfdir}/php.d/42_interbase.ini |
1611 |
echo "extension = pdo.so" > %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini |
1612 |
echo "extension = pdo_dblib.so" > %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini |
1613 |
echo "extension = pdo_mysql.so" > %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini |
1614 |
echo "extension = pdo_odbc.so" > %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini |
1615 |
echo "extension = pdo_pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini |
1616 |
echo "extension = pdo_sqlite.so" > %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini |
1617 |
echo "extension = pdo_firebird.so" > %{buildroot}%{_sysconfdir}/php.d/78_pdo_firebird.ini |
1618 |
echo "extension = pgsql.so" > %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini |
1619 |
echo "extension = posix.so" > %{buildroot}%{_sysconfdir}/php.d/43_posix.ini |
1620 |
echo "extension = readline.so" > %{buildroot}%{_sysconfdir}/php.d/45_readline.ini |
1621 |
echo "extension = recode.so" > %{buildroot}%{_sysconfdir}/php.d/46_recode.ini |
1622 |
echo "extension = session.so" > %{buildroot}%{_sysconfdir}/php.d/47_session.ini |
1623 |
echo "extension = shmop.so" > %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini |
1624 |
echo "extension = snmp.so" > %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini |
1625 |
echo "extension = soap.so" > %{buildroot}%{_sysconfdir}/php.d/51_soap.ini |
1626 |
echo "extension = sockets.so" > %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini |
1627 |
echo "extension = sqlite3.so" > %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini |
1628 |
echo "extension = sybase_ct.so" > %{buildroot}%{_sysconfdir}/php.d/46_sybase_ct.ini |
1629 |
echo "extension = sysvmsg.so" > %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini |
1630 |
echo "extension = sysvsem.so" > %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini |
1631 |
echo "extension = sysvshm.so" > %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini |
1632 |
echo "extension = tidy.so" > %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini |
1633 |
echo "extension = tokenizer.so" > %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini |
1634 |
echo "extension = xml.so" > %{buildroot}%{_sysconfdir}/php.d/62_xml.ini |
1635 |
echo "extension = xmlreader.so" > %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini |
1636 |
echo "extension = xmlrpc.so" > %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini |
1637 |
echo "extension = xmlwriter.so" > %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini |
1638 |
echo "extension = xsl.so" > %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini |
1639 |
echo "extension = wddx.so" > %{buildroot}%{_sysconfdir}/php.d/63_wddx.ini |
1640 |
echo "extension = json.so" > %{buildroot}%{_sysconfdir}/php.d/82_json.ini |
1641 |
echo "extension = zip.so" > %{buildroot}%{_sysconfdir}/php.d/83_zip.ini |
1642 |
echo "extension = phar.so" > %{buildroot}%{_sysconfdir}/php.d/84_phar.ini |
1643 |
echo "extension = opcache.so" > %{buildroot}%{_sysconfdir}/php.d/99_opcache.ini |
1644 |
|
1645 |
install -m0755 %{SOURCE2} %{buildroot}%{_libdir}/php/maxlifetime |
1646 |
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.d/php |
1647 |
install -m0644 php.ini-production %{buildroot}%{_sysconfdir}/php.ini |
1648 |
install -m0644 php.ini-production %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini |
1649 |
|
1650 |
# lib64 hack |
1651 |
perl -pi -e "s|/usr/lib|%{_libdir}|" \ |
1652 |
%{buildroot}%{_sysconfdir}/cron.d/php \ |
1653 |
%{buildroot}%{_sysconfdir}/php.ini \ |
1654 |
%{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini |
1655 |
|
1656 |
# install doc manually in %{_docdir}/php, rather than %{_docdir}/php-doc |
1657 |
install -d -m 755 %{buildroot}%{_docdir}/php |
1658 |
install -m 644 \ |
1659 |
CREDITS INSTALL LICENSE NEWS \ |
1660 |
php.ini-production php.ini-development \ |
1661 |
README.PHP4-TO-PHP5-THIN-CHANGES README.EXTENSIONS README.EXT_SKEL \ |
1662 |
README.input_filter README.PARAMETER_PARSING_API README.STREAMS \ |
1663 |
%{buildroot}%{_docdir}/php |
1664 |
|
1665 |
# fix docs |
1666 |
cp Zend/LICENSE Zend/ZEND_LICENSE |
1667 |
cp README.SELF-CONTAINED-EXTENSIONS SELF-CONTAINED-EXTENSIONS |
1668 |
cp ext/openssl/README README.openssl |
1669 |
cp ext/spl/README README.spl |
1670 |
cp ext/libxml/CREDITS CREDITS.libxml |
1671 |
cp ext/zlib/CREDITS CREDITS.zlib |
1672 |
|
1673 |
# cgi docs |
1674 |
cp sapi/cgi/CREDITS CREDITS.cgi |
1675 |
cp sapi/cgi/README.FastCGI README.fcgi |
1676 |
|
1677 |
# cli docs |
1678 |
cp sapi/cli/CREDITS CREDITS.cli |
1679 |
cp sapi/cli/README README.cli |
1680 |
cp sapi/cli/TODO TODO.cli |
1681 |
|
1682 |
# phar fixes |
1683 |
if [ -L %{buildroot}%{_bindir}/phar ]; then |
1684 |
rm -f %{buildroot}%{_bindir}/phar |
1685 |
mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar |
1686 |
fi |
1687 |
|
1688 |
# house cleaning |
1689 |
rm -f %{buildroot}%{_bindir}/pear |
1690 |
rm -f %{buildroot}%{_libdir}/*.*a |
1691 |
|
1692 |
# don't pack useless stuff |
1693 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bcmath |
1694 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bz2 |
1695 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/calendar |
1696 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ctype |
1697 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/curl |
1698 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/dba |
1699 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/dom |
1700 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/enchant |
1701 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ereg |
1702 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/exif |
1703 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/fileinfo |
1704 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/filter |
1705 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/interbase |
1706 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ftp |
1707 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/gettext |
1708 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/gmp |
1709 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/hash |
1710 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/iconv |
1711 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/imap |
1712 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/intl |
1713 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/json |
1714 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ldap |
1715 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/libxml |
1716 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mbstring |
1717 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mcrypt |
1718 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mssql |
1719 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysql |
1720 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysqli |
1721 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysqlnd |
1722 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/odbc |
1723 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/openssl |
1724 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pcntl |
1725 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pcre |
1726 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo |
1727 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_dblib |
1728 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_firebird |
1729 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_odbc |
1730 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_pgsql |
1731 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_sqlite |
1732 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pgsql |
1733 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/phar |
1734 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/posix |
1735 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pspell |
1736 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/readline |
1737 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/recode |
1738 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/shmop |
1739 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/snmp |
1740 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/soap |
1741 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sockets |
1742 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/spl |
1743 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sqlite |
1744 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sqlite3 |
1745 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/standard |
1746 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sybase_ct |
1747 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvmsg |
1748 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvsem |
1749 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvshm |
1750 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/tidy |
1751 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/tokenizer |
1752 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/wddx |
1753 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xml |
1754 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlreader |
1755 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlrpc |
1756 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlwriter |
1757 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xsl |
1758 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zip |
1759 |
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zlib |
1760 |
|
1761 |
# php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL |
1762 |
find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 -exec rm -f {} \; |
1763 |
|
1764 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/build-defs.h |
1765 |
|
1766 |
%multiarch_includes %{buildroot}%{_includedir}/php/main/php_config.h |
1767 |
|
1768 |
%if %{build_test} |
1769 |
# do a make test |
1770 |
export NO_INTERACTION=1 |
1771 |
export PHPRC="." |
1772 |
export REPORT_EXIT_STATUS=2 |
1773 |
export TEST_PHP_DETAILED=0 |
1774 |
export TEST_PHP_ERROR_STYLE=EMACS |
1775 |
export TEST_PHP_LOG_FORMAT=LEODC |
1776 |
export PHP_INI_SCAN_DIR=/dev/null |
1777 |
|
1778 |
# FAILING TESTS: |
1779 |
# unknown errors with ext/date/tests/oo_002.phpt probably because of php-5.2.5-systzdata.patch |
1780 |
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not) |
1781 |
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt |
1782 |
# unknown errors with ext/standard/tests/strings/setlocale_* |
1783 |
disable_tests="ext/date/tests/oo_002.phpt \ |
1784 |
ext/standard/tests/file/bug22414.phpt \ |
1785 |
ext/standard/tests/general_functions/phpinfo.phpt \ |
1786 |
ext/standard/tests/strings/setlocale_basic1.phpt \ |
1787 |
ext/standard/tests/strings/setlocale_basic2.phpt \ |
1788 |
ext/standard/tests/strings/setlocale_basic3.phpt \ |
1789 |
ext/standard/tests/strings/setlocale_variation1.phpt \ |
1790 |
ext/standard/tests/strings/setlocale_variation3.phpt \ |
1791 |
ext/standard/tests/strings/setlocale_variation4.phpt \ |
1792 |
ext/standard/tests/strings/setlocale_variation5.phpt" |
1793 |
|
1794 |
[[ -n "$disable_tests" ]] && \ |
1795 |
for f in $disable_tests; do |
1796 |
[[ -f "$f" ]] && mv $f $f.disabled |
1797 |
done |
1798 |
|
1799 |
TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -c ./php-test.ini run-tests.php |
1800 |
%endif |
1801 |
|
1802 |
|
1803 |
|
1804 |
%post fpm |
1805 |
%_tmpfilescreate php-fpm |
1806 |
%_post_service php-fpm |
1807 |
|
1808 |
%preun fpm |
1809 |
%_preun_service php-fpm |
1810 |
|
1811 |
%files doc |
1812 |
%doc CREDITS INSTALL LICENSE NEWS Zend/ZEND_LICENSE |
1813 |
%doc php.ini-production php.ini-development |
1814 |
%doc README.openssl README.spl CREDITS.libxml CREDITS.zlib |
1815 |
%doc README.PHP4-TO-PHP5-THIN-CHANGES |
1816 |
%doc README.EXTENSIONS README.EXT_SKEL README.input_filter |
1817 |
%doc README.PARAMETER_PARSING_API README.STREAMS |
1818 |
|
1819 |
%files ini |
1820 |
%{_docdir}/php |
1821 |
%config(noreplace) %{_sysconfdir}/php.ini |
1822 |
%config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini |
1823 |
%dir %{_sysconfdir}/php.d |
1824 |
%dir %{_libdir}/php |
1825 |
%dir %{_datadir}/php |
1826 |
%dir %{_libdir}/php/extensions |
1827 |
|
1828 |
%files -n apache-mod_php |
1829 |
%config(noreplace) %{_httpd_modconfdir}/*.conf |
1830 |
%{_httpd_moddir}/mod_php.so |
1831 |
%{_localstatedir}/lib/rpm/filetriggers/httpd-php.filter |
1832 |
%{_localstatedir}/lib/rpm/filetriggers/httpd-php.script |
1833 |
|
1834 |
%files -n %{libname} |
1835 |
%{_libdir}/libphp5_common.so.%{php5_common_major}* |
1836 |
|
1837 |
%files cli |
1838 |
%doc CREDITS.cli README.cli TODO.cli |
1839 |
%{_bindir}/php |
1840 |
%{_mandir}/man1/php.1* |
1841 |
|
1842 |
%files cgi |
1843 |
%doc CREDITS.cgi README.fcgi |
1844 |
%{_bindir}/php-cgi |
1845 |
%{_bindir}/php-fcgi |
1846 |
|
1847 |
%files devel |
1848 |
%doc SELF-CONTAINED-EXTENSIONS CODING_STANDARDS README.* EXTENSIONS |
1849 |
%doc Zend/ZEND_* README.TESTING* |
1850 |
%{_bindir}/php-config |
1851 |
%{_bindir}/phpize |
1852 |
%{_libdir}/libphp5_common.so |
1853 |
%{_libdir}/php/build |
1854 |
%{_usrsrc}/php-devel |
1855 |
%{multiarch_includedir}/php/main/build-defs.h |
1856 |
%{multiarch_includedir}/php/main/php_config.h |
1857 |
%{_includedir}/php |
1858 |
%{_mandir}/man1/php-config.1* |
1859 |
%{_mandir}/man1/phpize.1* |
1860 |
|
1861 |
%files openssl |
1862 |
%config(noreplace) %{_sysconfdir}/php.d/21_openssl.ini |
1863 |
%{_libdir}/php/extensions/openssl.so |
1864 |
|
1865 |
%files zlib |
1866 |
%config(noreplace) %{_sysconfdir}/php.d/21_zlib.ini |
1867 |
%{_libdir}/php/extensions/zlib.so |
1868 |
|
1869 |
%files bcmath |
1870 |
%config(noreplace) %{_sysconfdir}/php.d/66_bcmath.ini |
1871 |
%{_libdir}/php/extensions/bcmath.so |
1872 |
|
1873 |
%files bz2 |
1874 |
%config(noreplace) %{_sysconfdir}/php.d/10_bz2.ini |
1875 |
%{_libdir}/php/extensions/bz2.so |
1876 |
|
1877 |
%files calendar |
1878 |
%config(noreplace) %{_sysconfdir}/php.d/11_calendar.ini |
1879 |
%{_libdir}/php/extensions/calendar.so |
1880 |
|
1881 |
%files ctype |
1882 |
%config(noreplace) %{_sysconfdir}/php.d/12_ctype.ini |
1883 |
%{_libdir}/php/extensions/ctype.so |
1884 |
|
1885 |
%files curl |
1886 |
%config(noreplace) %{_sysconfdir}/php.d/13_curl.ini |
1887 |
%{_libdir}/php/extensions/curl.so |
1888 |
|
1889 |
%files dba |
1890 |
%config(noreplace) %{_sysconfdir}/php.d/14_dba.ini |
1891 |
%{_libdir}/php/extensions/dba.so |
1892 |
|
1893 |
%files dom |
1894 |
%config(noreplace) %{_sysconfdir}/php.d/18_dom.ini |
1895 |
%{_libdir}/php/extensions/dom.so |
1896 |
|
1897 |
%files enchant |
1898 |
%config(noreplace) %{_sysconfdir}/php.d/38_enchant.ini |
1899 |
%{_libdir}/php/extensions/enchant.so |
1900 |
|
1901 |
%files exif |
1902 |
%config(noreplace) %{_sysconfdir}/php.d/19_exif.ini |
1903 |
%{_libdir}/php/extensions/exif.so |
1904 |
|
1905 |
%files fileinfo |
1906 |
%config(noreplace) %{_sysconfdir}/php.d/32_fileinfo.ini |
1907 |
%{_libdir}/php/extensions/fileinfo.so |
1908 |
|
1909 |
%files filter |
1910 |
%config(noreplace) %{_sysconfdir}/php.d/81_filter.ini |
1911 |
%{_libdir}/php/extensions/filter.so |
1912 |
|
1913 |
%files ftp |
1914 |
%config(noreplace) %{_sysconfdir}/php.d/22_ftp.ini |
1915 |
%{_libdir}/php/extensions/ftp.so |
1916 |
|
1917 |
%files gd |
1918 |
%config(noreplace) %{_sysconfdir}/php.d/23_gd.ini |
1919 |
%{_libdir}/php/extensions/gd.so |
1920 |
|
1921 |
%files gettext |
1922 |
%config(noreplace) %{_sysconfdir}/php.d/24_gettext.ini |
1923 |
%{_libdir}/php/extensions/gettext.so |
1924 |
|
1925 |
%files gmp |
1926 |
%config(noreplace) %{_sysconfdir}/php.d/25_gmp.ini |
1927 |
%{_libdir}/php/extensions/gmp.so |
1928 |
|
1929 |
%files hash |
1930 |
%config(noreplace) %{_sysconfdir}/php.d/54_hash.ini |
1931 |
%{_libdir}/php/extensions/hash.so |
1932 |
|
1933 |
%files iconv |
1934 |
%config(noreplace) %{_sysconfdir}/php.d/26_iconv.ini |
1935 |
%{_libdir}/php/extensions/iconv.so |
1936 |
|
1937 |
%files imap |
1938 |
%config(noreplace) %{_sysconfdir}/php.d/27_imap.ini |
1939 |
%{_libdir}/php/extensions/imap.so |
1940 |
|
1941 |
%files interbase |
1942 |
%config(noreplace) %{_sysconfdir}/php.d/42_interbase.ini |
1943 |
%{_libdir}/php/extensions/interbase.so |
1944 |
|
1945 |
%files intl |
1946 |
%config(noreplace) %{_sysconfdir}/php.d/27_intl.ini |
1947 |
%{_libdir}/php/extensions/intl.so |
1948 |
|
1949 |
%files json |
1950 |
%config(noreplace) %{_sysconfdir}/php.d/82_json.ini |
1951 |
%{_libdir}/php/extensions/json.so |
1952 |
|
1953 |
%files ldap |
1954 |
%config(noreplace) %{_sysconfdir}/php.d/28_ldap.ini |
1955 |
%{_libdir}/php/extensions/ldap.so |
1956 |
|
1957 |
%files mbstring |
1958 |
%config(noreplace) %{_sysconfdir}/php.d/29_mbstring.ini |
1959 |
%{_libdir}/php/extensions/mbstring.so |
1960 |
|
1961 |
%files mcrypt |
1962 |
%config(noreplace) %{_sysconfdir}/php.d/30_mcrypt.ini |
1963 |
%{_libdir}/php/extensions/mcrypt.so |
1964 |
|
1965 |
%files mssql |
1966 |
%config(noreplace) %{_sysconfdir}/php.d/35_mssql.ini |
1967 |
%{_libdir}/php/extensions/mssql.so |
1968 |
|
1969 |
%files mysql |
1970 |
%config(noreplace) %{_sysconfdir}/php.d/36_mysql.ini |
1971 |
%{_libdir}/php/extensions/mysql.so |
1972 |
|
1973 |
%files mysqli |
1974 |
%config(noreplace) %{_sysconfdir}/php.d/37_mysqli.ini |
1975 |
%{_libdir}/php/extensions/mysqli.so |
1976 |
|
1977 |
%files mysqlnd |
1978 |
%config(noreplace) %{_sysconfdir}/php.d/33_mysqlnd.ini |
1979 |
%{_libdir}/php/extensions/mysqlnd.so |
1980 |
|
1981 |
%files odbc |
1982 |
%config(noreplace) %{_sysconfdir}/php.d/39_odbc.ini |
1983 |
%{_libdir}/php/extensions/odbc.so |
1984 |
|
1985 |
%files opcache |
1986 |
%config(noreplace) %{_sysconfdir}/php.d/99_opcache.ini |
1987 |
%{_libdir}/php/extensions/opcache.so |
1988 |
|
1989 |
%files pcntl |
1990 |
%config(noreplace) %{_sysconfdir}/php.d/40_pcntl.ini |
1991 |
%{_libdir}/php/extensions/pcntl.so |
1992 |
|
1993 |
%files pdo |
1994 |
%config(noreplace) %{_sysconfdir}/php.d/70_pdo.ini |
1995 |
%{_libdir}/php/extensions/pdo.so |
1996 |
|
1997 |
%files pdo_dblib |
1998 |
%config(noreplace) %{_sysconfdir}/php.d/71_pdo_dblib.ini |
1999 |
%{_libdir}/php/extensions/pdo_dblib.so |
2000 |
|
2001 |
%files pdo_firebird |
2002 |
%config(noreplace) %{_sysconfdir}/php.d/78_pdo_firebird.ini |
2003 |
%{_libdir}/php/extensions/pdo_firebird.so |
2004 |
|
2005 |
%files pdo_mysql |
2006 |
%config(noreplace) %{_sysconfdir}/php.d/73_pdo_mysql.ini |
2007 |
%{_libdir}/php/extensions/pdo_mysql.so |
2008 |
|
2009 |
%files pdo_odbc |
2010 |
%config(noreplace) %{_sysconfdir}/php.d/75_pdo_odbc.ini |
2011 |
%{_libdir}/php/extensions/pdo_odbc.so |
2012 |
|
2013 |
%files pdo_pgsql |
2014 |
%config(noreplace) %{_sysconfdir}/php.d/76_pdo_pgsql.ini |
2015 |
%{_libdir}/php/extensions/pdo_pgsql.so |
2016 |
|
2017 |
%files pdo_sqlite |
2018 |
%config(noreplace) %{_sysconfdir}/php.d/77_pdo_sqlite.ini |
2019 |
%{_libdir}/php/extensions/pdo_sqlite.so |
2020 |
|
2021 |
%files pgsql |
2022 |
%config(noreplace) %{_sysconfdir}/php.d/42_pgsql.ini |
2023 |
%{_libdir}/php/extensions/pgsql.so |
2024 |
|
2025 |
%files phar |
2026 |
%config(noreplace) %{_sysconfdir}/php.d/84_phar.ini |
2027 |
%{_libdir}/php/extensions/phar.so |
2028 |
%{_bindir}/phar |
2029 |
|
2030 |
%files posix |
2031 |
%config(noreplace) %{_sysconfdir}/php.d/43_posix.ini |
2032 |
%{_libdir}/php/extensions/posix.so |
2033 |
|
2034 |
%files readline |
2035 |
%config(noreplace) %{_sysconfdir}/php.d/45_readline.ini |
2036 |
%{_libdir}/php/extensions/readline.so |
2037 |
|
2038 |
%files recode |
2039 |
%config(noreplace) %{_sysconfdir}/php.d/46_recode.ini |
2040 |
%{_libdir}/php/extensions/recode.so |
2041 |
|
2042 |
%files session |
2043 |
%config(noreplace) %{_sysconfdir}/php.d/47_session.ini |
2044 |
%config(noreplace) %{_sysconfdir}/cron.d/php |
2045 |
%{_libdir}/php/extensions/session.so |
2046 |
%{_libdir}/php/maxlifetime |
2047 |
%attr(01733,apache,apache) %dir /var/lib/php |
2048 |
|
2049 |
%files shmop |
2050 |
%config(noreplace) %{_sysconfdir}/php.d/48_shmop.ini |
2051 |
%{_libdir}/php/extensions/shmop.so |
2052 |
|
2053 |
%files snmp |
2054 |
%config(noreplace) %{_sysconfdir}/php.d/50_snmp.ini |
2055 |
%{_libdir}/php/extensions/snmp.so |
2056 |
|
2057 |
%files soap |
2058 |
%config(noreplace) %{_sysconfdir}/php.d/51_soap.ini |
2059 |
%{_libdir}/php/extensions/soap.so |
2060 |
|
2061 |
%files sockets |
2062 |
%config(noreplace) %{_sysconfdir}/php.d/52_sockets.ini |
2063 |
%{_libdir}/php/extensions/sockets.so |
2064 |
|
2065 |
%files sqlite3 |
2066 |
%config(noreplace) %{_sysconfdir}/php.d/78_sqlite3.ini |
2067 |
%{_libdir}/php/extensions/sqlite3.so |
2068 |
|
2069 |
%files sybase_ct |
2070 |
%config(noreplace) %{_sysconfdir}/php.d/46_sybase_ct.ini |
2071 |
%{_libdir}/php/extensions/sybase_ct.so |
2072 |
|
2073 |
%files sysvmsg |
2074 |
%config(noreplace) %{_sysconfdir}/php.d/56_sysvmsg.ini |
2075 |
%{_libdir}/php/extensions/sysvmsg.so |
2076 |
|
2077 |
%files sysvsem |
2078 |
%config(noreplace) %{_sysconfdir}/php.d/57_sysvsem.ini |
2079 |
%{_libdir}/php/extensions/sysvsem.so |
2080 |
|
2081 |
%files sysvshm |
2082 |
%config(noreplace) %{_sysconfdir}/php.d/58_sysvshm.ini |
2083 |
%{_libdir}/php/extensions/sysvshm.so |
2084 |
|
2085 |
%files tidy |
2086 |
%config(noreplace) %{_sysconfdir}/php.d/59_tidy.ini |
2087 |
%{_libdir}/php/extensions/tidy.so |
2088 |
|
2089 |
%files tokenizer |
2090 |
%config(noreplace) %{_sysconfdir}/php.d/60_tokenizer.ini |
2091 |
%{_libdir}/php/extensions/tokenizer.so |
2092 |
|
2093 |
%files xml |
2094 |
%config(noreplace) %{_sysconfdir}/php.d/62_xml.ini |
2095 |
%{_libdir}/php/extensions/xml.so |
2096 |
|
2097 |
%files xmlreader |
2098 |
%config(noreplace) %{_sysconfdir}/php.d/63_xmlreader.ini |
2099 |
%{_libdir}/php/extensions/xmlreader.so |
2100 |
|
2101 |
%files xmlrpc |
2102 |
%config(noreplace) %{_sysconfdir}/php.d/62_xmlrpc.ini |
2103 |
%{_libdir}/php/extensions/xmlrpc.so |
2104 |
|
2105 |
%files xmlwriter |
2106 |
%config(noreplace) %{_sysconfdir}/php.d/64_xmlwriter.ini |
2107 |
%{_libdir}/php/extensions/xmlwriter.so |
2108 |
|
2109 |
%files xsl |
2110 |
%config(noreplace) %{_sysconfdir}/php.d/63_xsl.ini |
2111 |
%{_libdir}/php/extensions/xsl.so |
2112 |
|
2113 |
%files wddx |
2114 |
%config(noreplace) %{_sysconfdir}/php.d/63_wddx.ini |
2115 |
%{_libdir}/php/extensions/wddx.so |
2116 |
|
2117 |
%files zip |
2118 |
%config(noreplace) %{_sysconfdir}/php.d/83_zip.ini |
2119 |
%{_libdir}/php/extensions/zip.so |
2120 |
|
2121 |
%files fpm |
2122 |
%doc sapi/fpm/CREDITS sapi/fpm/LICENSE |
2123 |
%{_unitdir}/php-fpm.service |
2124 |
%config(noreplace) %{_sysconfdir}/php-fpm.conf |
2125 |
%config(noreplace) %{_sysconfdir}/sysconfig/php-fpm |
2126 |
%{_sysconfdir}/logrotate.d/php-fpm |
2127 |
%dir %{_sysconfdir}/php-fpm.d |
2128 |
%config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf |
2129 |
%{_sbindir}/php-fpm |
2130 |
%{_mandir}/man8/php-fpm.8* |
2131 |
%attr(0711,apache,apache) %dir /var/lib/php-fpm |
2132 |
%attr(0711,apache,apache) %dir /var/log/php-fpm |
2133 |
%{_tmpfilesdir}/php-fpm.conf |