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

  ViewVC Help
Powered by ViewVC 1.1.30