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