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

  ViewVC Help
Powered by ViewVC 1.1.30