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

  ViewVC Help
Powered by ViewVC 1.1.30