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

  ViewVC Help
Powered by ViewVC 1.1.30