/[packages]/cauldron/php/current/SPECS/php.spec
ViewVC logotype

Contents of /cauldron/php/current/SPECS/php.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30