]> git.pld-linux.org Git - packages/php.git/blame_incremental - php.spec
- rebuild with net-snmp 5.8
[packages/php.git] / php.spec
... / ...
CommitLineData
1# TODO 5.6:
2# - enable --with-fpm-systemd, but ensure it checks for sd_booted()
3# - build with system libgd 2.1, see 73c5128
4# TODO 5.4:
5# - update imap annotations patch (needs api porting)
6# - update imap myrights patch (needs api porting)
7# --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base install directory BUNDLED
8# --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
9# TODO:
10# - fileinfo extension bundles magic db in library: data_file.c (dump of magic.mgc) is 14M
11# - 2.3M fileinfo.so php54-fileinfo-5.4.6-0.15.x86_64
12# - 2.3M fileinfo.so php-fileinfo-5.3.16-1.x86_64
13# - 13K fileinfo.so php-pecl-fileinfo-1.0.4-8.amd64
14# - ttyname_r() misdetected http://bugs.php.net/bug.php?id=48820
15# - wddx: restore session support (not compiled in due DL extension check)
16# - make additional headers and checking added by mail patch configurable
17# - modularize standard (output from pure php -m)?
18# - some mods should be shared:
19#$ php -m
20# [PHP Modules]
21#+Core
22# date
23#+ereg
24# libxml
25# Reflection
26# standard
27#
28# Conditional build:
29# - packaging options
30%bcond_without alternatives # use alternatives system to select default phar and php-fpm
31%bcond_with default_php # build this PHP as default PHP in system (disables alternatives)
32# - General options:
33%bcond_without embed # disable building Embedded API
34%bcond_with gcov # Enable Code coverage reporting
35%bcond_without kerberos5 # without Kerberos5 support
36%bcond_with suhosin # with suhosin patch, has little point in PHP>=5.3, see https://github.com/stefanesser/suhosin/issues/42#issuecomment-41728178
37%bcond_with systemtap # systemtap/DTrace support
38%bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
39%bcond_with zts # Zend Thread Safety
40%bcond_with debug # Zend Debug Build
41# - SAPI
42%bcond_without apache1 # disable building Apache 1.3.x SAPI
43%bcond_without apache2 # disable building Apache 2.x SAPI
44%bcond_without cgi # disable CGI/FCGI SAPI
45%bcond_without fpm # disable FPM SAPI
46%bcond_without litespeed # build litespeed SAPI
47%bcond_with milter # disable Milter SAPI
48%bcond_without phpdbg # disable phpdbg SAPI
49# - Extensions
50%bcond_without bcmath # without bcmath extension module
51%bcond_without bz2 # without bz2 extension module
52%bcond_without calendar # without calendar extension module
53%bcond_without ctype # without ctype extension module
54%bcond_without curl # without CURL extension module
55%bcond_without dba # without DBA extension module
56%bcond_without dom # without DOM extension module
57%bcond_without enchant # without Enchant extension module
58%bcond_without ereg # without ext/ereg support
59%bcond_without exif # without EXIF extension module
60%bcond_without fileinfo # without fileinfo extension module
61%bcond_without filter # without filter extension module
62%bcond_without ftp # without FTP extension module
63%bcond_without gd # without GD extension module
64%bcond_without gettext # without gettext extension module
65%bcond_without gmp # without gmp extension module
66%bcond_without hash # without hash extension module
67%bcond_without iconv # without iconv extension module
68%bcond_without imap # without IMAP extension module
69%bcond_without interbase # without InterBase extension module
70%bcond_without intl # without Intl extension module
71%bcond_without json # without json extension module
72%bcond_without ldap # without LDAP extension module
73%bcond_without mbstring # without mbstring extension module
74%bcond_without mcrypt # without mbcrypt extension module
75%bcond_without mhash # without mhash extension (supported by hash extension)
76%bcond_without mssql # without MS SQL extension module
77%bcond_without mysql # without ext/mysql support
78%bcond_without mysqli # without mysqli support (Requires mysql >= 4.1)
79%bcond_without mysqlnd # without mysqlnd support in mysql related extensions
80%bcond_with oci # with Oracle oci8 extension module (BR: proprietary libs)
81%bcond_without odbc # without ODBC extension module
82%bcond_without opcache # without Enable Zend OPcache extension support
83%bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
84%bcond_without pcntl # without pcntl extension module
85%bcond_without pcre # without PCRE extension module
86%bcond_without pdo # without PDO extension module
87%bcond_without pdo_dblib # without PDO dblib extension module
88%bcond_without pdo_mysql # without PDO MySQL extension module
89%bcond_without pdo_sqlite # without PDO SQLite extension module
90%bcond_without pgsql # without PostgreSQL extension module
91%bcond_without phar # without Phar extension module
92%bcond_without posix # without POSIX extension module
93%bcond_without pspell # without pspell extension module
94%bcond_without readline # without readline extension module
95%bcond_without recode # without recode extension module
96%bcond_without session # without session extension module
97%bcond_without snmp # without SNMP extension module
98%bcond_without sqlite2 # without SQLite extension module
99%bcond_without sqlite3 # without SQLite3 extension module
100%bcond_without sybase_ct # without Sybase-CT extension module
101%bcond_without tidy # without Tidy extension module
102%bcond_without wddx # without WDDX extension module
103%bcond_without xmlrpc # without XML-RPC extension module
104# extensions options
105%bcond_without instantclient # build Oracle oci8 extension module against oracle-instantclient package
106%bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
107%bcond_with mm # without mm support for session storage
108%bcond_with system_gd # with system gd (imageantialias function is missing then)
109%bcond_with system_libzip # with system libzip (reported broken currently)
110%bcond_without webp # Without WebP support in GD extension (imagecreatefromwebp)
111
112%define apxs1 /usr/sbin/apxs1
113%define apxs2 /usr/sbin/apxs
114
115# disable all sapis
116%if %{with gcov}
117%undefine with_apache1
118%undefine with_apache2
119%undefine with_cgi
120%undefine with_litespeed
121%endif
122
123%if %{with default_php}
124%undefine with_alternatives
125%endif
126
127# mm is not thread safe
128%if %{with zts}
129%undefine with_mm
130%endif
131
132# milter requires ZTS
133%if %{with milter} && %{without zts}
134%undefine with_milter
135%endif
136
137%ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha
138# ppc disabled (broken on th-ppc)
139%undefine with_interbase
140%endif
141
142%ifnarch %{ix86} %{x8664} x32
143# unsupported, see sapi/cgi/fpm/fpm_atomic.h
144%undefine with_fpm
145%endif
146
147%if 0
148%if %{without apache1} && %{without apache2}
149ERROR: You need to select at least one Apache SAPI to build shared modules.
150%endif
151%endif
152
153# filter depends on pcre
154%if %{without pcre}
155%undefine with_filter
156%endif
157
158%define rel 2
159%define orgname php
160%define ver_suffix 56
161%define php_suffix %{!?with_default_php:%{ver_suffix}}
162Summary: PHP: Hypertext Preprocessor
163Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
164Summary(pl.UTF-8): Język skryptowy PHP
165Summary(pt_BR.UTF-8): A linguagem de script PHP
166Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
167Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
168Name: %{orgname}%{php_suffix}
169Version: 5.6.37
170Release: %{rel}
171Epoch: 4
172# All files licensed under PHP version 3.01, except
173# Zend is licensed under Zend
174# TSRM is licensed under BSD
175License: PHP 3.01 and Zend and BSD
176Group: Libraries
177Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.xz
178# Source0-md5: 6a21894661704641b77ccc40e091eaf9
179Source2: %{orgname}-mod_%{orgname}.conf
180Source3: %{orgname}-cgi-fcgi.ini
181Source4: %{orgname}-apache.ini
182Source5: %{orgname}-cli.ini
183Source10: %{orgname}-fpm.init
184Source11: %{orgname}-fpm.logrotate
185Source12: %{orgname}-branch.sh
186Source13: dep-tests.sh
187Source14: skip-tests.sh
188Patch0: %{orgname}-shared.patch
189Patch1: %{orgname}-pldlogo.patch
190Patch2: %{orgname}-mail.patch
191Patch3: %{orgname}-link-libs.patch
192Patch4: php-bug-71475.patch
193Patch5: %{orgname}-filter-shared.patch
194Patch6: %{orgname}-build_modules.patch
195Patch7: %{orgname}-sapi-ini-file.patch
196Patch8: milter.patch
197Patch9: libtool-tag.patch
198Patch10: %{orgname}-ini.patch
199Patch11: embed.patch
200Patch14: %{orgname}-no_pear_install.patch
201Patch17: %{orgname}-readline.patch
202Patch18: %{orgname}-nohttpd.patch
203Patch21: %{orgname}-dba-link.patch
204Patch22: %{orgname}-both-apxs.patch
205Patch23: %{orgname}-builddir.patch
206Patch24: %{orgname}-zlib-for-getimagesize.patch
207Patch25: %{orgname}-stupidapache_version.patch
208Patch26: %{orgname}-pear.patch
209Patch27: %{orgname}-config-dir.patch
210Patch29: %{orgname}-fcgi-graceful.patch
211Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
212Patch34: %{orgname}-libtool.patch
213Patch35: %{orgname}-tds.patch
214Patch36: %{orgname}-mysql-charsetphpini.patch
215Patch37: %{orgname}-mysqli-charsetphpini.patch
216Patch38: %{orgname}-pdo_mysql-charsetphpini.patch
217Patch39: %{orgname}-use-prog_sendmail.patch
218Patch41: %{orgname}-fpm-config.patch
219Patch42: %{orgname}-fpm-shared.patch
220Patch43: %{orgname}-silent-session-cleanup.patch
221Patch44: %{orgname}-include_path.patch
222Patch45: %{orgname}-imap-annotations.patch
223Patch46: %{orgname}-imap-myrights.patch
224Patch47: suhosin.patch
225Patch50: extension-shared-optional-dep.patch
226Patch51: spl-shared.patch
227Patch52: pcre-shared.patch
228Patch53: fix-test-run.patch
229Patch55: bug-52078-fileinode.patch
230Patch59: %{orgname}-systzdata.patch
231Patch60: %{orgname}-oracle-instantclient.patch
232Patch62: mcrypt-libs.patch
233Patch65: system-libzip.patch
234Patch66: php-db.patch
235Patch67: mysql-lib-ver-mismatch.patch
236
237Patch69: fpm-conf-split.patch
238Patch70: mysqlnd-ssl.patch
239Patch72: phar-hash-shared.patch
240Patch73: php-pdo-ssl.patch
241URL: http://php.net/
242%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
243%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
244BuildRequires: autoconf >= 2.59
245BuildRequires: automake >= 1.4d
246BuildRequires: bison
247BuildRequires: bzip2-devel >= 1.0.0
248%{?with_curl:BuildRequires: curl-devel >= 7.12.0}
249BuildRequires: cyrus-sasl-devel >= 2
250BuildRequires: db-devel >= 4.0
251BuildRequires: elfutils-devel
252%{?with_enchant:BuildRequires: enchant-devel >= 1.1.3}
253%{?with_kerberos5:BuildRequires: heimdal-devel}
254%{?with_system_libzip:BuildRequires: libzip-devel >= 0.10.1-2}
255%{!?with_mysqlnd:BuildRequires: mysql-devel}
256BuildRequires: pkgconfig
257BuildRequires: sed >= 4.0
258%if %{with mssql} || %{with sybase_ct} || %{with pdo_dblib}
259BuildRequires: freetds-devel >= 0.82
260%endif
261BuildRequires: freetype-devel >= 1:2.5.1
262%if %{with system_gd}
263BuildRequires: gd-devel >= 2.1
264%endif
265BuildRequires: gdbm-devel
266BuildRequires: gmp-devel >= 4.1.2
267%{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
268%{?with_intl:BuildRequires: libicu-devel >= 4.4}
269BuildRequires: libjpeg-devel
270BuildRequires: libltdl-devel >= 1.4
271BuildRequires: libmcrypt-devel >= 2.5.6
272BuildRequires: libpng-devel >= 1.0.8
273%{?with_intl:BuildRequires: libstdc++-devel}
274%{?with_webp:BuildRequires: libvpx-devel}
275BuildRequires: tokyocabinet-devel
276%if "%{pld_release}" != "ac"
277BuildRequires: libtool >= 2:2.4.6
278%else
279BuildRequires: libtool >= 1.4.3
280%endif
281BuildRequires: libxml2-devel >= 1:2.7.6-4
282BuildRequires: libxslt-devel >= 1.1.0
283%{?with_mm:BuildRequires: mm-devel >= 1.3.0}
284%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
285%if %{with openssl} || %{with ldap}
286BuildRequires: openssl-devel >= 0.9.7d
287%endif
288%{?with_gcov:BuildRequires: lcov}
289%{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
290%{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
291%{?with_oci:%{?with_instantclient:BuildRequires: oracle-instantclient-devel}}
292BuildRequires: pam-devel
293%{?with_pcre:BuildRequires: pcre-devel >= 8.10}
294BuildRequires: pkgconfig
295%{?with_pgsql:BuildRequires: postgresql-backend-devel >= 7.2}
296%{?with_pgsql:BuildRequires: postgresql-devel}
297BuildRequires: readline-devel
298%{?with_recode:BuildRequires: recode-devel >= 3.5d-3}
299BuildRequires: rpm >= 4.4.9-56
300BuildRequires: rpm-build >= 4.4.0
301BuildRequires: rpmbuild(macros) >= 1.566
302%{?with_systemtap:BuildRequires: systemtap-sdt-devel}
303BuildRequires: tar >= 1:1.22
304BuildRequires: xz
305%if %{with sqlite3} || %{with pdo_sqlite}
306BuildRequires: sqlite3-devel >= 3.3.9
307%endif
308BuildRequires: t1lib-devel
309%{?with_tidy:BuildRequires: tidy-devel}
310%{?with_odbc:BuildRequires: unixODBC-devel}
311%{?with_xmlrpc:BuildRequires: xmlrpc-epi-devel >= 0.54.1}
312BuildRequires: zlib-devel >= 1.0.9
313%if %{with apache1}
314BuildRequires: apache1-devel
315%endif
316%if %{with apache2}
317BuildRequires: apache-devel >= 2.0.52-2
318BuildRequires: apr-devel >= 1:1.0.0
319BuildRequires: apr-util-devel >= 1:1.0.0
320%endif
321BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
322
323%define php_sysconfdir /etc/%{name}
324%define php_extensiondir %{_libdir}/%{name}
325%define _sysconfdir %{php_sysconfdir}
326
327# must be in sync with source. extra check ensuring that it is so is done in %%build
328%define php_api_version 20131106
329%define zend_module_api 20131226
330%define zend_extension_api 220131226
331%define php_pdo_api_version 20080721
332
333# Extension versions
334%define bz2ver 1.0
335%define enchantver 1.1.0
336%define fileinfover 1.0.5
337%define hashver 1.0
338%define intlver 1.1.0
339%define jsonver 1.2.1
340%define opcachever 7.0.6-dev
341%define pharver 2.0.2
342%define sqlite3ver 0.7-dev
343%define zipver 1.12.5
344%define phpdbgver 0.4.0
345
346%define _zend_zts %{!?with_zts:0}%{?with_zts:1}
347%define php_debug %{!?with_debug:0}%{?with_debug:1}
348
349%if %{with gcov}
350%undefine with_ccache
351%endif
352
353%if %{with oci}
354# ORACLE_HOME is required for oci8 ext to build
355%define _preserve_env %_preserve_env_base ORACLE_HOME
356%endif
357
358%description
359PHP is an HTML-embedded scripting language. PHP attempts to make it
360easy for developers to write dynamically generated web pages. PHP also
361offers built-in database integration for several commercial and
362non-commercial database management systems, so writing a
363database-enabled web page with PHP is fairly simple. The most common
364use of PHP coding is probably as a replacement for CGI scripts. The
365mod_php module enables the Apache web server to understand and process
366the embedded PHP language in web pages. This package contains PHP
367version %{version}.
368
369%description -l fr.UTF-8
370PHP est un langage de script embarque dans le HTM. PHP essaye de
371rendre simple aux developpeurs d'ecrire des pages web generees
372dynamiquement. PHP incorpore egalement une integration avec plusieurs
373systemes de gestion de bases de donnees commerciaux et
374non-connerciaux, qui rent facile la creation de pages web liees avec
375des bases de donnees. L'utilisation la plus commune de PHP est
376probablement en remplacement de scripts CGI. Le module mod_php permet
377au serveur web Apache de comprendre et de traiter le langage PHP
378integre dans des pages web. Ce package contient PHP version
379%{version}.
380
381%description -l pl.UTF-8
382PHP jest językiem skryptowym, którego polecenia umieszcza się w
383plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
384generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
385danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
386co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
387Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
388CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
389język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
390%{version}.
391
392%description -l pt_BR.UTF-8
393PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
394embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
395com algumas características únicas, específicas ao PHP. O objetivo da
396linguagem é permitir que desenvolvedores web escrevam páginas
397dinamicamente geradas de forma rápida.
398
399%description -l ru.UTF-8
400PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
401предлагает интерграцию с множеством СУБД, поэтому написание скриптов
402для работы с базами данных относительно просто. Наиболее популярное
403использование PHP - замена для CGI скриптов.
404
405%description -l uk.UTF-8
406PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
407пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
408роботи з базами даних є доволі простим. Найбільш популярне
409використання PHP - заміна для CGI скриптів.
410
411%package -n apache1-mod_%{name}
412Summary: PHP DSO module for Apache 1.3.x
413Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
414Group: Development/Languages/PHP
415Requires: %{name}-common = %{epoch}:%{version}-%{release}
416Requires: apache1(EAPI) >= 1.3.33-2
417Requires: apache1-mod_mime
418Provides: webserver(php) = %{version}
419Obsoletes: apache-mod_php < 1:4.1.1
420Obsoletes: apache1-mod_php < 4:5.3.28-7
421Obsoletes: phpfi
422
423%description -n apache1-mod_%{name}
424PHP as DSO module for Apache 1.3.x.
425
426%description -n apache1-mod_%{name} -l pl.UTF-8
427PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
428
429%package -n apache-mod_%{name}
430Summary: PHP support for Apache 2.x
431Summary(pl.UTF-8): Wsparcie PHP dla Apache 2.x
432Group: Development/Languages/PHP
433Requires: apache-mod_%{name}-core = %{epoch}:%{version}-%{release}
434Requires: %{name}-common = %{epoch}:%{version}-%{release}
435Provides: webserver(php) = %{version}
436Obsoletes: apache-mod_php < 4:5.3.28-7
437Obsoletes: phpfi
438
439%description -n apache-mod_%{name}
440PHP support for Apache 2.x.
441
442%description -n apache-mod_%{name} -l pl.UTF-8
443Wsparcie PHP dla Apache 2.x.
444
445%package -n apache-mod_%{name}-core
446Summary: PHP DSO module for Apache 2.x
447Summary(pl.UTF-8): Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
448Group: Development/Languages/PHP
449Requires: %{name}-common = %{epoch}:%{version}-%{release}
450Requires: apache(modules-api) = %{apache_modules_api}
451Requires: apache-mod_mime
452
453%description -n apache-mod_%{name}-core
454PHP as DSO module for Apache 2.x.
455
456%description -n apache-mod_%{name}-core -l pl.UTF-8
457PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
458
459%package litespeed
460Summary: PHP for litespeed HTTP server
461Summary(pl.UTF-8): PHP dla serwera HTTP litespeed
462Group: Development/Languages/PHP
463Requires: %{name}-common = %{epoch}:%{version}-%{release}
464Provides: php(litespeed)
465Provides: webserver(php) = %{version}
466Obsoletes: php-litespeed < 4:5.3.28-7
467
468%description litespeed
469PHP for litespeed HTTP server.
470
471%description litespeed -l pl.UTF-8
472PHP dla serwera HTTP litespeed.
473
474%package cgi
475Summary: PHP as CGI/FastCGI program
476Summary(pl.UTF-8): PHP jako program CGI/FastCGI
477Group: Development/Languages/PHP
478Requires: %{name}-common = %{epoch}:%{version}-%{release}
479Provides: %{name}-fcgi = %{epoch}:%{version}-%{release}
480Provides: php(cgi)
481Provides: php(fcgi)
482Provides: webserver(php) = %{version}
483Obsoletes: php-cgi < 4:5.3.28-7
484Obsoletes: php-fcgi < 4:5.3.0
485
486%description cgi
487PHP as CGI or FastCGI program.
488
489%description cgi -l pl.UTF-8
490PHP jako program CGI lub FastCGI.
491
492%package cli
493Summary: PHP as CLI interpreter
494Summary(pl.UTF-8): PHP jako interpreter działający z linii poleceń
495Group: Development/Languages/PHP
496Requires: %{name}-common = %{epoch}:%{version}-%{release}
497Obsoletes: php-cli < 4:5.3.28-7
498
499%description cli
500PHP as CLI interpreter.
501
502%description cli -l pl.UTF-8
503PHP jako interpreter działający z linii poleceń.
504
505%package embedded
506Summary: PHP library for embedding in applications
507Summary(pl.UTF-8): Biblioteka PHP do osadzania w aplikacjach
508Group: Libraries
509Requires: %{name}-common = %{epoch}:%{version}-%{release}
510Obsoletes: php-embedded < 4:5.3.28-7
511
512%description embedded
513The php-embedded package contains a library which can be embedded into
514applications to provide PHP scripting language support.
515
516%description embedded -l pl.UTF-8
517Ten pakiet zawiera bibliotekę, którą można osadzać w aplikacjach w
518celu obsługi PHP jako języka skryptowego.
519
520%package program
521Summary: /usr/bin/php symlink
522Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php
523Group: Development/Languages/PHP
524Requires: %{name}-cli = %{epoch}:%{version}-%{release}
525Obsoletes: /usr/bin/php
526Obsoletes: php-program < 4:5.3.28-7
527
528%description program
529Package providing /usr/bin/php symlink to PHP CLI.
530
531%description program -l pl.UTF-8
532Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
533
534%package fpm
535Summary: PHP FastCGI Process Manager
536Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
537Group: Development/Languages/PHP
538URL: http://php-fpm.org/
539Requires(post,preun): /sbin/chkconfig
540Requires(postun): /usr/sbin/userdel
541Requires(pre): /bin/id
542Requires(pre): /usr/sbin/useradd
543Requires: %{name}-common = %{epoch}:%{version}-%{release}
544%{?with_alternatives:Requires: alternatives}
545Requires: php-dirs >= 1.4-2
546Requires: rc-scripts
547Provides: php(fcgi)
548Provides: php(fpm)
549Provides: user(http)
550Provides: webserver(php) = %{version}
551Obsoletes: php-fpm < 4:5.3.28-7
552%if "%{pld_release}" != "ac"
553Conflicts: logrotate < 3.8.0
554%endif
555
556%description fpm
557PHP FastCGI Process Manager.
558
559%description fpm -l pl.UTF-8
560PHP FastCGI Process Manager - zarządca procesów FastCGI.
561
562%package phpdbg
563Summary: The debugging platform for PHP 5.4+
564Summary(pl.UTF-8): Platforma diagnostyczna dla PHP 5.4+
565Group: Development/Languages/PHP
566Requires: %{name}-common = %{epoch}:%{version}-%{release}
567Provides: php(phpdbg) = %{phpdbgver}
568
569%description phpdbg
570phpdbg - The interactive PHP debugger.
571
572Implemented as a SAPI module, phpdbg can excert complete control over
573the environment without impacting the functionality or performance of
574your code.
575
576phpdbg aims to be a lightweight, powerful, easy to use debugging
577platform for PHP 5.4+
578
579%description phpdbg -l pl.UTF-8
580phpdbg - interaktywny debugger dla PHP.
581
582Jest zaimplementowany jako moduł SAPI, potrafi przejąć pełną kontrolę
583nad środowiskiem bez wpływu na zachowanie lub wydajność kodu.
584
585Narzędzie powstało jako lekka, mająca duże możliwości, łatwa w użyciu
586platforma diagnostyczna dla PHP 5.4+.
587
588%package common
589Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
590Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
591Summary(ru.UTF-8): Разделяемые библиотеки для PHP
592Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
593Group: Libraries
594Requires(post): sed >= 4.0
595# because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
596Requires: glibc >= 6:2.3.5
597Requires: php-dirs >= 1.4
598Requires: rpm-whiteout >= 1.28
599Requires: tzdata
600Provides: %{name}(debug) = %{php_debug}
601Provides: %{name}(modules_api) = %{php_api_version}
602Provides: %{name}(thread-safety) = %{_zend_zts}
603Provides: %{name}(zend_extension_api) = %{zend_extension_api}
604Provides: %{name}(zend_module_api) = %{zend_module_api}
605Provides: %{name}-core
606Provides: %{name}-date
607%{?with_ereg:Provides: %{name}-ereg}
608Provides: %{name}-reflection
609Provides: %{name}-standard
610Provides: php(core) = %{version}
611Provides: php(date)
612%{?with_ereg:Provides: php(ereg)}
613Provides: php(libxml)
614Provides: php(reflection)
615Provides: php(standard)
616%{!?with_mysqlnd:Obsoletes: %{name}-mysqlnd}
617%{?with_pcre:%requires_ge_to pcre pcre-devel}
618Suggests: browscap
619Obsoletes: php-common < 4:5.3.28-7
620# withdrawn modules
621Obsoletes: php-filepro < 4:5.2.0
622Obsoletes: php-hwapi < 4:5.2.0
623Obsoletes: php-hyperwave < 3:5.0.0
624Obsoletes: php-java < 3:5.0.0
625Obsoletes: php-mcal < 3:5.0.0
626Obsoletes: php-pecl-domxml
627Obsoletes: php-qtdom < 3:5.0.0
628Conflicts: php4-common < 3:4.4.4-8
629Conflicts: php55-common < 4:5.5.10-4
630Conflicts: rpm < 4.4.2-0.2
631
632%description common
633Common files needed by both Apache modules and CGI/CLI SAPIs.
634
635%description common -l pl.UTF-8
636Wspólne pliki dla modułu Apache'a i programu CGI.
637
638%description common -l ru.UTF-8
639Этот пакет содержит общие файлы для разных вариантов реализации PHP
640(самодостаточной и в качестве модуля Apache).
641
642%description common -l uk.UTF-8
643Цей пакет містить спільні файли для різних варіантів реалізації PHP
644(самодостатньої та в якості модуля Apache).
645
646%package devel
647Summary: Files for PHP modules development
648Summary(pl.UTF-8): Pliki do kompilacji modułów PHP
649Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para PHP
650Summary(ru.UTF-8): Пакет разработки для построения расширений PHP
651Summary(uk.UTF-8): Пакет розробки для побудови розширень PHP
652Group: Development/Languages/PHP
653Requires: %{name}-common = %{epoch}:%{version}-%{release}
654Requires: autoconf >= 2.13
655Requires: automake
656%if "%{pld_release}" != "ac"
657Requires: libtool >= 2:2.4.6
658%else
659Requires: libtool
660%endif
661%{?with_pcre:Requires: pcre-devel >= 8.10}
662Requires: shtool
663Provides: php-devel = %{epoch}:%{version}-%{release}
664Obsoletes: php-devel
665Obsoletes: php-pear-devel
666Obsoletes: php4-devel
667Obsoletes: php52-devel
668Obsoletes: php53-devel
669Obsoletes: php54-devel
670Obsoletes: php55-devel
671Obsoletes: php70-devel
672Obsoletes: php71-devel
673Obsoletes: php72-devel
674
675%description devel
676The php-devel package lets you compile dynamic extensions to PHP.
677Included here is the source for the PHP extensions. Instead of
678recompiling the whole PHP binary to add support for, say, oracle,
679install this package and use the new self-contained extensions
680support. For more information, read the file
681README.SELF-CONTAINED-EXTENSIONS.
682
683%description devel -l pl.UTF-8
684Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
685rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
686tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
687samodzielnych rozszerzeniach można znaleźć w pliku
688README.SELF-CONTAINED-EXTENSIONS.
689
690%description devel -l pt_BR.UTF-8
691Este pacote contém arquivos usados no desenvolvimento de programas ou
692módulos PHP.
693
694%description devel -l ru.UTF-8
695Пакет php-devel дает возможность компилировать динамические расширения
696PHP. Пакет включает исходный код этих расширений. Вместо повторной
697компиляции бинарного файла PHP для добавления, например, поддержки
698oracle, установите этот пакет для компилирования отдельных расширений.
699Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
700
701%description devel -l uk.UTF-8
702Пакет php-devel дає можливість компілювати динамічні розширення PHP.
703До пакету включено вихідний код для розширень. Замість повторної
704компіляції бінарного файлу PHP для додання, наприклад, підтримки
705oracle, встановіть цей пакет для компіляції окремих розширень.
706Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
707
708%package bcmath
709Summary: bcmath extension module for PHP
710Summary(pl.UTF-8): Moduł bcmath dla PHP
711Group: Libraries
712URL: http://php.net/manual/en/book.bc.php
713Requires: %{name}-common = %{epoch}:%{version}-%{release}
714Provides: php(bcmath)
715Obsoletes: php-bcmath < 4:5.3.28-7
716
717%description bcmath
718This is a dynamic shared object (DSO) for PHP that will add bc style
719precision math functions support.
720
721%description bcmath -l pl.UTF-8
722Moduł PHP umożliwiający korzystanie z dokładnych funkcji
723matematycznych takich jak w programie bc.
724
725%package bz2
726Summary: Bzip2 extension module for PHP
727Summary(pl.UTF-8): Moduł bzip2 dla PHP
728Group: Libraries
729URL: http://php.net/manual/en/book.bzip2.php
730Requires: %{name}-common = %{epoch}:%{version}-%{release}
731Requires: bzip2-libs >= 1.0.0
732Provides: php(bz2) = %{bz2ver}
733Provides: php(bzip2)
734Provides: php-bzip2 = %{epoch}:%{version}-%{release}
735Obsoletes: php-bz2 < 4:5.3.28-7
736Obsoletes: php-bzip2 < 4:5.2.14-3
737Obsoletes: php-pecl-bz2 < %{bz2ver}
738
739%description bz2
740This is a dynamic shared object (DSO) for PHP that will add bzip2
741compression support to PHP.
742
743%description bz2 -l pl.UTF-8
744Moduł PHP umożliwiający używanie kompresji bzip2.
745
746%package calendar
747Summary: Calendar extension module for PHP
748Summary(pl.UTF-8): Moduł funkcji kalendarza dla PHP
749Group: Libraries
750URL: http://php.net/manual/en/book.calendar.php
751Requires: %{name}-common = %{epoch}:%{version}-%{release}
752Provides: php(calendar)
753Obsoletes: php-calendar < 4:5.3.28-7
754
755%description calendar
756This is a dynamic shared object (DSO) for PHP that will add calendar
757support.
758
759%description calendar -l pl.UTF-8
760Moduł PHP dodający wsparcie dla kalendarza.
761
762%package ctype
763Summary: ctype extension module for PHP
764Summary(pl.UTF-8): Moduł ctype dla PHP
765Group: Libraries
766URL: http://php.net/manual/en/book.ctype.php
767Requires: %{name}-common = %{epoch}:%{version}-%{release}
768Provides: php(ctype)
769Obsoletes: php-ctype < 4:5.3.28-7
770
771%description ctype
772This is a dynamic shared object (DSO) for PHP that will add ctype
773support.
774
775%description ctype -l pl.UTF-8
776Moduł PHP umożliwiający korzystanie z funkcji ctype.
777
778%package curl
779Summary: curl extension module for PHP
780Summary(pl.UTF-8): Moduł curl dla PHP
781Group: Libraries
782URL: http://php.net/manual/en/book.curl.php
783Requires: %{name}-common = %{epoch}:%{version}-%{release}
784Requires: curl-libs >= 7.12.0
785Provides: php(curl)
786Obsoletes: php-curl < 4:5.3.28-7
787
788%description curl
789This is a dynamic shared object (DSO) for PHP that will add curl
790support.
791
792%description curl -l pl.UTF-8
793Moduł PHP umożliwiający korzystanie z biblioteki curl.
794
795%package dba
796Summary: DBA extension module for PHP
797Summary(pl.UTF-8): Moduł DBA dla PHP
798Group: Libraries
799URL: http://php.net/manual/en/book.dba.php
800Requires: %{name}-common = %{epoch}:%{version}-%{release}
801Provides: php(dba)
802Obsoletes: php-dba < 4:5.3.28-7
803# withdrawn module of similar functionality but different API
804Obsoletes: php-db < 3:5.0.0
805
806%description dba
807This is a dynamic shared object (DSO) for PHP that will add flat-file
808databases (DBA) support.
809
810%description dba -l pl.UTF-8
811Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
812(DBA).
813
814%package dom
815Summary: DOM extension module for PHP
816Summary(pl.UTF-8): Moduł DOM dla PHP
817Group: Libraries
818URL: http://php.net/manual/en/book.dom.php
819Requires: %{name}-common = %{epoch}:%{version}-%{release}
820Provides: php(dom)
821# it has some compatibility functions
822Provides: %{name}-domxml = %{epoch}:%{version}-%{release}
823Provides: php(domxml)
824Obsoletes: php-dom < 4:5.3.28-7
825Obsoletes: php-domxml <= 3:4.3.8-1
826
827%description dom
828This is a dynamic shared object (DSO) for PHP that will add new DOM
829support.
830
831%description dom -l pl.UTF-8
832Moduł PHP dodający nową obsługę DOM.
833
834%package enchant
835Summary: libenchant binder
836Summary(pl.UTF-8): dowiązania biblioteki libenchant
837Group: Libraries
838URL: http://php.net/manual/en/book.enchant.php
839Requires: %{name}-common = %{epoch}:%{version}-%{release}
840Provides: php(enchant) = %{enchantver}
841Obsoletes: php-enchant < 4:5.3.28-7
842Obsoletes: php-pecl-enchant < %{enchantver}
843
844%description enchant
845Enchant is a binder for libenchant. Libenchant provides a common API
846for many spell libraries:
847- aspell/pspell (intended to replace ispell)
848- hspell (hebrew)
849- ispell
850- myspell (OpenOffice.org project, mozilla)
851- uspell (primarily Yiddish, Hebrew, and Eastern European languages) A
852 plugin system allows to add custom spell support.
853
854%description enchant -l pl.UTF-8
855Enchant jest dowiązaniem do biblioteki libenchant, która udostępnia
856ujednolicone API dla wielu narzędzi sprawdzających pisownię:
857- aspell/pspell (w zamierzeniu ma zastąpić ispell)
858- hspell (hebrajski)
859- ispell
860- myspell (projekt OpenOffice.org, mozilla)
861- uspell (głównie Jidysz, Hebrajski oraz języki wschodnioeuropejskie)
862 System wtyczek pozwala na dodanie wsparcia dla kolejnych narzędzi.
863
864%package exif
865Summary: exif extension module for PHP
866Summary(pl.UTF-8): Moduł exif dla PHP
867Group: Libraries
868URL: http://php.net/manual/en/book.exif.php
869Requires: %{name}-common = %{epoch}:%{version}-%{release}
870Provides: php(exif)
871Obsoletes: php-exif < 4:5.3.28-7
872
873%description exif
874This is a dynamic shared object (DSO) for PHP that will add EXIF tags
875support in image files.
876
877%description exif -l pl.UTF-8
878Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
879
880%package fileinfo
881Summary: libmagic bindings
882Summary(pl.UTF-8): Wiązania do libmagic
883Group: Libraries
884URL: http://php.net/manual/en/book.fileinfo.php
885Requires: %{name}-common = %{epoch}:%{version}-%{release}
886Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
887Provides: php(fileinfo) = %{fileinfover}
888Obsoletes: php-fileinfo < 4:5.3.28-7
889Obsoletes: php-mime_magic
890Obsoletes: php-pecl-fileinfo < %{fileinfover}
891
892%description fileinfo
893This extension allows retrieval of information regarding vast majority
894of file. This information may include dimensions, quality, length
895etc...
896
897Additionally it can also be used to retrieve the MIME type for a
898particular file and for text files proper language encoding.
899
900%description fileinfo -l pl.UTF-8
901To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
902plików. Informacje mogą zawierać wymiary, jakość, długość itp.
903
904Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
905pliku oraz kodowania plików tekstowych.
906
907%package filter
908Summary: Extension for safely dealing with input parameters
909Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
910Group: Libraries
911URL: http://php.net/manual/en/book.filter.php
912Requires: %{name}-common = %{epoch}:%{version}-%{release}
913Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
914Provides: php(filter)
915Obsoletes: php-filter < 4:5.3.28-7
916Obsoletes: php-pecl-filter
917
918%description filter
919We all know that you should always check input variables, but PHP does
920not offer really good functionality for doing this in a safe way. The
921Input Filter extension is meant to address this issue by implementing
922a set of filters and mechanisms that users can use to safely access
923their input data.
924
925%description filter -l pl.UTF-8
926Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
927oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
928bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
929zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
930mogą bezpiecznie używać do dostępu do danych.
931
932%package ftp
933Summary: FTP extension module for PHP
934Summary(pl.UTF-8): Moduł FTP dla PHP
935Group: Libraries
936URL: http://php.net/manual/en/book.ftp.php
937Requires: %{name}-common = %{epoch}:%{version}-%{release}
938Provides: php(ftp)
939Obsoletes: php-ftp < 4:5.3.28-7
940
941%description ftp
942This is a dynamic shared object (DSO) for PHP that will add FTP
943support.
944
945%description ftp -l pl.UTF-8
946Moduł PHP dodający obsługę protokołu FTP.
947
948%package gd
949Summary: GD extension module for PHP
950Summary(pl.UTF-8): Moduł GD dla PHP
951Group: Libraries
952URL: http://php.net/manual/en/book.image.php
953Requires: %{name}-common = %{epoch}:%{version}-%{release}
954%if %{with system_gd}
955Requires: gd >= 2.1
956Requires: gd(gif)
957%endif
958Provides: php(gd)
959Obsoletes: php-gd < 4:5.3.28-7
960
961%description gd
962This is a dynamic shared object (DSO) for PHP that will add GD
963support, allowing you to create and manipulate images with PHP.
964
965%description gd -l pl.UTF-8
966Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
967tworzenie i obróbkę obrazków.
968
969%package gettext
970Summary: gettext extension module for PHP
971Summary(pl.UTF-8): Moduł gettext dla PHP
972Group: Libraries
973URL: http://php.net/manual/en/book.gettext.php
974Requires: %{name}-common = %{epoch}:%{version}-%{release}
975Provides: php(gettext)
976Obsoletes: php-gettext < 4:5.3.28-7
977
978%description gettext
979This is a dynamic shared object (DSO) for PHP that will add gettext
980support.
981
982%description gettext -l pl.UTF-8
983Moduł PHP dodający obsługę lokalizacji przez gettext.
984
985%package gmp
986Summary: gmp extension module for PHP
987Summary(pl.UTF-8): Moduł gmp dla PHP
988Group: Libraries
989URL: http://php.net/manual/en/book.gmp.php
990Requires: %{name}-common = %{epoch}:%{version}-%{release}
991Requires: gmp >= 4.1.2
992Provides: php(gmp)
993Obsoletes: php-gmp < 4:5.3.28-7
994
995%description gmp
996This is a dynamic shared object (DSO) for PHP that will add arbitrary
997length number support with GNU MP library.
998
999%description gmp -l pl.UTF-8
1000Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
1001liczbach o dowolnej długości.
1002
1003%package hash
1004Summary: HASH Message Digest Framework
1005Summary(pl.UTF-8): Szkielet do obliczania skrótów wiadomości
1006Group: Libraries
1007URL: http://php.net/manual/en/book.gmp.php
1008Requires: %{name}-common = %{epoch}:%{version}-%{release}
1009Provides: php(hash) = %{hashver}
1010%if %{with mhash}
1011Provides: php(mhash)
1012Provides: php-mhash = %{epoch}:%{version}-%{release}
1013Obsoletes: php-mhash < 4:5.3.0
1014%endif
1015Obsoletes: php-hash < 4:5.3.28-7
1016Obsoletes: php-pecl-hash < %{hashver}
1017
1018%description hash
1019Native implementations of common message digest algorithms using a
1020generic factory method.
1021
1022%description hash -l pl.UTF-8
1023Natywne implementacje popularnych algorytmów obliczania skrótów
1024wiadomości przy użyciu wspólnego interfejsu.
1025
1026%package iconv
1027Summary: iconv extension module for PHP
1028Summary(pl.UTF-8): Moduł iconv dla PHP
1029Group: Libraries
1030URL: http://php.net/manual/en/book.iconv.php
1031Requires: %{_libdir}/gconv
1032Requires: %{name}-common = %{epoch}:%{version}-%{release}
1033Requires: iconv
1034Provides: php(iconv)
1035Obsoletes: php-iconv < 4:5.3.28-7
1036
1037%description iconv
1038This is a dynamic shared object (DSO) for PHP that will add iconv
1039support.
1040
1041%description iconv -l pl.UTF-8
1042Moduł PHP dodający obsługę iconv.
1043
1044%package imap
1045Summary: IMAP extension module for PHP
1046Summary(pl.UTF-8): Moduł IMAP dla PHP
1047Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam IMAP
1048Group: Libraries
1049URL: http://php.net/manual/en/book.imap.php
1050Requires: %{name}-common = %{epoch}:%{version}-%{release}
1051Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1052Requires: imap-lib >= 1:2007e-2
1053Provides: php(imap)
1054Obsoletes: php-imap < 4:5.3.28-7
1055
1056%description imap
1057This is a dynamic shared object (DSO) for PHP that will add IMAP
1058support.
1059
1060%description imap -l pl.UTF-8
1061Moduł PHP dodający obsługę skrzynek IMAP.
1062
1063%description imap -l pt_BR.UTF-8
1064Um módulo para aplicações PHP que usam IMAP.
1065
1066%package interbase
1067Summary: InterBase/Firebird database module for PHP
1068Summary(pl.UTF-8): Moduł bazy danych InterBase/Firebird dla PHP
1069Group: Libraries
1070URL: http://php.net/manual/en/book.ibase.php
1071%if %{with interbase_inst}
1072%{?requires_php_extension}
1073%else
1074Requires: %{name}-common = %{epoch}:%{version}-%{release}
1075%endif
1076Provides: php(interbase)
1077Obsoletes: php-interbase < 4:5.3.28-7
1078
1079%description interbase
1080This is a dynamic shared object (DSO) for PHP that will add InterBase
1081and Firebird database support.
1082
1083%description interbase -l pl.UTF-8
1084Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
1085
1086%package intl
1087Summary: Internationalization extension (ICU wrapper)
1088Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
1089Group: Libraries
1090URL: http://php.net/intl
1091Requires: %{name}-common = %{epoch}:%{version}-%{release}
1092Provides: php(intl) = %{intlver}
1093Obsoletes: php-intl < 4:5.3.28-7
1094Obsoletes: php-pecl-intl < %{intlver}
1095
1096%description intl
1097Internationalization extension (further is referred as Intl) is a
1098wrapper for ICU library, enabling PHP programmers to perform
1099UCA-conformant collation and date/time/number/currency formatting in
1100their scripts.
1101
1102%description intl -l pl.UTF-8
1103Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
1104interfejsem do biblioteki ICU, pozwalającym programistom PHP na
1105wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
1106daty/czasu/walut.
1107
1108%package json
1109Summary: PHP C extension for JSON serialization
1110Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
1111Group: Libraries
1112URL: http://php.net/manual/en/book.json.php
1113Requires: %{name}-common = %{epoch}:%{version}-%{release}
1114Provides: php(json) = %{jsonver}
1115Obsoletes: php-json < 4:5.3.28-7
1116Obsoletes: php-pecl-json < %{jsonver}
1117
1118%description json
1119php-json is an extremely fast PHP C extension for JSON (JavaScript
1120Object Notation) serialisation.
1121
1122%description json -l pl.UTF-8
1123php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
1124(JavaScript Object Notation).
1125
1126%package ldap
1127Summary: LDAP extension module for PHP
1128Summary(pl.UTF-8): Moduł LDAP dla PHP
1129Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam LDAP
1130Group: Libraries
1131URL: http://php.net/manual/en/book.ldap.php
1132Requires: %{name}-common = %{epoch}:%{version}-%{release}
1133Provides: php(ldap)
1134Obsoletes: php-ldap < 4:5.3.28-7
1135
1136%description ldap
1137This is a dynamic shared object (DSO) for PHP that will add LDAP
1138support.
1139
1140%description ldap -l pl.UTF-8
1141Moduł PHP dodający obsługę LDAP.
1142
1143%description ldap -l pt_BR.UTF-8
1144Um módulo para aplicações PHP que usam LDAP.
1145
1146%package mbstring
1147Summary: mbstring extension module for PHP
1148Summary(pl.UTF-8): Moduł mbstring dla PHP
1149Group: Libraries
1150URL: http://php.net/manual/en/book.mbstring.php
1151Requires: %{name}-common = %{epoch}:%{version}-%{release}
1152Provides: php(mbstring)
1153Obsoletes: php-mbstring < 4:5.3.28-7
1154
1155%description mbstring
1156This is a dynamic shared object (DSO) for PHP that will add multibyte
1157string support.
1158
1159%description mbstring -l pl.UTF-8
1160Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
1161
1162%package mcrypt
1163Summary: mcrypt extension module for PHP
1164Summary(pl.UTF-8): Moduł mcrypt dla PHP
1165Group: Libraries
1166URL: http://php.net/manual/en/book.mcrypt.php
1167Requires: %{name}-common = %{epoch}:%{version}-%{release}
1168Requires: libmcrypt >= 2.5.6
1169Provides: php(mcrypt)
1170Obsoletes: php-mcrypt < 4:5.3.28-7
1171
1172%description mcrypt
1173This is a dynamic shared object (DSO) for PHP that will add mcrypt
1174support.
1175
1176%description mcrypt -l pl.UTF-8
1177Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
1178
1179%package mssql
1180Summary: MS SQL extension module for PHP
1181Summary(pl.UTF-8): Moduł MS SQL dla PHP
1182Group: Libraries
1183URL: http://www.php.net/manual/en/book.mssql.php
1184Requires: %{name}-common = %{epoch}:%{version}-%{release}
1185Provides: php(mssql)
1186Obsoletes: php-mssql < 4:5.3.28-7
1187
1188%description mssql
1189This is a dynamic shared object (DSO) for PHP that will add MS SQL
1190databases support through FreeTDS library.
1191
1192%description mssql -l pl.UTF-8
1193Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1194FreeTDS.
1195
1196%package mysql
1197Summary: MySQL database module for PHP
1198Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
1199Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bancos de dados MySQL
1200Group: Libraries
1201URL: http://www.php.net/manual/en/book.mysql.php
1202Requires: %{name}-common = %{epoch}:%{version}-%{release}
1203%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1204Provides: php(mysql)
1205Obsoletes: php-mysql < 4:5.3.28-7
1206
1207%description mysql
1208This is a dynamic shared object (DSO) for PHP that will add MySQL
1209database support.
1210
1211%description mysql -l pl.UTF-8
1212Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1213
1214%description mysql -l pt_BR.UTF-8
1215Um módulo para aplicações PHP que usam bancos de dados MySQL.
1216
1217%package mysqli
1218Summary: MySQLi module for PHP
1219Summary(pl.UTF-8): Moduł MySQLi dla PHP
1220Group: Libraries
1221URL: http://php.net/manual/en/book.mysqli.php
1222Requires: %{name}-common = %{epoch}:%{version}-%{release}
1223%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1224Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1225Provides: php(mysqli)
1226Obsoletes: php-mysqli < 4:5.3.28-7
1227
1228%description mysqli
1229This is a dynamic shared object (DSO) for PHP that will add MySQLi
1230(Improved MySQL) support. The difference between it and mysql module
1231is that it provides access to functionality of MySQL 4.1 and above.
1232
1233%description mysqli -l pl.UTF-8
1234Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1235Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1236MySQL w wersji 4.1 i nowszych.
1237
1238%package mysqlnd
1239Summary: MySQL Native Client Driver for PHP
1240Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
1241Group: Libraries
1242URL: http://php.net/manual/en/book.mysqlnd.php
1243Requires: %{name}-common = %{epoch}:%{version}-%{release}
1244Provides: php(mysqlnd)
1245Obsoletes: php-mysqlnd < 4:5.3.28-7
1246
1247%description mysqlnd
1248MySQL Native Driver is a replacement for the MySQL Client Library
1249(libmysql).
1250
1251Because MySQL Native Driver is written as a PHP extension, it is
1252tightly coupled to the workings of PHP. This leads to gains in
1253efficiency, especially when it comes to memory usage, as the driver
1254uses the PHP memory management system. It also supports the PHP memory
1255limit. Using MySQL Native Driver leads to comparable or better
1256performance than using MySQL Client Library, it always ensures the
1257most efficient use of memory. One example of the memory efficiency is
1258the fact that when using the MySQL Client Library, each row is stored
1259in memory twice, whereas with the MySQL Native Driver each row is only
1260stored once in memory.
1261
1262%description mysqlnd -l pl.UTF-8
1263MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
1264klienckiej MySQL (libmysql).
1265
1266Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
1267ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
1268jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
1269system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
1270z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
1271biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
1272Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
1273każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
1274tym sterowniku - tylko raz.
1275
1276%package oci8
1277Summary: Oracle 8+ database module for PHP
1278Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
1279Group: Libraries
1280URL: http://php.net/manual/en/book.oci8.php
1281%{?requires_php_extension}
1282Provides: php(oci8)
1283Obsoletes: php-oci8 < 4:5.3.28-7
1284# withdrawn module of similar functionality but different API
1285Obsoletes: php-oracle < 4:5.1.0
1286
1287%description oci8
1288This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
12898, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1290
1291%description oci8 -l pl.UTF-8
1292Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1293poprzez interfejs Oracle8 Call-Interface (OCI8).
1294
1295%package odbc
1296Summary: ODBC extension module for PHP
1297Summary(pl.UTF-8): Moduł ODBC dla PHP
1298Summary(pt_BR.UTF-8): Um módulo para aplicações PHP que usam bases de dados ODBC
1299Group: Libraries
1300URL: http://php.net/manual/en/book.uodbc.php
1301Requires: %{name}-common = %{epoch}:%{version}-%{release}
1302Requires: unixODBC >= 2.1.1-3
1303Provides: php(odbc)
1304Obsoletes: php-odbc < 4:5.3.28-7
1305
1306%description odbc
1307This is a dynamic shared object (DSO) for PHP that will add ODBC
1308support.
1309
1310%description odbc -l pl.UTF-8
1311Moduł PHP ze wsparciem dla ODBC.
1312
1313%description odbc -l pt_BR.UTF-8
1314Um módulo para aplicações PHP que usam ODBC.
1315
1316%package opcache
1317Summary: Zend Optimizer+ - PHP code optimizer
1318Summary(pl.UTF-8): Zend Optimizer+ - optymalizator kodu PHP
1319Group: Libraries
1320URL: https://wiki.php.net/rfc/optimizerplus
1321Requires: %{name}-common = %{epoch}:%{version}-%{release}
1322Provides: php(opcache) = %{opcachever}
1323
1324%description opcache
1325The Zend OPcache provides faster PHP execution through opcode caching
1326and optimization. It improves PHP performance by storing precompiled
1327script bytecode in the shared memory. This eliminates the stages of
1328reading code from the disk and compiling it on future access. In
1329addition, it applies a few bytecode optimization patterns that make
1330code execution faster.
1331
1332%description opcache -l pl.UTF-8
1333Zend OPcache zapewnia szybsze wykonywanie kodu PHP dzięki buforowaniu
1334i optymalizacji na poziomie opcode'ów. Poprawia wydajność PHP
1335przechowując prekompilowany bajtkod skryptu w pamięci współdzielonej.
1336Eliminuje etapy odczytu kodu z dysku i kompilacji przy późniejszym
1337dostępie. Ponadto wykonuje kilka wzorców optymalizacji bajtkodu,
1338czyniąc wykonywanie kodu szybszym.
1339
1340%package openssl
1341Summary: OpenSSL extension module for PHP
1342Summary(pl.UTF-8): Moduł OpenSSL dla PHP
1343Group: Libraries
1344URL: http://php.net/manual/en/book.openssl.php
1345Requires: %{name}-common = %{epoch}:%{version}-%{release}
1346Provides: php(openssl)
1347Obsoletes: php-openssl < 4:5.3.28-7
1348
1349%description openssl
1350This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1351support.
1352
1353%description openssl -l pl.UTF-8
1354Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1355
1356%package pcntl
1357Summary: Process Control extension module for PHP
1358Summary(pl.UTF-8): Moduł Process Control dla PHP
1359Group: Libraries
1360URL: http://php.net/manual/en/book.pcntl.php
1361Requires: %{name}-common = %{epoch}:%{version}-%{release}
1362Provides: php(pcntl)
1363Obsoletes: php-pcntl < 4:5.3.28-7
1364
1365%description pcntl
1366This is a dynamic shared object (DSO) for PHP that will add process
1367spawning and control support. It supports functions like fork(),
1368waitpid(), signal() etc.
1369
1370%description pcntl -l pl.UTF-8
1371Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1372Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1373
1374%package pcre
1375Summary: PCRE extension module for PHP
1376Summary(pl.UTF-8): Moduł PCRE dla PHP
1377Group: Libraries
1378Requires: %{name}-common = %{epoch}:%{version}-%{release}
1379Provides: php(pcre)
1380Obsoletes: php-pcre < 4:5.3.28-7
1381
1382%description pcre
1383This is a dynamic shared object (DSO) for PHP that will add Perl
1384Compatible Regular Expression support.
1385
1386%description pcre -l pl.UTF-8
1387Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1388(Perl Compatible Regular Expressions)
1389
1390%package pdo
1391Summary: PHP Data Objects (PDO)
1392Summary(pl.UTF-8): Obsługa PHP Data Objects (PDO)
1393Group: Libraries
1394URL: http://php.net/manual/en/book.pdo.php
1395Requires: %{name}-common = %{epoch}:%{version}-%{release}
1396Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1397Provides: %{name}(PDO_API) = %{php_pdo_api_version}
1398Provides: php(pdo)
1399Obsoletes: php-pdo < 4:5.3.28-7
1400Obsoletes: php-pecl-PDO
1401
1402%description pdo
1403This is a dynamic shared object (DSO) for PHP that will add PDO
1404support.
1405
1406%description pdo -l pl.UTF-8
1407Moduł PHP dodający obsługę PDO (PHP Data Objects).
1408
1409%package pdo-dblib
1410Summary: PHP Data Objects (PDO) FreeTDS support
1411Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1412Group: Libraries
1413URL: http://php.net/manual/en/ref.pdo-dblib.php
1414Requires: %{name}-common = %{epoch}:%{version}-%{release}
1415Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1416Provides: php(pdo_dblib)
1417Obsoletes: php-pdo-dblib < 4:5.3.28-7
1418
1419%description pdo-dblib
1420This is a dynamic shared object (DSO) for PHP that will add PDO
1421FreeTDS support.
1422
1423%description pdo-dblib -l pl.UTF-8
1424Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1425interfejsu PDO.
1426
1427%package pdo-firebird
1428Summary: PHP Data Objects (PDO) Firebird support
1429Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Firebirda
1430Group: Libraries
1431URL: http://php.net/manual/en/ref.pdo-firebird.php
1432Requires: %{name}-common = %{epoch}:%{version}-%{release}
1433Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1434Provides: php(pdo-firebird)
1435Provides: php(pdo_firebird)
1436Obsoletes: php-pdo-firebird < 4:5.3.28-7
1437Obsoletes: php-pecl-PDO_FIREBIRD
1438
1439%description pdo-firebird
1440This is a dynamic shared object (DSO) for PHP that will add PDO
1441Firebird support.
1442
1443%description pdo-firebird -l pl.UTF-8
1444Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1445interfejsu PDO.
1446
1447%package pdo-mysql
1448Summary: PHP Data Objects (PDO) MySQL support
1449Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1450Group: Libraries
1451URL: http://php.net/manual/en/ref.pdo-mysql.php
1452Requires: %{name}-common = %{epoch}:%{version}-%{release}
1453%{?with_mysqlnd:Requires: %{name}-mysqlnd = %{epoch}:%{version}-%{release}}
1454Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1455Provides: php(pdo-mysql)
1456Provides: php(pdo_mysql)
1457Obsoletes: php-pdo-mysql < 4:5.3.28-7
1458Obsoletes: php-pecl-PDO_MYSQL
1459
1460%description pdo-mysql
1461This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1462support.
1463
1464%description pdo-mysql -l pl.UTF-8
1465Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1466interfejsu PDO.
1467
1468%package pdo-oci
1469Summary: PHP Data Objects (PDO) Oracle support
1470Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1471Group: Libraries
1472URL: http://php.net/manual/en/ref.pdo-oci.php
1473%{?requires_php_extension}
1474%{?requires_php_pdo_module}
1475Provides: php(pdo-oci)
1476Provides: php(pdo_oci)
1477Obsoletes: php-pdo-oci < 4:5.3.28-7
1478Obsoletes: php-pecl-PDO_OCI
1479
1480%description pdo-oci
1481This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1482support.
1483
1484%description pdo-oci -l pl.UTF-8
1485Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1486interfejsu PDO.
1487
1488%package pdo-odbc
1489Summary: PHP Data Objects (PDO) ODBC support
1490Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą ODBC
1491Group: Libraries
1492URL: http://php.net/manual/en/ref.pdo-odbc.php
1493Requires: %{name}-common = %{epoch}:%{version}-%{release}
1494Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1495Provides: php(pdo-odbc)
1496Provides: php(pdo_odbc)
1497Obsoletes: php-pdo-odbc < 4:5.3.28-7
1498Obsoletes: php-pecl-PDO_ODBC
1499
1500%description pdo-odbc
1501This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1502support.
1503
1504%description pdo-odbc -l pl.UTF-8
1505Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1506interfejsu PDO.
1507
1508%package pdo-pgsql
1509Summary: PHP Data Objects (PDO) PostgreSQL support
1510Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1511Group: Libraries
1512URL: http://php.net/manual/en/ref.pdo-pgsql.php
1513Requires: %{name}-common = %{epoch}:%{version}-%{release}
1514Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1515Provides: php(pdo-pgsql)
1516Provides: php(pdo_pgsql)
1517Obsoletes: php-pdo-pgsql < 4:5.3.28-7
1518Obsoletes: php-pecl-PDO_PGSQL < 4:5.2.1-2
1519
1520%description pdo-pgsql
1521This is a dynamic shared object (DSO) for PHP that will add PDO
1522PostgreSQL support.
1523
1524%description pdo-pgsql -l pl.UTF-8
1525Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1526interfejsu PDO.
1527
1528%package pdo-sqlite
1529Summary: PHP Data Objects (PDO) SQLite support
1530Summary(pl.UTF-8): Moduł PHP Data Objects (PDO) z obsługą SQLite
1531Group: Libraries
1532URL: http://php.net/manual/en/ref.pdo-sqlite.php
1533Requires: %{name}-common = %{epoch}:%{version}-%{release}
1534Requires: %{name}-pdo = %{epoch}:%{version}-%{release}
1535Provides: php(pdo-sqlite)
1536Provides: php(pdo_sqlite)
1537Obsoletes: php-pdo-sqlite < 4:5.3.28-7
1538Obsoletes: php-pecl-PDO_SQLITE
1539
1540%description pdo-sqlite
1541This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1542support.
1543
1544%description pdo-sqlite -l pl.UTF-8
1545Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1546interfejsu PDO.
1547
1548%package pgsql
1549Summary: PostgreSQL database module for PHP
1550Summary(pl.UTF-8): Moduł bazy danych PostgreSQL dla PHP
1551Group: Libraries
1552URL: http://php.net/manual/en/book.pgsql.php
1553Requires: %{name}-common = %{epoch}:%{version}-%{release}
1554Provides: php(pgsql)
1555Obsoletes: php-pgsql < 4:5.3.28-7
1556
1557%description pgsql
1558This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1559database support.
1560
1561%description pgsql -l pl.UTF-8
1562Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1563
1564%description pgsql -l pt_BR.UTF-8
1565Um módulo para aplicações PHP que usam bancos de dados postgresql.
1566
1567%package phar
1568Summary: Phar archive module for PHP
1569Summary(pl.UTF-8): Moduł phar dla PHP
1570Group: Libraries
1571URL: http://php.net/manual/en/book.phar.php
1572Requires: %{name}-common = %{epoch}:%{version}-%{release}
1573Requires: %{name}-hash = %{epoch}:%{version}-%{release}
1574Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1575%{?with_alternatives:Requires: alternatives}
1576Suggests: %{name}-cli
1577# zlib is required by phar program, but as phar cli is optional should the dep be too
1578Suggests: %{name}-zlib
1579Provides: php(phar) = %{pharver}
1580Obsoletes: php-pecl-phar < %{pharver}
1581Obsoletes: php-phar < 4:5.3.28-7
1582Conflicts: php-ioncube < 4.0.9
1583
1584%description phar
1585This is a dynamic shared object (DSO) for PHP that will add phar
1586archive a support.
1587
1588%description phar -l pl.UTF-8
1589Moduł PHP umożliwiający dostęp do achiwów .phar.
1590
1591%package posix
1592Summary: POSIX extension module for PHP
1593Summary(pl.UTF-8): Moduł POSIX dla PHP
1594Group: Libraries
1595URL: http://php.net/manual/en/book.posix.php
1596Requires: %{name}-common = %{epoch}:%{version}-%{release}
1597Provides: php(posix)
1598Obsoletes: php-posix < 4:5.3.28-7
1599
1600%description posix
1601This is a dynamic shared object (DSO) for PHP that will add POSIX
1602functions support to PHP.
1603
1604%description posix -l pl.UTF-8
1605Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1606
1607%package pspell
1608Summary: pspell extension module for PHP
1609Summary(pl.UTF-8): Moduł pspell dla PHP
1610Group: Libraries
1611URL: http://php.net/manual/en/book.pspell.php
1612Requires: %{name}-common = %{epoch}:%{version}-%{release}
1613Provides: php(pspell)
1614Obsoletes: php-pspell < 4:5.3.28-7
1615
1616%description pspell
1617This is a dynamic shared object (DSO) for PHP that will add pspell
1618support to PHP. It allows to check the spelling of a word and offer
1619suggestions.
1620
1621%description pspell -l pl.UTF-8
1622Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1623sprawdzanie pisowni słowa i sugerowanie poprawek.
1624
1625%package readline
1626Summary: readline extension module for PHP
1627Summary(pl.UTF-8): Moduł readline dla PHP
1628Group: Libraries
1629URL: http://php.net/manual/en/book.readline.php
1630Requires: %{name}-cli = %{epoch}:%{version}-%{release}
1631Provides: php(readline)
1632Obsoletes: php-readline < 4:5.3.28-7
1633
1634%description readline
1635This PHP module adds support for readline functions (only for cli and
1636cgi SAPIs).
1637
1638%description readline -l pl.UTF-8
1639Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1640
1641%package recode
1642Summary: recode extension module for PHP
1643Summary(pl.UTF-8): Moduł recode dla PHP
1644Group: Libraries
1645URL: http://php.net/manual/en/book.recode.php
1646Requires: %{name}-common = %{epoch}:%{version}-%{release}
1647Requires: recode >= 3.5d-3
1648Provides: php(recode)
1649Obsoletes: php-recode < 4:5.3.28-7
1650
1651%description recode
1652This is a dynamic shared object (DSO) for PHP that will add recode
1653support.
1654
1655%description recode -l pl.UTF-8
1656Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1657bibliotekę recode).
1658
1659%package session
1660Summary: session extension module for PHP
1661Summary(pl.UTF-8): Moduł session dla PHP
1662Group: Libraries
1663Requires: %{name}-common = %{epoch}:%{version}-%{release}
1664Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1665Suggests: %{name}-hash = %{epoch}:%{version}-%{release}
1666Suggests: tmpwatch
1667Provides: php(session)
1668Obsoletes: php-session < 4:5.3.28-7
1669
1670%description session
1671This is a dynamic shared object (DSO) for PHP that will add session
1672support.
1673
1674%description session -l pl.UTF-8
1675Moduł PHP dodający obsługę sesji.
1676
1677%package shmop
1678Summary: Shared Memory Operations extension module for PHP
1679Summary(pl.UTF-8): Moduł shmop dla PHP
1680Group: Libraries
1681URL: http://php.net/manual/en/book.shmop.php
1682Requires: %{name}-common = %{epoch}:%{version}-%{release}
1683Provides: php(shmop)
1684Obsoletes: php-shmop < 4:5.3.28-7
1685
1686%description shmop
1687This is a dynamic shared object (DSO) for PHP that will add Shared
1688Memory Operations support.
1689
1690%description shmop -l pl.UTF-8
1691Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1692
1693%package simplexml
1694Summary: Simple XML extension module for PHP
1695Summary(pl.UTF-8): Moduł prostego rozszerzenia XML dla PHP
1696Group: Libraries
1697URL: http://php.net/manual/en/book.simplexml.php
1698Requires: %{name}-common = %{epoch}:%{version}-%{release}
1699Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1700Provides: php(simplexml)
1701Obsoletes: php-simplexml < 4:5.3.28-7
1702
1703%description simplexml
1704This is a dynamic shared object (DSO) for PHP that will add Simple XML
1705support.
1706
1707%description simplexml -l pl.UTF-8
1708Moduł PHP dodający obsługę prostego XML-a.
1709
1710%package snmp
1711Summary: SNMP extension module for PHP
1712Summary(pl.UTF-8): Moduł SNMP dla PHP
1713Group: Libraries
1714URL: http://php.net/manual/en/book.snmp.php
1715Requires: %{name}-common = %{epoch}:%{version}-%{release}
1716Requires: %{name}-sockets = %{epoch}:%{version}-%{release}
1717Requires: %{name}-spl = %{epoch}:%{version}-%{release}
1718Provides: php(snmp)
1719Obsoletes: php-snmp < 4:5.3.28-7
1720
1721%description snmp
1722This is a dynamic shared object (DSO) for PHP that will add SNMP
1723support.
1724
1725%description snmp -l pl.UTF-8
1726Moduł PHP dodający obsługę SNMP.
1727
1728%package soap
1729Summary: soap extension module for PHP
1730Summary(pl.UTF-8): Moduł soap dla PHP
1731Group: Libraries
1732URL: http://php.net/manual/en/book.soap.php
1733Requires: %{name}-common = %{epoch}:%{version}-%{release}
1734Provides: php(soap)
1735Obsoletes: php-soap < 4:5.3.28-7
1736
1737%description soap
1738This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1739support.
1740
1741%description soap -l pl.UTF-8
1742Moduł PHP dodający obsługę SOAP/WSDL.
1743
1744%package sockets
1745Summary: sockets extension module for PHP
1746Summary(pl.UTF-8): Moduł socket dla PHP
1747Group: Libraries
1748URL: http://php.net/manual/en/book.sockets.php
1749Requires: %{name}-common = %{epoch}:%{version}-%{release}
1750Provides: php(sockets)
1751Obsoletes: php-sockets < 4:5.3.28-7
1752
1753%description sockets
1754This is a dynamic shared object (DSO) for PHP that will add sockets
1755support.
1756
1757%description sockets -l pl.UTF-8
1758Moduł PHP dodający obsługę gniazdek.
1759
1760%package spl
1761Summary: Standard PHP Library module for PHP
1762Summary(pl.UTF-8): Moduł biblioteki standardowej (Standard PHP Library) dla PHP
1763Group: Libraries
1764URL: http://php.net/manual/en/book.spl.php
1765Requires: %{name}-common = %{epoch}:%{version}-%{release}
1766Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
1767Requires: %{name}-simplexml = %{epoch}:%{version}-%{release}
1768Provides: php(spl)
1769Obsoletes: php-spl < 4:5.3.28-7
1770
1771%description spl
1772This is a dynamic shared object (DSO) for PHP that will add Standard
1773PHP Library support.
1774
1775%description spl -l pl.UTF-8
1776Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
1777
1778%package sqlite3
1779Summary: SQLite3 extension module for PHP
1780Summary(pl.UTF-8): Moduł SQLite3 dla PHP
1781Group: Libraries
1782URL: http://php.net/manual/en/book.sqlite3.php
1783Requires: %{name}-common = %{epoch}:%{version}-%{release}
1784Provides: php(sqlite3) = %{sqlite3ver}
1785Obsoletes: php-sqlite3 < 4:5.3.28-7
1786
1787%description sqlite3
1788SQLite is a C library that implements an embeddable SQL database
1789engine. Programs that link with the SQLite library can have SQL
1790database access without running a separate RDBMS process.
1791
1792SQLite is not a client library used to connect to a big database
1793server. SQLite is the server. The SQLite library reads and writes
1794directly to and from the database files on disk.
1795
1796%description sqlite3 -l pl.UTF-8
1797SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1798bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1799dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1800RDBMS.
1801
1802SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1803baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1804zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1805dysku.
1806
1807%package sybase-ct
1808Summary: Sybase-CT extension module for PHP
1809Summary(pl.UTF-8): Moduł Sybase-CT dla PHP
1810Group: Libraries
1811URL: http://www.php.net/manual/en/book.sybase.php
1812Requires: %{name}-common = %{epoch}:%{version}-%{release}
1813Provides: php(sybase-ct)
1814Obsoletes: php-sybase
1815Obsoletes: php-sybase-ct < 4:5.3.28-7
1816
1817%description sybase-ct
1818This is a dynamic shared object (DSO) for PHP that will add Sybase and
1819MS SQL databases support through CT-lib.
1820
1821%description sybase-ct -l pl.UTF-8
1822Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1823CT-lib.
1824
1825%package sysvmsg
1826Summary: SysV msg extension module for PHP
1827Summary(pl.UTF-8): Moduł SysV msg dla PHP
1828Group: Libraries
1829URL: http://php.net/manual/en/book.sem.php
1830Requires: %{name}-common = %{epoch}:%{version}-%{release}
1831Provides: php(sysvmsg)
1832Obsoletes: php-sysvmsg < 4:5.3.28-7
1833
1834%description sysvmsg
1835This is a dynamic shared object (DSO) for PHP that will add SysV
1836message queues support.
1837
1838%description sysvmsg -l pl.UTF-8
1839Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1840
1841%package sysvsem
1842Summary: SysV sem extension module for PHP
1843Summary(pl.UTF-8): Moduł SysV sem dla PHP
1844Group: Libraries
1845URL: http://php.net/manual/en/book.sem.php
1846Requires: %{name}-common = %{epoch}:%{version}-%{release}
1847Provides: php(sysvsem)
1848Obsoletes: php-sysvsem < 4:5.3.28-7
1849
1850%description sysvsem
1851This is a dynamic shared object (DSO) for PHP that will add SysV
1852semaphores support.
1853
1854%description sysvsem -l pl.UTF-8
1855Moduł PHP umożliwiający korzystanie z semaforów SysV.
1856
1857%package sysvshm
1858Summary: SysV shm extension module for PHP
1859Summary(pl.UTF-8): Moduł SysV shm dla PHP
1860Group: Libraries
1861URL: http://php.net/manual/en/book.sem.php
1862Requires: %{name}-common = %{epoch}:%{version}-%{release}
1863Provides: php(sysvshm)
1864Obsoletes: php-sysvshm < 4:5.3.28-7
1865
1866%description sysvshm
1867This is a dynamic shared object (DSO) for PHP that will add SysV
1868Shared Memory support.
1869
1870%description sysvshm -l pl.UTF-8
1871Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1872
1873%package tests
1874Summary: Contains unit test files for PHP and extensions
1875Summary(pl.UTF-8): Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1876Group: Libraries
1877URL: http://qa.php.net/
1878Requires: %{name}-cli
1879%if "%{_rpmversion}" >= "5"
1880BuildArch: noarch
1881%endif
1882
1883%description tests
1884This package contains unit tests for PHP and its extensions.
1885
1886%description tests -l pl.UTF-8
1887Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń.
1888
1889%package tidy
1890Summary: Tidy extension module for PHP
1891Summary(pl.UTF-8): Moduł Tidy dla PHP
1892Group: Libraries
1893URL: http://php.net/manual/en/book.tidy.php
1894Requires: %{name}-common = %{epoch}:%{version}-%{release}
1895Requires: tidy
1896Provides: php(tidy)
1897Obsoletes: php-tidy < 4:5.3.28-7
1898
1899%description tidy
1900This is a dynamic shared object (DSO) for PHP that will add Tidy
1901support.
1902
1903%description tidy -l pl.UTF-8
1904Moduł PHP umożliwiający korzystanie z tidy.
1905
1906%package tokenizer
1907Summary: tokenizer extension module for PHP
1908Summary(pl.UTF-8): Moduł rozszerzenia tokenizer dla PHP
1909Group: Libraries
1910URL: http://php.net/manual/en/book.tokenizer.php
1911Requires: %{name}-common = %{epoch}:%{version}-%{release}
1912Provides: php(tokenizer)
1913Obsoletes: php-tokenizer < 4:5.3.28-7
1914
1915%description tokenizer
1916This is a dynamic shared object (DSO) for PHP that will add tokenizer
1917support.
1918
1919%description tokenizer -l pl.UTF-8
1920Moduł PHP dodający obsługę tokenizera do PHP.
1921
1922%package wddx
1923Summary: wddx extension module for PHP
1924Summary(pl.UTF-8): Moduł wddx dla PHP
1925Group: Libraries
1926URL: http://php.net/manual/en/book.wddx.php
1927Requires: %{name}-common = %{epoch}:%{version}-%{release}
1928# - wddx doesn't require session as it's disabled at compile time:
1929# if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1930# see also php.spec#rev1.120.2.22
1931#Requires: %{name}-session = %{epoch}:%{version}-%{release}
1932Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1933Provides: php(wddx)
1934Obsoletes: php-wddx < 4:5.3.28-7
1935
1936%description wddx
1937This is a dynamic shared object (DSO) for PHP that will add wddx
1938support.
1939
1940%description wddx -l pl.UTF-8
1941Moduł PHP umożliwiający korzystanie z wddx.
1942
1943%package xml
1944Summary: XML extension module for PHP
1945Summary(pl.UTF-8): Moduł XML dla PHP
1946Group: Libraries
1947URL: http://php.net/manual/en/book.xml.php
1948Requires: %{name}-common = %{epoch}:%{version}-%{release}
1949Provides: php(xml)
1950Obsoletes: php-xml < 4:5.3.28-7
1951
1952%description xml
1953This is a dynamic shared object (DSO) for PHP that will add XML
1954support. This extension lets you create XML parsers and then define
1955handlers for different XML events.
1956
1957%description xml -l pl.UTF-8
1958Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1959związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1960następnie definiować procedury obsługi dla różnych zdarzeń XML.
1961
1962%package xmlreader
1963Summary: XML Reader extension module for PHP
1964Summary(pl.UTF-8): Moduł XML Reader dla PHP
1965Group: Libraries
1966URL: http://php.net/manual/en/book.xmlreader.php
1967Requires: %{name}-common = %{epoch}:%{version}-%{release}
1968Requires: %{name}-dom = %{epoch}:%{version}-%{release}
1969Provides: php(xmlreader)
1970Obsoletes: php-xmlreader < 4:5.3.28-7
1971
1972%description xmlreader
1973This is a dynamic shared object (DSO) for PHP that will add XML Reader
1974support. The XMLReader extension is an XML Pull parser. The reader
1975acts as a cursor going forward on the document stream and stopping at
1976each node on the way.
1977
1978%description xmlreader -l pl.UTF-8
1979Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1980działa jako kursor przechodzący przez strumień dokumentu i
1981zatrzymujący się na każdym węźle po drodze.
1982
1983%package xmlrpc
1984Summary: xmlrpc extension module for PHP
1985Summary(pl.UTF-8): Moduł xmlrpc dla PHP
1986Group: Libraries
1987URL: http://php.net/manual/en/book.xmlrpc.php
1988Requires: %{name}-common = %{epoch}:%{version}-%{release}
1989Requires: %{name}-xml = %{epoch}:%{version}-%{release}
1990Provides: php(xmlrpc)
1991Obsoletes: php-xmlrpc < 4:5.3.28-7
1992
1993%description xmlrpc
1994This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1995support.
1996
1997%description xmlrpc -l pl.UTF-8
1998Moduł PHP dodający obsługę XMLRPC.
1999
2000%package xmlwriter
2001Summary: Fast, non-cached, forward-only means to write XML data
2002Summary(pl.UTF-8): Szybka, nie cachowana metoda zapisu danych w formacie XML
2003Group: Libraries
2004URL: http://php.net/manual/en/book.xmlwriter.php
2005Requires: %{name}-common = %{epoch}:%{version}-%{release}
2006Provides: php(xmlwriter)
2007Obsoletes: php-pecl-xmlwriter
2008Obsoletes: php-xmlwriter < 4:5.3.28-7
2009
2010%description xmlwriter
2011This extension wraps the libxml xmlWriter API. Represents a writer
2012that provides a non-cached, forward-only means of generating streams
2013or files containing XML data.
2014
2015%description xmlwriter -l pl.UTF-8
2016To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
2017zapisu dostarczającą nie cachowanych metod generowania strumieni lub
2018plików zawierających dane XML.
2019
2020%package xsl
2021Summary: xsl extension module for PHP
2022Summary(pl.UTF-8): Moduł xsl dla PHP
2023Group: Libraries
2024URL: http://php.net/manual/en/book.xsl.php
2025Requires: %{name}-common = %{epoch}:%{version}-%{release}
2026Requires: %{name}-dom = %{epoch}:%{version}-%{release}
2027Requires: libxslt >= 1.0.18
2028Provides: php(xsl)
2029Obsoletes: php-xsl < 4:5.3.28-7
2030# actually not true, functionality is similar, but API differs
2031Obsoletes: php-xslt <= 3:4.3.8-1
2032
2033%description xsl
2034This is a dynamic shared object (DSO) for PHP that will add new XSL
2035support (using libxslt).
2036
2037%description xsl -l pl.UTF-8
2038Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
2039
2040%package zip
2041Summary: Zip management extension
2042Summary(pl.UTF-8): Zarządzanie archiwami zip
2043Group: Libraries
2044URL: http://php.net/manual/en/book.zip.php
2045Requires: %{name}-common = %{epoch}:%{version}-%{release}
2046%{?with_system_libzip:Requires: libzip >= 0.10.1-2}
2047Provides: php(zip) = %{zipver}
2048Obsoletes: php-pecl-zip < %{zipver}
2049Obsoletes: php-zip < 4:5.3.28-7
2050
2051%description zip
2052Zip is an extension to create, modify and read zip files.
2053
2054%description zip -l pl.UTF-8
2055Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
2056odczyt archiwów zip.
2057
2058%package zlib
2059Summary: Zlib extension module for PHP
2060Summary(pl.UTF-8): Moduł zlib dla PHP
2061Group: Libraries
2062URL: http://php.net/manual/en/book.zlib.php
2063Requires: %{name}-common = %{epoch}:%{version}-%{release}
2064Provides: php(zlib)
2065Obsoletes: php-zlib < 4:5.3.28-7
2066
2067%description zlib
2068This is a dynamic shared object (DSO) for PHP that will add zlib
2069compression support to PHP.
2070
2071%description zlib -l pl.UTF-8
2072Moduł PHP umożliwiający używanie kompresji zlib.
2073
2074%prep
2075%setup -q -n %{orgname}-%{version}%{?subver}
2076cp -p php.ini-production php.ini
2077%patch0 -p1
2078%patch1 -p1
2079%patch2 -p1
2080%patch3 -p1
2081%patch4 -p1
2082%patch5 -p1
2083%patch6 -p1
2084%patch7 -p1
2085%{?with_milter:%patch8 -p1}
2086%patch9 -p1
2087%patch10 -p1
2088%patch14 -p1
2089%patch17 -p1
2090%patch18 -p1
2091%patch21 -p1
2092%patch22 -p1
2093%patch23 -p1
2094%patch24 -p1
2095%patch25 -p1
2096%patch26 -p1
2097%patch27 -p1
2098%patch29 -p1
2099%patch31 -p1
2100%if "%{pld_release}" != "ac"
2101%patch34 -p1
2102%endif
2103%{?with_sybase_ct:%patch35 -p1}
2104%patch36 -p1
2105%patch37 -p1
2106%patch38 -p1
2107%patch39 -p1
2108%if %{with fpm}
2109%if 0
2110# create split php-fpm.conf patch. review (restore other diffs) and commit
2111cp sapi/fpm/php-fpm.conf.in{,.orig}
2112%{__sed} -n -e '/; Start a new pool named/,$p' sapi/fpm/php-fpm.conf.in > sapi/fpm/php-fpm.conf-d.in
2113%{__sed} -i -e '/; Include one or more files/,/include=etc\/fpm\.d/d' sapi/fpm/php-fpm.conf.in
2114%{__sed} -i -e '/; Start a new pool named/,$d' sapi/fpm/php-fpm.conf.in
2115set +e
2116cd ..
2117diff -u %{orgname}-%{version}/sapi/fpm/php-fpm.conf.in{.orig,} > %{PATCH69}
2118diff -u /dev/null %{orgname}-%{version}/sapi/fpm/php-fpm.conf-d.in >> %{PATCH69}
2119exit 1
2120%else
2121%patch69 -p1
2122%endif
2123%patch41 -p1
2124%patch42 -p1
2125%endif
2126%patch43 -p1
2127%patch44 -p1
2128#%patch45 -p1 # imap annotations. fixme
2129#%patch46 -p1 # imap myrights. fixme
2130%if %{with suhosin}
2131%patch47 -p1
2132%endif
2133%patch50 -p1
2134%patch51 -p1
2135%patch52 -p1
2136%patch53 -p1
2137%undos ext/spl/tests/SplFileInfo_getInode_basic.phpt
2138%patch55 -p1
2139%patch59 -p1
2140%patch60 -p1
2141%patch62 -p1
2142%{?with_system_libzip:%patch65 -p1}
2143%patch66 -p1
2144%patch67 -p1
2145
2146%patch70 -p1
2147%patch72 -p1
2148%patch73 -p1
2149
2150%{__sed} -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
2151
2152# cleanup backups after patching
2153find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
2154
2155# com_dotnet is Win32-only
2156%{__rm} -r ext/com_dotnet
2157
2158# conflict seems to be resolved by recode patches
2159%{__rm} ext/recode/config9.m4
2160
2161# remove all bundled libraries not to link with them accidentally
2162%{__rm} -r ext/sqlite3/libsqlite
2163#%{__rm} -r ext/bcmath/libbcmath
2164#%{__rm} -r ext/date/lib
2165#%{__rm} -r ext/fileinfo/libmagic
2166#%{__rm} -r ext/dba/libcdb
2167#%{__rm} -r ext/dba/libflatfile
2168#%{__rm} -r ext/dba/libinifile
2169#%{__rm} -r ext/gd/libgd
2170#%{__rm} -r ext/mbstring/libmbfl
2171#%{__rm} -r ext/mbstring/oniguruma
2172%{__rm} -r ext/pcre/pcrelib
2173#%{__rm} -r ext/soap/interop
2174%{__rm} -r ext/xmlrpc/libxmlrpc
2175#%{__rm} -r ext/zip/lib
2176%{__rm} ext/date/lib/timezonedb.h
2177
2178cp -pf Zend/LICENSE{,.Zend}
2179install -p %{SOURCE13} dep-tests.sh
2180
2181# breaks build
2182sed -i -e 's#-fvisibility=hidden##g' configure*
2183
2184# disable broken tests
2185# says just "Terminated" twice and fails
2186%{__mv} sapi/cli/tests/022.phpt{,.broken}
2187
2188# really dumb test, executable binary name is .libs/ something when building
2189# https://bugs.php.net/bug.php?id=54514
2190%{__mv} tests/basic/bug54514.phpt{,.disable}
2191
2192# breaks whole testsuite unexpectedly:
2193# Fatal error: Call to undefined function gzencode() in run-tests.php on line 1714
2194# probably broken as zlib is built as shared
2195%{__mv} ext/soap/tests/server019.phpt{,disable}
2196# Fatal error: Call to undefined function gzcompress() in run-tests.php on line 1728
2197%{__mv} ext/soap/tests/server020.phpt{,disable}
2198
2199# runs out of memory and kills carme vserver
2200# PASS Bug #39438 (Fatal error: Out of memory) [Zend/tests/bug39438.phpt]
2201%{__mv} Zend/tests/bug39438.phpt{,.disable}
2202
2203# php-5.3.3/ext/standard/tests/file/statpage.phpt
2204%{__rm} ext/standard/tests/file/statpage.phpt
2205
2206# idiotic test, it will fail if somebody else makes space on disk or if disk
2207# space is not yet allocated (xfs). report upstream to advice bogus test is
2208# probably pointless.
2209%{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
2210
2211%ifarch %{x8664}
2212# all pdo_sqlite, sqlite3 tests die with Aborted on carme
2213%{__rm} -r ext/pdo_sqlite/tests
2214%{__rm} -r ext/sqlite3/tests
2215%endif
2216
2217# ----- Manage known as failed test -------
2218# affected by systzdata patch
2219%{__rm} ext/date/tests/timezone_location_get.phpt
2220%{__rm} ext/date/tests/timezone_version_get.phpt
2221%{__rm} ext/date/tests/timezone_version_get_basic1.phpt
2222# Should be skipped but fails sometime
2223%{__rm} ext/standard/tests/file/file_get_contents_error001.phpt
2224# fails sometimes
2225%{__rm} ext/sockets/tests/mcast_ipv?_recv.phpt
2226# causes stack exhausion
2227%{__rm} Zend/tests/bug54268.phpt
2228
2229# avoid issues when two builds run simultaneously
2230%ifarch %{x8664}
2231sed -e 's/64321/64322/' -i ext/openssl/tests/*.phpt
2232%endif
2233
2234# skip XFAILs
2235# no point testing stuff that is knowingly broken
2236find -name '*.phpt' | xargs grep '^--XFAIL--' -l | xargs rm -v
2237
2238env \
2239%ifarch %{ix86}
2240ix86= x8664=: \
2241%endif
2242%ifarch %{x8664}
2243ix86=: x8664= \
2244%endif
2245%ifarch x32
2246ix86=: x8664=: \
2247%endif
2248 sh -xe %{_sourcedir}/skip-tests.sh
2249
2250%build
2251API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2252if [ $API != %{php_api_version} ]; then
2253 echo "Set %%define php_api_version to $API and re-run."
2254 exit 1
2255fi
2256
2257API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2258if [ $API != %{zend_module_api} ]; then
2259 echo "Set %%define zend_module_api to $API and re-run."
2260 exit 1
2261fi
2262
2263API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2264if [ $API != %{zend_extension_api} ]; then
2265 echo "Set %%define zend_extension_api to $API and re-run."
2266 exit 1
2267fi
2268
2269API=$(awk '/#define PDO_DRIVER_API/{print $3}' ext/pdo/php_pdo_driver.h)
2270if [ $API != %{php_pdo_api_version} ]; then
2271 echo "Set %%define php_pdo_api_version to $API and re-run."
2272 exit 1
2273fi
2274
2275# Check for some extension version
2276ver=$(sed -n '/#define PHP_FILEINFO_VERSION /{s/.* "//;s/".*$//;p}' ext/fileinfo/php_fileinfo.h)
2277if test "$ver" != "%{fileinfover}"; then
2278 : Error: Upstream FILEINFO version is now ${ver}, expecting %{fileinfover}.
2279 : Update the fileinfover macro and rebuild.
2280 exit 1
2281fi
2282ver=$(sed -n '/#define PHP_PHAR_VERSION /{s/.* "//;s/".*$//;p}' ext/phar/php_phar.h)
2283if test "$ver" != "%{pharver}"; then
2284 : Error: Upstream PHAR version is now ${ver}, expecting %{pharver}.
2285 : Update the pharver macro and rebuild.
2286 exit 1
2287fi
2288ver=$(sed -n '/#define PHP_SQLITE3_VERSION/{s/.* "//;s/".*$//;p}' ext/sqlite3/php_sqlite3.h)
2289if test "$ver" != "%{sqlite3ver}"; then
2290 : Error: Upstream Sqlite3 version is now ${ver}, expecting %{sqlite3ver}.
2291 : Update the sqlite3ver macro and rebuild.
2292 exit 1
2293fi
2294ver=$(sed -n '/#define PHP_ZIP_VERSION /{s/.* "//;s/".*$//;p}' ext/zip/php_zip.h)
2295if test "$ver" != "%{zipver}"; then
2296 : Error: Upstream ZIP version is now ${ver}, expecting %{zipver}.
2297 : Update the zipver macro and rebuild.
2298 exit 1
2299fi
2300ver=$(sed -n '/#define PHP_JSON_VERSION /{s/.* "//;s/".*$//;p}' ext/json/php_json.h)
2301if test "$ver" != "%{jsonver}"; then
2302 : Error: Upstream JSON version is now ${ver}, expecting %{jsonver}.
2303 : Update the jsonver macro and rebuild.
2304 exit 1
2305fi
2306ver=$(sed -n '/#define PHP_ZENDOPCACHE_VERSION /{s/.* "//;s/".*$//;p}' ext/opcache/ZendAccelerator.h)
2307if test "$ver" != "%{opcachever}"; then
2308 : Error: Upstream Zend Opcache version is now ${ver}, expecting %{opcachever}.
2309 : Update the opcachever macro and rebuild.
2310 exit 1
2311fi
2312ver=$(sed -n '/#define PHPDBG_VERSION /{s/.* "//;s/".*$//;p}' sapi/phpdbg/phpdbg.h)
2313if test "$ver" != "%{phpdbgver}"; then
2314 : Error: Upstream phpdbg version is now ${ver}, expecting %{phpdbgver}.
2315 : Update the phpdbgver macro and rebuild.
2316 exit 1
2317fi
2318ver=$(sed -rne 's,.*<version>(.+)</version>,\1,p' ext/bz2/package.xml)
2319if test "$ver" != "%{bz2ver}"; then
2320 : Error: Upstream BZIP2 version is now ${ver}, expecting %{bz2ver}.
2321 : Update the bz2ver macro and rebuild.
2322 exit 1
2323fi
2324ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
2325if test "$ver" != "%{enchantver}"; then
2326 : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
2327 : Update the enchantver macro and rebuild.
2328 exit 1
2329fi
2330ver=$(awk '/#define PHP_HASH_EXTVER/ {print $3}' ext/hash/php_hash.h | xargs)
2331if test "$ver" != "%{hashver}"; then
2332 : Error: Upstream HASH version is now ${ver}, expecting %{hashver}.
2333 : Update the hashver macro and rebuild.
2334 exit 1
2335fi
2336ver=$(sed -n '/#define PHP_INTL_VERSION /{s/.* "//;s/".*$//;p}' ext/intl/php_intl.h)
2337if test "$ver" != "%{intlver}"; then
2338 : Error: Upstream Intl version is now ${ver}, expecting %{intlver}.
2339 : Update the intlver macro and rebuild.
2340 exit 1
2341fi
2342
2343export EXTENSION_DIR="%{php_extensiondir}"
2344# configure once (for faster debugging purposes)
2345if [ ! -f _built-conf ]; then
2346 # now remove Makefile copies
2347 rm -f Makefile.{cgi-fcgi,fpm,cli,apxs1,apxs2,litespeed,phpdbg,milter}
2348 %{__libtoolize}
2349 %{__aclocal}
2350 cp -f /usr/share/automake/config.* .
2351 ./buildconf --force
2352 touch _built-conf
2353fi
2354export PROG_SENDMAIL="/usr/lib/sendmail"
2355export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
2356 -I%{_includedir}/xmlrpc-epi"
2357
2358sapis="
2359cli
2360%if %{with cgi}
2361cgi-fcgi
2362%endif
2363%if %{with litespeed}
2364litespeed
2365%endif
2366%if %{with fpm}
2367fpm
2368%endif
2369%if %{with embed}
2370embed
2371%endif
2372%if %{with apache1}
2373apxs1
2374%endif
2375%if %{with apache2}
2376apxs2
2377%endif
2378%if %{with phpdbg}
2379phpdbg
2380%endif
2381%if %{with milter}
2382milter
2383%endif
2384"
2385for sapi in $sapis; do
2386 : SAPI $sapi
2387 # skip if already configured (for faster debugging purposes)
2388 [ -f Makefile.$sapi ] && continue
2389
2390 sapi_args=''
2391 case $sapi in
2392 cgi-fcgi)
2393 sapi_args='--disable-cli'
2394 ;;
2395 cli)
2396 sapi_args='--disable-cgi %{?with_gcov:--enable-gcov}'
2397 ;;
2398 fpm)
2399 sapi_args='--disable-cli --disable-cgi --enable-fpm'
2400 ;;
2401 embed)
2402 sapi_args='--disable-cli --disable-cgi --enable-embed'
2403 ;;
2404 apxs1)
2405 ver=$(rpm -q --qf '%{V}' apache1-devel)
2406 sapi_args="--disable-cli --disable-cgi --with-apxs=%{apxs1} --with-apache-version=$ver"
2407 ;;
2408 apxs2)
2409 ver=$(rpm -q --qf '%{V}' apache-devel)
2410 sapi_args="--disable-cli --disable-cgi --with-apxs2=%{apxs2} --with-apache-version=$ver"
2411 ;;
2412 litespeed)
2413 sapi_args='--disable-cli --disable-cgi --with-litespeed'
2414 ;;
2415 phpdbg)
2416 sapi_args='--disable-cli --disable-cgi --enable-phpdbg %{?debug:--enable-phpdbg-debug}'
2417 ;;
2418 milter)
2419 sapi_args='--disable-cli --disable-cgi --with-milter'
2420 ;;
2421 esac
2422
2423 %configure \
2424 EXTRA_LDFLAGS="%{rpmldflags}" \
2425 $sapi_args \
2426%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2427 --cache-file=config.cache \
2428%endif
2429 --with-libdir=%{_lib} \
2430 --with-config-file-path=%{_sysconfdir} \
2431 --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2432 --with-system-tzdata \
2433 --%{!?with_debug:dis}%{?with_debug:en}able-debug \
2434 %{?with_zts:--enable-maintainer-zts} \
2435 --enable-inline-optimization \
2436 %{__enable_disable bcmath bcmath shared} \
2437 %{__enable_disable calendar calendar shared} \
2438 %{__enable_disable ctype ctype shared} \
2439 %{__enable_disable dba dba shared} \
2440 %{__enable_disable dom dom shared} \
2441 %{?with_systemtap:--enable-dtrace} \
2442 %{__enable_disable exif exif shared} \
2443 %{__enable_disable fileinfo fileinfo shared} \
2444 %{__enable_disable ftp ftp shared} \
2445 --enable-gd-native-ttf \
2446 %{?with_intl:--enable-intl=shared} \
2447 --enable-libxml \
2448 %{__enable_disable mbstring mbstring shared,all} \
2449 --enable-mbregex \
2450 %{__enable_disable pcntl pcntl shared} \
2451 %{__enable_disable pdo pdo shared} \
2452 %{__enable_disable json json shared} \
2453 %{__enable_disable hash hash shared} \
2454 --enable-xmlwriter=shared \
2455%if %{with fpm}
2456 --with-fpm-user=http \
2457 --with-fpm-group=http \
2458%endif
2459%if %{with pdo_dblib}
2460 --with-pdo-dblib=shared \
2461%endif
2462%if %{with interbase} && %{without interbase_inst}
2463 --with-pdo-firebird=shared,/usr \
2464%endif
2465 %{?with_mhash:--with-mhash=yes} \
2466 --with-mysql-sock=/var/lib/mysql/mysql.sock \
2467 %{__with_without pdo_mysql pdo-mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2468 %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2469 %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2470 %{?with_pgsql:--with-pdo-pgsql=shared} \
2471 %{?with_pdo_sqlite:--with-pdo-sqlite=shared,/usr} \
2472 %{?with_webp:--with-vpx-dir=/usr} \
2473 --without-libexpat-dir \
2474 %{__enable_disable posix posix shared} \
2475 --enable-shared \
2476 %{__enable_disable session session shared} \
2477 --enable-shmop=shared \
2478 --enable-simplexml=shared \
2479 --enable-sysvmsg=shared \
2480 --enable-sysvsem=shared \
2481 --enable-sysvshm=shared \
2482 --enable-soap=shared \
2483 --enable-sockets=shared \
2484 --enable-tokenizer=shared \
2485 %{?with_wddx:--enable-wddx=shared} \
2486 --enable-xml=shared \
2487 --enable-xmlreader=shared \
2488 %{__with_without bz2 bz2 shared} \
2489 %{__with_without curl curl shared} \
2490 --with-db4 \
2491 %{__with_without iconv iconv shared} \
2492 %{?with_enchant:--with-enchant=shared,/usr} \
2493 --with-freetype-dir=shared \
2494 %{__with_without gettext gettext shared} \
2495 %{__with_without gd gd shared%{?with_system_gd:,/usr}} \
2496 --with-gdbm \
2497 %{__with_without gmp gmp shared} \
2498 %{?with_imap:--with-imap=shared --with-imap-ssl} \
2499 %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2500 --with-jpeg-dir=/usr \
2501 %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2502 %{__with_without mcrypt mcrypt shared} \
2503 %{?with_mm:--with-mm} \
2504 %{?with_mssql:--with-mssql=shared} \
2505 %{?with_mysqlnd:--enable-mysqlnd=shared} \
2506 %{__with_without mysql mysql shared,%{!?with_mysqlnd:/usr}%{?with_mysqlnd:mysqlnd}} \
2507 %{?with_mysqli:--with-mysqli=shared,%{!?with_mysqlnd:/usr/bin/mysql_config}%{?with_mysqlnd:mysqlnd}} \
2508 %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2509 %{__enable_disable opcache opcache shared} \
2510 %{?with_openssl:--with-openssl=shared} \
2511 %{?with_kerberos5:--with-kerberos} \
2512 --with-tcadb=/usr \
2513 %{__with_without pcre pcre-regex /usr} \
2514 %{__enable_disable filter filter shared} \
2515 --with-pear=%{php_pear_dir} \
2516 %{__with_without pgsql pgsql shared,/usr} \
2517 %{__enable_disable phar phar shared} \
2518 --with-png-dir=/usr \
2519 %{?with_pspell:--with-pspell=shared} \
2520 %{__with_without readline readline shared} \
2521 %{?with_recode:--with-recode=shared} \
2522 %{__with_without ereg regex system} \
2523 %{?with_snmp:--with-snmp=shared} \
2524 %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2525 %{!?with_pdo_sqlite:--without-pdo-sqlite} \
2526 %{__with_without sqlite3 sqlite3 shared,/usr} \
2527 --with-t1lib=shared \
2528 %{?with_tidy:--with-tidy=shared} \
2529 %{?with_odbc:--with-unixODBC=shared,/usr} \
2530 %{__with_without xmlrpc xmlrpc shared,/usr} \
2531 --with-xsl=shared \
2532 --with-zlib=shared \
2533 --with-zlib-dir=shared,/usr \
2534 %{?with_system_libzip:--with-libzip} \
2535 --enable-zip=shared,/usr \
2536
2537 # save for debug
2538 cp -f Makefile Makefile.$sapi
2539 cp -f main/php_config.h php_config.h.$sapi
2540 cp -f config.log config.log.$sapi
2541done
2542
2543# as we build each SAPI in own make, adjust php-config.in forehead
2544sapis=$(%{__sed} -rne 's/^PHP_INSTALLED_SAPIS = (.+)/\1/p' Makefile.* | tr ' ' '\n' | sort -u | xargs)
2545%{__sed} -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," scripts/php-config.in
2546
2547# must make libphp_common first, so modules can link against it.
2548cp -af php_config.h.cli main/php_config.h
2549cp -af Makefile.cli Makefile
2550%{__make} libphp_common.la
2551# hack: MYSQLND_SHARED_LIBADD not initialized
2552%{__make} build-modules \
2553 MYSQLND_SHARED_LIBADD="-lssl -lcrypto"
2554
2555%if %{with apache1}
2556%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2557%endif
2558
2559%if %{with apache2}
2560%{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2561%endif
2562
2563%if %{with litespeed}
2564%{__make} -f Makefile.litespeed litespeed
2565%endif
2566
2567%if %{with embed}
2568%{__make} -f Makefile.embed libphp5.la
2569%endif
2570
2571%if %{with phpdbg}
2572# PHP_READLINE_LIBS is empty, so force readline here
2573%{__make} -f Makefile.phpdbg phpdbg \
2574 PHPDBG_EXTRA_LIBS=-lreadline
2575%endif
2576
2577%if %{with milter}
2578%{__make} -f Makefile.milter milter
2579%endif
2580
2581# CGI/FCGI
2582%if %{with cgi}
2583cp -pf php_config.h.cgi-fcgi main/php_config.h
2584%{__make} -f Makefile.cgi-fcgi
2585[ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = "cgi-fcgi" ]
2586%endif
2587
2588# PHP FPM
2589%if %{with fpm}
2590cp -pf php_config.h.fpm main/php_config.h
2591%{__make} -f Makefile.fpm
2592[ $(./sapi/fpm/php-fpm -n -m | grep cgi-fcgi) = "cgi-fcgi" ]
2593%endif
2594
2595# CLI
2596cp -pf php_config.h.cli main/php_config.h
2597%{__make} -f Makefile.cli
2598[ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -qn)" = "cli" ]
2599
2600# check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2601./sapi/cli/php -n -dextension_dir=modules -dextension=xml.so -r '$p = xml_parser_create(); xml_parse_into_struct($p, "<x>&lt;</x>", $vals, $index); exit((int )empty($vals[0]["value"]));'
2602
2603# Generate stub .ini files for each extension
2604rm -rf conf.d
2605install -d conf.d
2606generate_inifiles() {
2607 for so in modules/*.so; do
2608 mod=$(basename $so .so)
2609 ext=extension
2610 # opcache.so is zend extension
2611 nm $so | grep -q zend_extension_entry && ext=zend_extension
2612 conf="$mod.ini"
2613 # xml needs to be loaded before wddx
2614 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2615 # pre needs to be loaded before SPL
2616 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2617 # spl needs to be loaded before mysqli
2618 [ "$mod" = "spl" ] && conf="SPL.ini"
2619 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2620 [ "$mod" = "session" ] && conf="Session.ini"
2621 # mysqlnd needs to be loaded before mysql,mysqli,pdo_mysqli
2622 [ "$mod" = "mysqlnd" ] && conf="MySQLND.ini"
2623 echo "+ $conf"
2624 cat > conf.d/$conf <<-EOF
2625 ; Enable $mod $ext module
2626 $ext=$mod.so
2627 EOF
2628 done
2629}
2630generate_inifiles
2631
2632# Check that the module inner-dependencies are intact
2633PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2634if grep -v OK dep-tests.log; then
2635 echo >&2 "The results above were not expected"
2636 exit 1
2637fi
2638
2639%if %{with gcov}
2640# Use CLI SAPI
2641cp -pf php_config.h.cli main/php_config.h
2642cp -pf Makefile.cli Makefile
2643%{__make} lcov
2644# you really don't want to package result of gcov build
2645exit 1
2646%endif
2647
2648cat <<'EOF' > run-tests.sh
2649#!/bin/sh
2650export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2651export SKIP_ONLINE_TESTS=1
2652unset TZ LANG LC_ALL || :
2653%{__make} test \
2654 EXTENSION_DIR=modules \
2655 PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2656 RUN_TESTS_SETTINGS="-q $*"
2657EOF
2658chmod +x run-tests.sh
2659
2660%if %{with tests}
2661# Run tests, using the CLI SAPI
2662cp -pf php_config.h.cli main/php_config.h
2663cp -pf Makefile.cli Makefile
2664
2665./run-tests.sh -w failed.log -s tests.log || {
2666rc=$?
2667
2668# collect failed tests into cleanup script used in prep.
2669sed -ne '/^FAILED TEST SUMMARY/,/^===/p' tests.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2670sed -ne '/^via/d;/\[.*\]/{s/\t*\(.*\) \[\(.*\)\]\(.*\)/# \1\3\nmv \2{,.skip}/p}' tests-failed.log \
2671 >> %{_sourcedir}/skip-tests.sh
2672
2673# if on builders, dump test log
2674tty -q || cat tests.log
2675
2676test ! -s failed.log
2677exit $rc
2678}
2679%endif
2680
2681%install
2682rm -rf $RPM_BUILD_ROOT
2683install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2684 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2685 $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2686 $RPM_BUILD_ROOT%{_mandir}/man{1,8} \
2687
2688cp -pf php_config.h.cli main/php_config.h
2689cp -pf Makefile.cli Makefile
2690%{__make} install \
2691 phpbuilddir=%{_libdir}/%{name}/build \
2692 INSTALL_ROOT=$RPM_BUILD_ROOT
2693
2694%if %{without default_php}
2695# version the .phar files
2696%{__mv} $RPM_BUILD_ROOT%{_bindir}/phar{,%{php_suffix}}.phar
2697%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{php_suffix}}.1
2698%endif
2699%if %{with alternatives}
2700# touch for ghost
2701%{__rm} $RPM_BUILD_ROOT%{_bindir}/phar
2702touch $RPM_BUILD_ROOT%{_bindir}/phar
2703touch $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
2704%endif
2705
2706# version suffix
2707v=$(echo %{version} | cut -d. -f1-2)
2708
2709# install Apache1 DSO module
2710%if %{with apache1}
2711libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2712%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2713ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so
2714%endif
2715
2716# install Apache2 DSO module
2717%if %{with apache2}
2718libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2719%{__mv} $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2720ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2721%endif
2722
2723# install litespeed sapi
2724%if %{with litespeed}
2725libtool --mode=install install -p sapi/litespeed/php $RPM_BUILD_ROOT%{_sbindir}/%{name}.litespeed
2726%endif
2727
2728%if %{with phpdbg}
2729%{__make} -f Makefile.phpdbg install-phpdbg \
2730 INSTALL="libtool --mode=install install -p" \
2731 INSTALL_ROOT=$RPM_BUILD_ROOT
2732
2733%if %{without default_php}
2734# version the phpdbg files
2735%{__mv} $RPM_BUILD_ROOT%{_bindir}/phpdbg{,%{ver_suffix}}
2736%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/phpdbg{,%{ver_suffix}}.1
2737%endif
2738%endif
2739
2740%if %{with milter}
2741%{__make} -f Makefile.milter install-milter \
2742 INSTALL_ROOT=$RPM_BUILD_ROOT
2743%endif
2744
2745libtool --mode=install install -p libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2746
2747# install CGI/FCGI
2748%if %{with cgi}
2749# install-cgi
2750libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2751ln -sf %{name}.cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2752cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2753%endif
2754
2755# install FCGI PM
2756%if %{with fpm}
2757install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2758libtool --mode=install install -p sapi/fpm/php-fpm $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2759cp -p sapi/fpm/php-fpm.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}-fpm.8
2760cp -p sapi/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}
2761cp -p sapi/fpm/php-fpm.conf-d $RPM_BUILD_ROOT%{_sysconfdir}/fpm.d/www.conf
2762install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2763install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2764install -d $RPM_BUILD_ROOT/etc/logrotate.d
2765cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2766%if "%{pld_release}" == "ac"
2767%{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2768%endif
2769
2770%if %{with alternatives}
2771# touch for ghost for alternatives
2772touch $RPM_BUILD_ROOT%{_sbindir}/php-fpm
2773%endif
2774
2775%{__sed} -i -e '
2776 s#/usr/lib/php#%{php_extensiondir}#g
2777 s#/etc/php/#%{_sysconfdir}/#g
2778 s#@processname@#%{name}-fpm#g
2779' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/php-fpm.conf,%{_sysconfdir}/fpm.d/www.conf}
2780%endif
2781
2782# install Embedded API
2783%if %{with embed}
2784# we could use install-headers from Makefile.embed, but that would reinstall all headers
2785# install-sapi installs to wrong dir, so just do it all manually
2786install -d $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2787install -p libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}
2788cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed
2789%endif
2790
2791# install CLI
2792# versioned suffix is always installed
2793libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix}
2794cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1
2795echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2796ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php
2797
2798cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2799cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2800
2801%if %{with apache1}
2802cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2803cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2804%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2805%endif
2806
2807%if %{with apache2}
2808cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2809cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2810%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2811%endif
2812
2813# ensure that paths are correct for current php version and arch
2814grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2815%{__sed} -i -e '
2816 s#/usr/lib/php#%{php_extensiondir}#g
2817 s#/etc/php/#%{_sysconfdir}/#g
2818'
2819
2820install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2821cp -p conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2822
2823# per SAPI ini directories
2824install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi-fcgi,cli,apache,apache2handler}.d
2825
2826# for CLI SAPI only
2827%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/readline.ini,cli.d}
2828
2829# use system automake and {lib,sh}tool
2830ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2831ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2832for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2833 f=%{_aclocaldir}/$fn
2834 test -f $f || continue
2835 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2836done
2837for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2838 f=/usr/share/libtool/$fn
2839 test -f $f || continue
2840 ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2841 break
2842done
2843sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2844
2845# for php-pecl-mailparse
2846install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2847cp -p ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2848
2849# tests
2850install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2851install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2852cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2853
2854# fix install paths, avoid evil rpaths
2855sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2856# better solution?
2857sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2858
2859# somewhy there are installed static versions we don't use
2860%if %{with apache1} || %{with apache2}
2861%{__rm} $RPM_BUILD_ROOT%{_libdir}/apache*/libphp*.a
2862%{__rm} $RPM_BUILD_ROOT%{_libdir}/libphp*.a
2863%{__rm} $RPM_BUILD_ROOT%{php_extensiondir}/*.a
2864%endif
2865
2866%clean
2867rm -rf $RPM_BUILD_ROOT
2868
2869%post -n apache1-mod_%{name}
2870if [ "$1" = "1" ]; then
2871 %service -q apache restart
2872fi
2873
2874%postun -n apache1-mod_%{name}
2875if [ "$1" = "0" ]; then
2876 %service -q apache restart
2877fi
2878
2879%post -n apache-mod_%{name}
2880if [ "$1" = "1" ]; then
2881 %service -q httpd restart
2882fi
2883
2884%postun -n apache-mod_%{name}
2885if [ "$1" = "0" ]; then
2886 %service -q httpd restart
2887fi
2888
2889%pre fpm
2890%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2891
2892%post fpm
2893/sbin/chkconfig --add %{name}-fpm
2894%service %{name}-fpm restart
2895%if %{with alternatives}
2896update-alternatives --install %{_sbindir}/php-fpm php-fpm %{_sbindir}/php%{ver_suffix}-fpm %{ver_suffix} || :
2897%endif
2898
2899%preun fpm
2900if [ "$1" = "0" ]; then
2901 %service %{name}-fpm stop
2902 /sbin/chkconfig --del %{name}-fpm
2903%if %{with alternatives}
2904 update-alternatives --remove php-fpm %{_sbindir}/php-fpm || :
2905%endif
2906fi
2907
2908%postun fpm
2909if [ "$1" = "0" ]; then
2910 %userremove http
2911fi
2912
2913%post embedded -p /sbin/ldconfig
2914%postun embedded -p /sbin/ldconfig
2915
2916%posttrans common
2917# PHP 5.3 requires timezone being setup, try setup it from tzdata
2918if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
2919 TIMEZONE=
2920 . /etc/sysconfig/timezone
2921 if [ "$TIMEZONE" ]; then
2922 %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
2923 fi
2924fi
2925
2926# minimizing apache restarts logics. we restart webserver:
2927#
2928# 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2929# 2. first install of extension (post: $1 = 1)
2930# 2. uninstall of extension (postun: $1 == 0)
2931#
2932# the strict internal deps between extensions (and apache modules) and
2933# common package are very important for all this to work.
2934
2935# restart webserver at the end of transaction
2936[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2937[ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2938
2939%triggerpostun common -- php-common < 4:5.3.28-7
2940# migrate configs /etc/php/conf.d -> /etc/phpXY/conf.d/
2941# do config migration in php-common trigger, as the trigger is ran after all packages are upgraded
2942# this way we can stick to one trigger, instead of attaching one for each (sub)package!
2943for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
2944 test -f "$f" || continue
2945 bn=${f#/etc/php/}
2946 dn=${bn%/*}
2947 fn=${bn#*/}
2948 test "$dn" = "$fn" && dn=
2949 fn=${fn%.rpmsave}
2950 nf=%{_sysconfdir}/$dn/$fn
2951 test -f "$nf" || continue
2952 cp -vfb $nf{,.rpmnew}
2953 cp -vfb $f $nf
2954 %{__sed} -i -e '
2955 s#%{_libdir}/php#%{_libdir}/%{name}#
2956 s#/etc/php#%{_sysconfdir}#
2957 ' $nf
2958done
2959
2960%triggerpostun common -- %{name}-common < 4:5.6.4-2, php-common < 4:5.6.4-2
2961# switch to browscap package if the ini file has original value
2962%{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2963# disable browscap, if optional package not present
2964if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2965 %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2966fi
2967
2968%triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 4:5.6.14-2
2969sed -i -e 's#modules/libphp5.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php.conf
2970
2971%triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:5.6.14-2
2972sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2973
2974# common macros called at extension post/postun scriptlet
2975%define ext_post \
2976if [ "$1" = "1" ]; then \
2977 %php_webserver_restart \
2978fi \
2979%{nil}
2980
2981%define ext_postun \
2982if [ "$1" = "0" ]; then \
2983 %php_webserver_restart \
2984fi \
2985%{nil}
2986
2987%define extension_scripts() \
2988%post %1 \
2989%ext_post \
2990\
2991%postun %1 \
2992%ext_postun \
2993%{nil}
2994
2995# extension scripts defines
2996%extension_scripts bcmath
2997%extension_scripts bz2
2998%extension_scripts calendar
2999%extension_scripts ctype
3000%extension_scripts curl
3001%extension_scripts dba
3002%extension_scripts dom
3003%extension_scripts enchant
3004%extension_scripts exif
3005%extension_scripts fileinfo
3006%extension_scripts filter
3007%extension_scripts ftp
3008%extension_scripts gd
3009%extension_scripts gettext
3010%extension_scripts gmp
3011%extension_scripts hash
3012%extension_scripts iconv
3013%extension_scripts imap
3014%extension_scripts interbase
3015%extension_scripts intl
3016%extension_scripts json
3017%extension_scripts ldap
3018%extension_scripts mbstring
3019%extension_scripts mcrypt
3020%extension_scripts mssql
3021%extension_scripts mysql
3022%extension_scripts mysqli
3023%extension_scripts mysqlnd
3024%extension_scripts oci8
3025%extension_scripts odbc
3026%extension_scripts opcache
3027%extension_scripts openssl
3028%extension_scripts pcre
3029%extension_scripts pdo
3030%extension_scripts pdo-dblib
3031%extension_scripts pdo-firebird
3032%extension_scripts pdo-oci
3033%extension_scripts pdo-mysql
3034%extension_scripts pdo-odbc
3035%extension_scripts pdo-pgsql
3036%extension_scripts pdo-sqlite
3037%extension_scripts pgsql
3038%extension_scripts pcntl
3039%extension_scripts posix
3040%extension_scripts pspell
3041%extension_scripts recode
3042%extension_scripts session
3043%extension_scripts shmop
3044%extension_scripts simplexml
3045%extension_scripts snmp
3046%extension_scripts soap
3047%extension_scripts sockets
3048%extension_scripts spl
3049%extension_scripts sqlite3
3050%extension_scripts sybase-ct
3051%extension_scripts sysvmsg
3052%extension_scripts sysvsem
3053%extension_scripts sysvshm
3054%extension_scripts tidy
3055%extension_scripts tokenizer
3056%extension_scripts wddx
3057%extension_scripts xml
3058%extension_scripts xmlreader
3059%extension_scripts xmlrpc
3060%extension_scripts xmlwriter
3061%extension_scripts xsl
3062%extension_scripts zip
3063%extension_scripts zlib
3064
3065%post phar
3066%ext_post
3067%if %{with alternatives}
3068update-alternatives \
3069 --install %{_bindir}/phar phar %{_bindir}/phar%{ver_suffix}.phar %{ver_suffix} \
3070 --slave %{_mandir}/man1/phar.1 phar.1 %{_mandir}/man1/phar%{ver_suffix}.1* || :
3071%endif
3072
3073%postun phar
3074%ext_postun
3075%if %{with alternatives}
3076if [ $1 -eq 0 ]; then
3077 update-alternatives --remove phar %{_bindir}/phar || :
3078fi
3079%endif
3080
3081%if %{with apache1}
3082%files -n apache1-mod_%{name}
3083%defattr(644,root,root,755)
3084%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
3085%dir %{_sysconfdir}/apache.d
3086%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
3087%attr(755,root,root) %{_libdir}/apache1/mod_php.so
3088%attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
3089%endif
3090
3091%if %{with apache2}
3092%files -n apache-mod_%{name}
3093%defattr(644,root,root,755)
3094%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
3095%attr(755,root,root) %{_libdir}/apache/mod_php.so
3096
3097%files -n apache-mod_%{name}-core
3098%defattr(644,root,root,755)
3099%dir %{_sysconfdir}/apache2handler.d
3100%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
3101%attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
3102%endif
3103
3104%if %{with litespeed}
3105%files litespeed
3106%defattr(644,root,root,755)
3107%attr(755,root,root) %{_sbindir}/%{name}.litespeed
3108%endif
3109
3110%if %{with cgi}
3111%files cgi
3112%defattr(644,root,root,755)
3113%dir %{_sysconfdir}/cgi-fcgi.d
3114%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
3115%attr(755,root,root) %{_bindir}/%{name}.cgi
3116%attr(755,root,root) %{_bindir}/%{name}.fcgi
3117%endif
3118
3119%if %{with embed}
3120%files embedded
3121%defattr(644,root,root,755)
3122%attr(755,root,root) %{_libdir}/libphp5.so
3123%endif
3124
3125%files cli
3126%defattr(644,root,root,755)
3127%dir %{_sysconfdir}/cli.d
3128%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
3129%attr(755,root,root) %{_bindir}/php%{ver_suffix}
3130%{_mandir}/man1/php%{ver_suffix}.1*
3131
3132%files program
3133%defattr(644,root,root,755)
3134%attr(755,root,root) %{_bindir}/php
3135%{_mandir}/man1/php.1*
3136
3137%if %{with fpm}
3138%files fpm
3139%defattr(644,root,root,755)
3140%doc sapi/fpm/{CREDITS,LICENSE}
3141%dir %{_sysconfdir}/fpm.d
3142%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-fpm.conf
3143%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.d/www.conf
3144%attr(755,root,root) %{_sbindir}/%{name}-fpm
3145%if %{with alternatives}
3146%ghost %{_sbindir}/php-fpm
3147%endif
3148%{_mandir}/man8/%{name}-fpm.8*
3149%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
3150%attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
3151%endif
3152
3153%if %{with phpdbg}
3154%files phpdbg
3155%defattr(644,root,root,755)
3156%attr(755,root,root) %{_bindir}/phpdbg%{php_suffix}
3157%{_mandir}/man1/phpdbg%{php_suffix}.1*
3158%endif
3159
3160%if %{with milter}
3161%files milter
3162%defattr(644,root,root,755)
3163%attr(755,root,root) %{_bindir}/php-milter
3164%endif
3165
3166%files common
3167%defattr(644,root,root,755)
3168%doc CREDITS EXTENSIONS LICENSE NEWS README.namespaces UPGRADING* Zend/{LICENSE.Zend,ZEND_CHANGES} php.ini-*
3169%dir %{_sysconfdir}
3170%dir %{_sysconfdir}/conf.d
3171%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
3172%if %{with apache1} || %{with apache2}
3173%attr(755,root,root) %{_libdir}/libphp_common-*.so
3174%endif
3175%dir %{php_extensiondir}
3176
3177%doc ext/session/mod_files.sh
3178
3179%files devel
3180%defattr(644,root,root,755)
3181%doc CODING_STANDARDS README.{EXT_SKEL,PARAMETER_PARSING_API,SELF-CONTAINED-EXTENSIONS,STREAMS,SUBMITTING_PATCH,TESTING,TESTING2,UNIX-BUILD-SYSTEM,input_filter}
3182%attr(755,root,root) %{_bindir}/phpize
3183%attr(755,root,root) %{_bindir}/php-config
3184%if %{with apache1} || %{with apache2}
3185%attr(755,root,root) %{_libdir}/libphp_common.so
3186%else
3187%attr(755,root,root) %{_libdir}/libphp_common.a
3188%endif
3189%{_libdir}/libphp_common.la
3190%{_includedir}/php
3191%{_libdir}/%{name}/build
3192%{_mandir}/man1/php-config.1*
3193%{_mandir}/man1/phpize.1*
3194
3195%if %{with bcmath}
3196%files bcmath
3197%defattr(644,root,root,755)
3198%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
3199%attr(755,root,root) %{php_extensiondir}/bcmath.so
3200%endif
3201
3202%if %{with bz2}
3203%files bz2
3204%defattr(644,root,root,755)
3205%doc ext/bz2/CREDITS
3206%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
3207%attr(755,root,root) %{php_extensiondir}/bz2.so
3208%endif
3209
3210%if %{with calendar}
3211%files calendar
3212%defattr(644,root,root,755)
3213%doc ext/calendar/CREDITS
3214%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
3215%attr(755,root,root) %{php_extensiondir}/calendar.so
3216%endif
3217
3218%if %{with ctype}
3219%files ctype
3220%defattr(644,root,root,755)
3221%doc ext/calendar/CREDITS
3222%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
3223%attr(755,root,root) %{php_extensiondir}/ctype.so
3224%endif
3225
3226%if %{with curl}
3227%files curl
3228%defattr(644,root,root,755)
3229%doc ext/curl/CREDITS
3230%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
3231%attr(755,root,root) %{php_extensiondir}/curl.so
3232%endif
3233
3234%if %{with dba}
3235%files dba
3236%defattr(644,root,root,755)
3237%doc ext/dba/{CREDITS,README}
3238%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
3239%attr(755,root,root) %{php_extensiondir}/dba.so
3240%endif
3241
3242%if %{with dom}
3243%files dom
3244%defattr(644,root,root,755)
3245%doc ext/dom/{CREDITS,TODO}
3246%doc ext/dom/examples
3247%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
3248%attr(755,root,root) %{php_extensiondir}/dom.so
3249%endif
3250
3251%if %{with enchant}
3252%files enchant
3253%defattr(644,root,root,755)
3254%doc ext/enchant/{CREDITS,docs/examples}
3255%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/enchant.ini
3256%attr(755,root,root) %{php_extensiondir}/enchant.so
3257%endif
3258
3259%if %{with exif}
3260%files exif
3261%defattr(644,root,root,755)
3262%doc ext/exif/CREDITS
3263%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
3264%attr(755,root,root) %{php_extensiondir}/exif.so
3265%endif
3266
3267%if %{with fileinfo}
3268%files fileinfo
3269%defattr(644,root,root,755)
3270%doc ext/fileinfo/CREDITS
3271%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fileinfo.ini
3272%attr(755,root,root) %{php_extensiondir}/fileinfo.so
3273%endif
3274
3275%if %{with filter}
3276%files filter
3277%defattr(644,root,root,755)
3278%doc ext/filter/{CREDITS,docs/*}
3279%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
3280%attr(755,root,root) %{php_extensiondir}/filter.so
3281%endif
3282
3283%if %{with ftp}
3284%files ftp
3285%defattr(644,root,root,755)
3286%doc ext/ftp/CREDITS
3287%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
3288%attr(755,root,root) %{php_extensiondir}/ftp.so
3289%endif
3290
3291%if %{with gd}
3292%files gd
3293%defattr(644,root,root,755)
3294%doc ext/gd/CREDITS
3295%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
3296%attr(755,root,root) %{php_extensiondir}/gd.so
3297%endif
3298
3299%if %{with gettext}
3300%files gettext
3301%defattr(644,root,root,755)
3302%doc ext/gettext/CREDITS
3303%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
3304%attr(755,root,root) %{php_extensiondir}/gettext.so
3305%endif
3306
3307%if %{with gmp}
3308%files gmp
3309%defattr(644,root,root,755)
3310%doc ext/gmp/{CREDITS,README,TODO}
3311%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
3312%attr(755,root,root) %{php_extensiondir}/gmp.so
3313%endif
3314
3315%if %{with hash}
3316%files hash
3317%defattr(644,root,root,755)
3318%doc ext/hash/{CREDITS,README}
3319%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
3320%attr(755,root,root) %{php_extensiondir}/hash.so
3321%endif
3322
3323%if %{with iconv}
3324%files iconv
3325%defattr(644,root,root,755)
3326%doc ext/iconv/CREDITS
3327%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
3328%attr(755,root,root) %{php_extensiondir}/iconv.so
3329%endif
3330
3331%if %{with imap}
3332%files imap
3333%defattr(644,root,root,755)
3334%doc ext/imap/CREDITS
3335%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
3336%attr(755,root,root) %{php_extensiondir}/imap.so
3337%endif
3338
3339%if %{with interbase}
3340%files interbase
3341%defattr(644,root,root,755)
3342%doc ext/interbase/CREDITS
3343%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
3344%attr(755,root,root) %{php_extensiondir}/interbase.so
3345%endif
3346
3347%if %{with intl}
3348%files intl
3349%defattr(644,root,root,755)
3350%doc ext/intl/{CREDITS,TODO}
3351%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
3352%attr(755,root,root) %{php_extensiondir}/intl.so
3353%endif
3354
3355%if %{with json}
3356%files json
3357%defattr(644,root,root,755)
3358%doc ext/json/CREDITS
3359%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
3360%attr(755,root,root) %{php_extensiondir}/json.so
3361%endif
3362
3363%if %{with ldap}
3364%files ldap
3365%defattr(644,root,root,755)
3366%doc ext/ldap/CREDITS
3367%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
3368%attr(755,root,root) %{php_extensiondir}/ldap.so
3369%endif
3370
3371%if %{with mbstring}
3372%files mbstring
3373%defattr(644,root,root,755)
3374%doc ext/mbstring/{CREDITS,README*}
3375%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
3376%attr(755,root,root) %{php_extensiondir}/mbstring.so
3377%endif
3378
3379%if %{with mcrypt}
3380%files mcrypt
3381%defattr(644,root,root,755)
3382%doc ext/mcrypt/{CREDITS,TODO}
3383%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
3384%attr(755,root,root) %{php_extensiondir}/mcrypt.so
3385%endif
3386
3387%if %{with mssql}
3388%files mssql
3389%defattr(644,root,root,755)
3390%doc ext/mssql/CREDITS
3391%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
3392%attr(755,root,root) %{php_extensiondir}/mssql.so
3393%endif
3394
3395%if %{with mysql}
3396%files mysql
3397%defattr(644,root,root,755)
3398%doc ext/mysql/CREDITS
3399%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
3400%attr(755,root,root) %{php_extensiondir}/mysql.so
3401%endif
3402
3403%if %{with mysqli}
3404%files mysqli
3405%defattr(644,root,root,755)
3406%doc ext/mysqli/{CREDITS,TODO}
3407%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
3408%attr(755,root,root) %{php_extensiondir}/mysqli.so
3409%endif
3410
3411%if %{with mysqlnd}
3412%files mysqlnd
3413%defattr(644,root,root,755)
3414%doc ext/mysqlnd/CREDITS
3415%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
3416%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
3417%endif
3418
3419%if %{with oci}
3420%files oci8
3421%defattr(644,root,root,755)
3422%doc ext/oci8/{CREDITS,README}
3423%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
3424%attr(755,root,root) %{php_extensiondir}/oci8.so
3425%endif
3426
3427%if %{with odbc}
3428%files odbc
3429%defattr(644,root,root,755)
3430%doc ext/odbc/CREDITS
3431%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
3432%attr(755,root,root) %{php_extensiondir}/odbc.so
3433%endif
3434
3435%if %{with opcache}
3436%files opcache
3437%defattr(644,root,root,755)
3438%doc ext/opcache/README
3439%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/opcache.ini
3440%attr(755,root,root) %{php_extensiondir}/opcache.so
3441%endif
3442
3443%if %{with openssl}
3444%files openssl
3445%defattr(644,root,root,755)
3446%doc ext/openssl/{CREDITS,README}
3447%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
3448%attr(755,root,root) %{php_extensiondir}/openssl.so
3449%endif
3450
3451%if %{with pcntl}
3452%files pcntl
3453%defattr(644,root,root,755)
3454%doc ext/pcntl/{CREDITS,README}
3455%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
3456%attr(755,root,root) %{php_extensiondir}/pcntl.so
3457%endif
3458
3459%if %{with pcre}
3460%files pcre
3461%defattr(644,root,root,755)
3462%doc ext/pcre/CREDITS
3463%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
3464%attr(755,root,root) %{php_extensiondir}/pcre.so
3465%endif
3466
3467%if %{with pdo}
3468%files pdo
3469%defattr(644,root,root,755)
3470%doc ext/pdo/{CREDITS,README,TODO}
3471%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
3472%attr(755,root,root) %{php_extensiondir}/pdo.so
3473%endif
3474
3475%if %{with pdo_dblib}
3476%files pdo-dblib
3477%defattr(644,root,root,755)
3478%doc ext/pdo_dblib/{CREDITS,README}
3479%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
3480%attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
3481%endif
3482
3483%if %{with interbase} && !%{with interbase_inst}
3484%files pdo-firebird
3485%defattr(644,root,root,755)
3486%doc ext/pdo_firebird/CREDITS
3487%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
3488%attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
3489%endif
3490
3491%if %{with pdo_mysql}
3492%files pdo-mysql
3493%defattr(644,root,root,755)
3494%doc ext/pdo_mysql/CREDITS
3495%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
3496%attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
3497%endif
3498
3499%if %{with oci}
3500%files pdo-oci
3501%defattr(644,root,root,755)
3502%doc ext/pdo_oci/CREDITS
3503%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
3504%attr(755,root,root) %{php_extensiondir}/pdo_oci.so
3505%endif
3506
3507%if %{with odbc}
3508%files pdo-odbc
3509%defattr(644,root,root,755)
3510%doc ext/pdo_odbc/CREDITS
3511%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
3512%attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
3513%endif
3514
3515%if %{with pgsql}
3516%files pdo-pgsql
3517%defattr(644,root,root,755)
3518%doc ext/pdo_pgsql/CREDITS
3519%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
3520%attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
3521%endif
3522
3523%if %{with pdo_sqlite}
3524%files pdo-sqlite
3525%defattr(644,root,root,755)
3526%doc ext/pdo_sqlite/CREDITS
3527%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
3528%attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
3529%endif
3530
3531%if %{with pgsql}
3532%files pgsql
3533%defattr(644,root,root,755)
3534%doc ext/pgsql/{CREDITS,README}
3535%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3536%attr(755,root,root) %{php_extensiondir}/pgsql.so
3537%endif
3538
3539%if %{with phar}
3540%files phar
3541%defattr(644,root,root,755)
3542%doc ext/phar/{CREDITS,TODO}
3543%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
3544%attr(755,root,root) %{php_extensiondir}/phar.so
3545%attr(755,root,root) %{_bindir}/phar%{php_suffix}.phar
3546%{_mandir}/man1/phar%{php_suffix}.1*
3547%{_mandir}/man1/phar.phar.1*
3548%if %{with alternatives}
3549%ghost %{_bindir}/phar
3550%ghost %{_mandir}/man1/phar.1
3551%else
3552%attr(755,root,root) %{_bindir}/phar
3553%endif
3554%endif
3555
3556%if %{with posix}
3557%files posix
3558%defattr(644,root,root,755)
3559%doc ext/posix/CREDITS
3560%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3561%attr(755,root,root) %{php_extensiondir}/posix.so
3562%endif
3563
3564%if %{with pspell}
3565%files pspell
3566%defattr(644,root,root,755)
3567%doc ext/pspell/{CREDITS,README}
3568%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3569%attr(755,root,root) %{php_extensiondir}/pspell.so
3570%endif
3571
3572%if %{with readline}
3573%files readline
3574%defattr(644,root,root,755)
3575%doc ext/readline/{CREDITS,README*}
3576%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3577%attr(755,root,root) %{php_extensiondir}/readline.so
3578%endif
3579
3580%if %{with recode}
3581%files recode
3582%defattr(644,root,root,755)
3583%doc ext/recode/CREDITS
3584%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3585%attr(755,root,root) %{php_extensiondir}/recode.so
3586%endif
3587
3588%if %{with session}
3589%files session
3590%defattr(644,root,root,755)
3591%doc ext/session/CREDITS
3592%doc ext/session/mod_files.sh
3593%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
3594%attr(755,root,root) %{php_extensiondir}/session.so
3595%endif
3596
3597%files shmop
3598%defattr(644,root,root,755)
3599%doc ext/shmop/{CREDITS,README}
3600%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3601%attr(755,root,root) %{php_extensiondir}/shmop.so
3602
3603%files simplexml
3604%defattr(644,root,root,755)
3605%doc ext/simplexml/{CREDITS,README}
3606%doc ext/simplexml/examples
3607%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
3608%attr(755,root,root) %{php_extensiondir}/simplexml.so
3609
3610%if %{with snmp}
3611%files snmp
3612%defattr(644,root,root,755)
3613%doc ext/snmp/CREDITS
3614%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3615%attr(755,root,root) %{php_extensiondir}/snmp.so
3616%endif
3617
3618%files soap
3619%defattr(644,root,root,755)
3620%doc ext/soap/{CREDITS,TODO*}
3621%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3622%attr(755,root,root) %{php_extensiondir}/soap.so
3623
3624%files sockets
3625%defattr(644,root,root,755)
3626%doc ext/sockets/CREDITS
3627%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3628%attr(755,root,root) %{php_extensiondir}/sockets.so
3629
3630%files spl
3631%defattr(644,root,root,755)
3632%doc ext/spl/{CREDITS,README,TODO}
3633%doc ext/spl/examples
3634%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3635%attr(755,root,root) %{php_extensiondir}/spl.so
3636
3637%if %{with sqlite3}
3638%files sqlite3
3639%defattr(644,root,root,755)
3640%doc ext/sqlite3/CREDITS
3641%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite3.ini
3642%attr(755,root,root) %{php_extensiondir}/sqlite3.so
3643%endif
3644
3645%if %{with sybase_ct}
3646%files sybase-ct
3647%defattr(644,root,root,755)
3648%doc ext/sybase_ct/CREDITS
3649%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3650%attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3651%endif
3652
3653%files sysvmsg
3654%defattr(644,root,root,755)
3655%doc ext/sysvmsg/CREDITS
3656%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3657%attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3658
3659%files sysvsem
3660%defattr(644,root,root,755)
3661%doc ext/sysvsem/CREDITS
3662%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3663%attr(755,root,root) %{php_extensiondir}/sysvsem.so
3664
3665%files sysvshm
3666%defattr(644,root,root,755)
3667%doc ext/sysvshm/CREDITS
3668%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3669%attr(755,root,root) %{php_extensiondir}/sysvshm.so
3670
3671%files tests
3672%defattr(644,root,root,755)
3673%dir %{php_data_dir}/tests
3674%dir %{php_data_dir}/tests/php
3675%{php_data_dir}/tests/php/basic
3676%{php_data_dir}/tests/php/classes
3677%{php_data_dir}/tests/php/func
3678%{php_data_dir}/tests/php/lang
3679%{php_data_dir}/tests/php/output
3680%{php_data_dir}/tests/php/run-test
3681%{php_data_dir}/tests/php/security
3682%{php_data_dir}/tests/php/strings
3683%{php_data_dir}/tests/php/quicktester.inc
3684%attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3685
3686%if %{with tidy}
3687%files tidy
3688%defattr(644,root,root,755)
3689%doc ext/tidy/{CREDITS,README}
3690%doc ext/tidy/examples
3691%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3692%attr(755,root,root) %{php_extensiondir}/tidy.so
3693%endif
3694
3695%files tokenizer
3696%defattr(644,root,root,755)
3697%doc ext/tokenizer/CREDITS
3698%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3699%attr(755,root,root) %{php_extensiondir}/tokenizer.so
3700
3701%if %{with wddx}
3702%files wddx
3703%defattr(644,root,root,755)
3704%doc ext/wddx/CREDITS
3705%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3706%attr(755,root,root) %{php_extensiondir}/wddx.so
3707%endif
3708
3709%files xml
3710%defattr(644,root,root,755)
3711%doc ext/xml/CREDITS
3712%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3713%attr(755,root,root) %{php_extensiondir}/xml.so
3714
3715%files xmlreader
3716%defattr(644,root,root,755)
3717%doc ext/xmlreader/{CREDITS,README,TODO}
3718%doc ext/xmlreader/examples
3719%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3720%attr(755,root,root) %{php_extensiondir}/xmlreader.so
3721
3722%if %{with xmlrpc}
3723%files xmlrpc
3724%defattr(644,root,root,755)
3725%doc ext/xmlrpc/CREDITS
3726%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3727%attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3728%endif
3729
3730%files xmlwriter
3731%defattr(644,root,root,755)
3732%doc ext/xmlwriter/{CREDITS,TODO}
3733%doc ext/xmlwriter/examples
3734%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3735%attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3736
3737%files xsl
3738%defattr(644,root,root,755)
3739%doc ext/xsl/CREDITS
3740%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3741%attr(755,root,root) %{php_extensiondir}/xsl.so
3742
3743%files zip
3744%defattr(644,root,root,755)
3745%doc ext/zip/{CREDITS,TODO}
3746%doc ext/zip/examples
3747%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3748%attr(755,root,root) %{php_extensiondir}/zip.so
3749
3750%files zlib
3751%defattr(644,root,root,755)
3752%doc ext/zlib/CREDITS
3753%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3754%attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.103328 seconds and 4 git commands to generate.