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

  ViewVC Help
Powered by ViewVC 1.1.30