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