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

  ViewVC Help
Powered by ViewVC 1.1.30