]> git.pld-linux.org Git - packages/php.git/blob - php.spec
3e38f8eb867bf50f469cb602d6acc0178eea02b7
[packages/php.git] / php.spec
1 # TODO
2 # - wddx: restore session support (not compiled in due DL extension check)
3 # - fix -threads-acfix.patch
4 # - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
5 #   - removed from php 5.0 (currently in php4):
6 #   db, hyperwave, java, mcal, overload, qtdom
7 #   - removed from php 5.1:
8 #   cpdf, fam, oracle
9 #   - removed from php 5.2:
10 #   filepro, hw
11 # - mime_magic can't handle new "string/*" entries in magic.mime
12 #   thus doesn't work with system magic.mime database
13 # - make additional headers and checking added by mail patch configurable
14 # - modularize session, standard (output from pure php -m)?
15 # - http://forum.lighttpd.net/topic/34454
16 # - ttyname_r() missdetected http://bugs.php.net/bug.php?id=48820
17 #
18 # To see optional extension deps:
19 # $ grep -r PHP_ADD_EXTENSION_DEP.*,.*,.* .
20 #./ext/pdo/config.m4:    PHP_ADD_EXTENSION_DEP(pdo, spl, true)
21 #./ext/spl/config.m4:  PHP_ADD_EXTENSION_DEP(spl, pcre, true)
22 #./ext/session/config.m4:  PHP_ADD_EXTENSION_DEP(session, hash, true)
23 #./ext/sqlite/config.m4:  PHP_ADD_EXTENSION_DEP(sqlite, spl, true)
24 #./ext/sqlite/config.m4:  PHP_ADD_EXTENSION_DEP(sqlite, pdo, true)
25 #./ext/simplexml/config.m4:  PHP_ADD_EXTENSION_DEP(simplexml, spl, true)
26 #./ext/xmlreader/config.m4:    PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
27 #
28 # Conditional build:
29 %bcond_with     fdf             # with FDF (PDF forms) module           (BR: proprietary lib)
30 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
31 %bcond_with     oci             # with Oracle oci8 extension module     (BR: proprietary libs)
32 %bcond_without  instantclient   # build Oracle oci8 extension module against oracle-instantclient package
33 %bcond_with     system_gd       # with system gd (we prefer internal since it enables few more features)
34 %bcond_with     system_libzip   # with system libzip (reported broken: https://bugs.php.net/bug.php?id=60100)
35 %bcond_with     gd_jis_conv     # causes imagettfbbox(): any2eucjp(): invalid code in input string when internal gd used
36 %bcond_with     zend_multibyte          # enable zend multibyte, mbstring can't be shared then anymore
37 %bcond_with     default_php     # use this PHP as default PHP in distro
38 %bcond_without  curl            # without CURL extension module
39 %bcond_without  filter          # without filter extension module
40 %bcond_without  imap            # without IMAP extension module
41 %bcond_without  interbase       # without InterBase extension module
42 %bcond_without  ldap            # without LDAP extension module
43 %bcond_without  mhash           # without mhash extension module
44 %bcond_without  mime_magic      # without mime-magic module
45 %bcond_with     ming            # with ming extension module
46 %bcond_without  mm              # without mm support for session storage
47 %bcond_without  mssql           # without MS SQL extension module
48 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
49 %bcond_without  odbc            # without ODBC extension module
50 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
51 %bcond_without  pcre            # without PCRE extension module
52 %bcond_without  pgsql           # without PostgreSQL extension module
53 %bcond_without  pspell          # without pspell extension module
54 %bcond_without  recode          # without recode extension module
55 %bcond_without  snmp            # without SNMP extension module
56 %bcond_without  sqlite          # without SQLite extension module
57 %bcond_without  sybase          # without Sybase extension module
58 %bcond_without  sybase_ct       # without Sybase-CT extension module
59 %bcond_without  tidy            # without Tidy extension module
60 %bcond_without  wddx            # without WDDX extension module
61 %bcond_without  xmlrpc          # without XML-RPC extension module
62 %bcond_without  apache1         # disable building Apache 1.3.x module
63 %bcond_without  apache2         # disable building Apache 2.x module
64 %bcond_without  fcgi            # disable building FCGI SAPI
65 %bcond_with     zts             # disable Zend Thread Safety
66 %bcond_without  fpm             # fpm patches from http://www.php-fpm.org/
67 %bcond_without  suhosin         # with suhosin patch
68 %bcond_with     system_xmlrpc_epi       # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
69 %bcond_with     tests           # default off; test process very often hangs on builders; perform "make test"
70 %bcond_with     versioning      # build with experimental versioning (to load php4/php5 into same apache)
71
72 %define apxs1           /usr/sbin/apxs1
73 %define apxs2           /usr/sbin/apxs
74
75 # some problems with apache 2.x
76 %if %{with apache2}
77 %undefine       with_mm
78 %endif
79
80 %ifnarch %{ix86} %{x8664} x32 sparc sparcv9 alpha ppc
81 %undefine       with_interbase
82 %endif
83 %if "%{pld_release}" == "th"
84 %ifarch ppc
85 # ppc disabled (broken on th-ppc)
86 %undefine       with_interbase
87 %endif
88 %endif
89
90 %ifnarch %{ix86} %{x8664} x32
91 # unsupported, see sapi/cgi/fpm/fpm_atomic.h
92 %undefine       with_fpm
93 %endif
94
95 %if %{without apache1} && %{without apache2}
96 ERROR: You need to select at least one Apache SAPI to build shared modules.
97 %endif
98
99 # filter depends on pcre
100 %if %{without pcre}
101 %undefine       with_filter
102 %endif
103
104 %if "%{pld_release}" == "ac"
105 %define         magic_mime      /usr/share/file/magic.mime
106 %define         _noautoreqdep libphp_common.*
107 # if commandline --with was given. respect that
108 %if 0%{!?_with_default_php:1}
109 %undefine       with_default_php
110 %endif
111 %else
112 %define         magic_mime      /usr/share/misc/magic.mime
113 %endif
114
115 %define         rel     23
116 %define         orgname php
117 %define         ver_suffix 52
118 %define         php_suffix %{!?with_default_php:%{ver_suffix}}
119 %define         backport_date   20130717
120 Summary:        PHP: Hypertext Preprocessor
121 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
122 Summary(pl.UTF-8):      Język skryptowy PHP
123 Summary(pt_BR.UTF-8):   A linguagem de script PHP
124 Summary(ru.UTF-8):      PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
125 Summary(uk.UTF-8):      PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
126 Name:           %{orgname}%{php_suffix}
127 Version:        5.2.17
128 Release:        %{backport_date}.%{rel}
129 Epoch:          4
130 # All files licensed under PHP version 3.01, except
131 # Zend is licensed under Zend
132 # TSRM is licensed under BSD
133 License:        PHP 3.01 and Zend and BSD
134 Group:          Libraries
135 Source0:        http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
136 # Source0-md5:  b27947f3045220faf16e4d9158cbfe13
137 Source2:        %{orgname}-mod_%{orgname}.conf
138 Source3:        %{orgname}-cgi-fcgi.ini
139 Source4:        %{orgname}-cgi.ini
140 Source5:        %{orgname}-apache.ini
141 Source6:        %{orgname}-cli.ini
142 # lynx -dump ftp://distfiles.gentoo.org/pub/gentoo/distfiles/|grep -o ftp://.*php-patchset.*tar.bz2
143 #Source9:       ftp://distfiles.gentoo.org/pub/gentoo/distfiles/%{orgname}-patchset-%{version}-r1.tar.bz2
144 ## Source9-md5: d67f23f5e69664e06fce89b064d5bbab
145 Source10:       %{orgname}-fpm.init
146 Source11:       %{orgname}-fpm.logrotate
147 Source12:       %{orgname}-branch.sh
148 Source13:       dep-tests.sh
149 Source14:       skip-tests.sh
150 Patch100:       https://php52-backports.googlecode.com/files/php52-backports-%{backport_date}.patch
151 # Patch100-md5: 80014a8f7894d4e893a8b1292b8b3032
152 Patch0:         %{orgname}-shared.patch
153 Patch1:         %{orgname}-pldlogo.patch
154 Patch2:         %{orgname}-mail.patch
155 Patch3:         %{orgname}-link-libs.patch
156 Patch4:         %{orgname}-libpq_fs_h_path.patch
157 Patch5:         %{orgname}-filter-shared.patch
158 Patch6:         %{orgname}-build_modules.patch
159 Patch7:         %{orgname}-sapi-ini-file.patch
160 Patch8:         %{orgname}-no-metaccld.patch
161 Patch9:         %{orgname}-sh.patch
162 Patch10:        %{orgname}-ini.patch
163 Patch11:        %{orgname}-acam.patch
164 Patch12:        %{orgname}-threads-acfix.patch
165 Patch13:        %{orgname}-tsrmlsfetchgcc2.patch
166 Patch14:        %{orgname}-no_pear_install.patch
167 Patch15:        %{orgname}-zlib.patch
168 Patch16:        %{orgname}-sybase-fix.patch
169 Patch17:        %{orgname}-readline.patch
170 Patch18:        %{orgname}-nohttpd.patch
171 Patch19:        %{orgname}-gd_imagerotate_enable.patch
172 Patch20:        %{orgname}-uint32_t.patch
173 Patch21:        %{orgname}-dba-link.patch
174 Patch22:        %{orgname}-both-apxs.patch
175 Patch23:        %{orgname}-builddir.patch
176 Patch24:        %{orgname}-zlib-for-getimagesize.patch
177 Patch25:        %{orgname}-versioning.patch
178 Patch26:        %{orgname}-pear.patch
179 Patch27:        %{orgname}-config-dir.patch
180 Patch28:        %{orgname}-bug-42952.patch
181 Patch29:        %{orgname}-fcgi-graceful.patch
182 Patch30:        %{orgname}-apr-apu.patch
183 Patch31:        %{orgname}-fcgi-error_log-no-newlines.patch
184 Patch32:        %{orgname}-curl-limit-speed.patch
185 Patch33:        %{orgname}-mime_magic.patch
186 Patch34:        %{orgname}-libtool.patch
187 Patch35:        %{orgname}-tds.patch
188 Patch36:        %{orgname}-mysql-charsetphpini.patch
189 Patch37:        %{orgname}-mysqli-charsetphpini.patch
190 Patch38:        %{orgname}-pdo_mysql-charsetphpini.patch
191 Patch39:        %{orgname}-use-prog_sendmail.patch
192 Patch40:        %{orgname}-fpm.patch
193 Patch41:        %{orgname}-fpm-config.patch
194 Patch42:        %{orgname}-fpm-initdir.patch
195 Patch43:        %{orgname}-silent-session-cleanup.patch
196 Patch44:        %{orgname}-include_path.patch
197 Patch45:        %{orgname}-imap-annotations.patch
198 Patch46:        %{orgname}-imap-myrights.patch
199 Patch47:        suhosin.patch
200 Patch48:        no-sslv2.patch
201 Patch49:        %{orgname}-m4-divert.patch
202 Patch50:        extension-shared-optional-dep.patch
203 Patch51:        spl-shared.patch
204 Patch52:        %{orgname}-libpng.patch
205 Patch53:        %{orgname}-gmp.patch
206 Patch54:        fix-test-run.patch
207 Patch55:        bug-52078-fileinode.patch
208 Patch56:        %{orgname}-krb5.patch
209 Patch57:        php-php_dl.patch
210 Patch58:        php-svn-281516.patch
211 Patch59:        %{orgname}-systzdata.patch
212 Patch60:        bug-60986.patch
213 Patch61:        php-bug-71475.patch
214 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
215 Patch65:        system-libzip.patch
216 Patch66:        bug-47930.patch
217 Patch67:        php-db.patch
218 Patch69:        bug-50563.patch
219 Patch70:        php-crypt-null.patch
220 Patch71:        php-apache24.patch
221 Patch72:        exif-crash-bug-36.patch
222 Patch73:        CVE-2013-6420.patch
223 Patch74:        CVE-2013-4073.patch
224 Patch75:        php-secbug-67498.patch
225 Patch76:        CVE-2015-0232.patch
226 Patch77:        x32.patch
227 Patch78:        php-bug-68486.patch
228 Patch79:        libevent-2.1.patch
229 # CENTALT patches
230 # Backport from 5.3.6
231 Patch311:       php-5.3.6-bug-47435.patch
232 Patch314:       php-5.3.6-39199.patch
233 # 5.3.7
234 #Patch333: php-5.3.7-bug-54924.patch
235 Patch355:       php-5.3.7-bug-55323.patch
236 # Bug-323016 CVE-2012-0831
237 Patch402:       php-5.2.17-bug-323016.patch
238 URL:            https://code.google.com/p/php52-backports/
239 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
240 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
241 BuildRequires:  autoconf >= 2.53
242 BuildRequires:  automake >= 1.4d
243 BuildRequires:  bison
244 BuildRequires:  bzip2-devel
245 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
246 BuildRequires:  cyrus-sasl-devel
247 BuildRequires:  db-devel >= 4.0
248 BuildRequires:  elfutils-devel
249 %if %{with xmlrpc}
250 %{?with_system_xmlrpc_epi:BuildRequires:    xmlrpc-epi-devel}
251 %endif
252 %{?with_fcgi:BuildRequires:     fcgi-devel}
253 %{?with_fdf:BuildRequires:      fdftk-devel}
254 BuildRequires:  flex
255 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
256 BuildRequires:  freetds-devel
257 %{?with_system_libzip:BuildRequires:    libzip-devel >= 0.10-3}
258 %endif
259 BuildRequires:  freetype-devel >= 2.0
260 %if %{with system_gd}
261 BuildRequires:  gd-devel >= 2.0.28-4
262 BuildRequires:  gd-devel(imagerotate) = 5.2.0
263 %endif
264 BuildRequires:  gdbm-devel
265 BuildRequires:  gmp-devel
266 %{?with_imap:BuildRequires:     imap-devel >= 1:2007e-2}
267 BuildRequires:  libjpeg-devel
268 BuildRequires:  libltdl-devel >= 1.4
269 BuildRequires:  libmcrypt-devel >= 2.4.4
270 BuildRequires:  libpng-devel >= 1.0.8
271 BuildRequires:  libtiff-devel
272 %if "%{pld_release}" != "ac"
273 BuildRequires:  libtool >= 2:2.2
274 %else
275 BuildRequires:  libtool
276 %endif
277 BuildRequires:  libwrap-devel
278 BuildRequires:  libxml2-devel >= 1:2.7.6-4
279 BuildRequires:  libxslt-devel >= 1.1.0
280 %{?with_mhash:BuildRequires:    mhash-devel}
281 %{?with_snmp:%{?with_tests:BuildRequires:       mibs-net-snmp}}
282 %{?with_ming:BuildRequires:     ming-devel >= 0.3}
283 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
284 BuildRequires:  mysql-devel >= 4.0.0
285 %{?with_mysqli:BuildRequires:   mysql-devel >= 4.1}
286 BuildRequires:  ncurses-ext-devel
287 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
288 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
289 %if %{with openssl} || %{with ldap}
290 BuildRequires:  openssl-devel >= 0.9.7d
291 %endif
292 %{?with_oci:%{?with_instantclient:BuildRequires:        oracle-instantclient-devel}}
293 BuildRequires:  pam-devel
294 %{?with_pcre:BuildRequires:     pcre-devel >= 6.6}
295 BuildRequires:  pkgconfig
296 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
297 %{?with_pgsql:BuildRequires:    postgresql-devel}
298 BuildRequires:  readline-devel
299 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
300 BuildRequires:  rpm >= 4.4.9-56
301 BuildRequires:  rpm-build >= 4.4.0
302 BuildRequires:  rpmbuild(macros) >= 1.519
303 %{?with_sqlite:BuildRequires:   sqlite-devel}
304 %{?with_sqlite:BuildRequires:   sqlite3-devel}
305 BuildRequires:  t1lib-devel
306 %{?with_tidy:BuildRequires:     tidy-devel}
307 %{?with_odbc:BuildRequires:     unixODBC-devel}
308 BuildRequires:  zlib-devel >= 1.0.9
309 %if %{with apache1}
310 BuildRequires:  apache1-devel
311 %endif
312 %if %{with apache2}
313 BuildRequires:  apache-devel >= 2.0.52-2
314 BuildRequires:  apr-devel >= 1:1.0.0
315 BuildRequires:  apr-util-devel >= 1:1.0.0
316 %endif
317 %if %{with fpm}
318 BuildRequires:  judy-devel
319 BuildRequires:  libevent-devel >= 1.4.7-3
320 %endif
321 BuildRoot:      %{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         20041225
329 %define         zend_module_api         20060613
330 %define         zend_extension_api      220060519
331 %define         zend_zts                %{!?with_zts:0}%{?with_zts:1}
332 %define         php_debug               %{!?debug:0}%{?debug:1}
333
334 %if %{with oci}
335 # ORACLE_HOME is required for oci8 ext to build
336 %define _preserve_env %_preserve_env_base ORACLE_HOME
337 %endif
338
339 %description
340 PHP is an HTML-embedded scripting language. PHP attempts to make it
341 easy for developers to write dynamically generated web pages. PHP also
342 offers built-in database integration for several commercial and
343 non-commercial database management systems, so writing a
344 database-enabled web page with PHP is fairly simple. The most common
345 use of PHP coding is probably as a replacement for CGI scripts. The
346 mod_php module enables the Apache web server to understand and process
347 the embedded PHP language in web pages. This package contains PHP
348 version %{version}.
349
350 %description -l fr.UTF-8
351 PHP est un langage de script embarque dans le HTM. PHP essaye de
352 rendre simple aux developpeurs d'ecrire des pages web generees
353 dynamiquement. PHP incorpore egalement une integration avec plusieurs
354 systemes de gestion de bases de donnees commerciaux et
355 non-connerciaux, qui rent facile la creation de pages web liees avec
356 des bases de donnees. L'utilisation la plus commune de PHP est
357 probablement en remplacement de scripts CGI. Le module mod_php permet
358 au serveur web Apache de comprendre et de traiter le langage PHP
359 integre dans des pages web. Ce package contient PHP version
360 %{version}.
361
362 %description -l pl.UTF-8
363 PHP jest językiem skryptowym, którego polecenia umieszcza się w
364 plikach HTML. Jest próbą ułatwienia programistom pisania dynamicznie
365 generowanych stron WWW. Oferuje także wbudowaną integrację z bazami
366 danych dla kilku komercyjnych i niekomercyjnych systemów baz danych,
367 co czyni tworzenie stron korzystających z baz danych w miarę łatwym.
368 Najczęściej PHP jest używany prawdopodobnie jako zamiennik skryptów
369 CGI. Moduł mod_php pozwala serwerowi WWW Apache rozumieć i przetwarzać
370 język PHP osadzony w stronach. Ten pakiet zawiera PHP w wersji
371 %{version}.
372
373 %description -l pt_BR.UTF-8
374 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
375 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
376 com algumas características únicas, específicas ao PHP. O objetivo da
377 linguagem é permitir que desenvolvedores web escrevam páginas
378 dinamicamente geradas de forma rápida.
379
380 %description -l ru.UTF-8
381 PHP - это язык написания скриптов, встраиваемых в HTML-код. PHP
382 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
383 для работы с базами данных относительно просто. Наиболее популярное
384 использование PHP - замена для CGI скриптов.
385
386 %description -l uk.UTF-8
387 PHP - це мова написання скриптів, що вбудовуються в HTML-код. PHP
388 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
389 роботи з базами даних є доволі простим. Найбільш популярне
390 використання PHP - заміна для CGI скриптів.
391
392 %package -n apache1-mod_%{name}
393 Summary:        PHP DSO module for Apache 1.3.x
394 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 1.3.x
395 Group:          Development/Languages/PHP
396 Requires(triggerpostun):        sed >= 4.0
397 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
398 Requires:       apache1(EAPI) >= 1.3.33-2
399 Requires:       apache1-mod_mime
400 Provides:       webserver(php) = %{version}
401 Obsoletes:      apache-mod_php < 1:4.1.1
402 Obsoletes:      phpfi
403
404 %description -n apache1-mod_%{name}
405 PHP as DSO module for Apache 1.3.x.
406
407 %description -n apache1-mod_%{name} -l pl.UTF-8
408 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 1.3.x.
409
410 %package -n apache-mod_%{name}
411 Summary:        PHP DSO module for Apache 2.x
412 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) PHP dla Apache 2.x
413 Group:          Development/Languages/PHP
414 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
415 Requires:       apache(modules-api) = %{apache_modules_api}
416 Requires:       apache-mod_mime
417 Provides:       webserver(php) = %{version}
418 Obsoletes:      phpfi
419
420 %description -n apache-mod_%{name}
421 PHP as DSO module for Apache 2.x.
422
423 %description -n apache-mod_%{name} -l pl.UTF-8
424 PHP jako moduł DSO (Dynamic Shared Object) dla Apache 2.x.
425
426 %package fcgi
427 Summary:        php as FastCGI program
428 Summary(pl.UTF-8):      php jako program FastCGI
429 Group:          Development/Languages/PHP
430 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
431 Provides:       php(fcgi)
432 Provides:       webserver(php) = %{version}
433
434 %description fcgi
435 php as FastCGI program.
436
437 %description fcgi -l pl.UTF-8
438 php jako program FastCGI.
439
440 %package cgi
441 Summary:        PHP as CGI/FastCGI program
442 Summary(pl.UTF-8):      PHP jako program CGI/FastCGI
443 Group:          Development/Languages/PHP
444 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
445 Provides:       php(cgi)
446 Provides:       webserver(php) = %{version}
447 %if "%{pld_release}" != "ac"
448 Conflicts:      logrotate < 3.8.0
449 %endif
450
451 %description cgi
452 php as CGI program.
453
454 %description cgi -l pl.UTF-8
455 php jako program CGI.
456
457 %package cli
458 Summary:        PHP as CLI interpreter
459 Summary(pl.UTF-8):      PHP jako interpreter działający z linii poleceń
460 Group:          Development/Languages/PHP
461 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
462
463 %description cli
464 PHP as CLI interpreter.
465
466 %description cli -l pl.UTF-8
467 PHP jako interpreter działający z linii poleceń.
468
469 %package program
470 Summary:        /usr/bin/php symlink
471 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
472 Group:          Development/Languages/PHP
473 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
474 Obsoletes:      /usr/bin/php
475
476 %description program
477 Package providing /usr/bin/php symlink to PHP CLI.
478
479 %description program -l pl.UTF-8
480 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
481
482 %package fpm
483 Summary:        PHP FastCGI Process Manager
484 Summary(pl.UTF-8):      PHP FastCGI Process Manager - zarządca procesów FastCGI
485 Group:          Development/Languages/PHP
486 URL:            http://www.php-fpm.org/
487 Requires(post,preun):   /sbin/chkconfig
488 Requires(postun):       /usr/sbin/userdel
489 Requires(pre):  /bin/id
490 Requires(pre):  /usr/sbin/useradd
491 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
492 Requires:       libevent >= 1.4.7-3
493 Requires:       rc-scripts
494 Provides:       user(http)
495 Provides:       webserver(php) = %{version}
496
497 %description fpm
498 PHP FastCGI Process Manager.
499
500 %description fpm -l pl.UTF-8
501 PHP FastCGI Process Manager - zarządca procesów FastCGI.
502
503 %package common
504 Summary:        Common files needed by both Apache modules and CGI/CLI SAPI-s
505 Summary(pl.UTF-8):      Wspólne pliki dla modułu Apache'a i programu CGI
506 Summary(ru.UTF-8):      Разделяемые библиотеки для PHP
507 Summary(uk.UTF-8):      Бібліотеки спільного використання для PHP
508 Group:          Libraries
509 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
510 Requires:       glibc >= 6:2.3.5
511 Requires:       php-dirs >= 1.4
512 Requires:       rpm-whiteout >= 1.28
513 Requires:       tzdata
514 Provides:       %{name}(debug) = %{php_debug}
515 Provides:       %{name}(modules_api) = %{php_api_version}
516 Provides:       %{name}(thread-safety) = %{zend_zts}
517 Provides:       %{name}(zend_extension_api) = %{zend_extension_api}
518 Provides:       %{name}(zend_module_api) = %{zend_module_api}
519 Provides:       %{name}-core
520 Provides:       %{name}-date
521 Provides:       %{name}-ereg
522 %{?with_zend_multibyte:Provides:        %{name}-mbstring = %{epoch}:%{version}-%{release}}
523 Provides:       %{name}-overload
524 Provides:       %{name}-reflection
525 Provides:       %{name}-standard
526 Provides:       php(core) = %{version}
527 Provides:       php(date)
528 Provides:       php(ereg)
529 Provides:       php(libxml)
530 %{?with_zend_multibyte:Provides:        php(mbstring)}
531 Provides:       php(modules_api) = %{php_api_version}
532 Provides:       php(overload)
533 Provides:       php(reflection)
534 Provides:       php(standard)
535 # ensure backward compatibility for Titanium
536 # to be dropped in future but ask Titanium RM before doing so
537 %if "%{pld_release}" == "ti"
538 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
539 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
540 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
541 %endif
542 %if "%{pld_release}" == "ac"
543 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
544 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
545 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
546 %endif
547 %{!?with_mysqlnd:Obsoletes:     php-mysqlnd}
548 %{?with_pcre:%requires_ge_to    pcre pcre-devel}
549 Suggests:       browscap
550 Obsoletes:      php-pecl-domxml
551 Conflicts:      php-pecl-memcache < 3.0.4-2
552 Conflicts:      php4-common < 3:4.4.4-8
553 Conflicts:      rpm < 4.4.2-0.2
554
555 %description common
556 Common files needed by both Apache modules and CGI/CLI SAPI-s.
557
558 %description common -l pl.UTF-8
559 Wspólne pliki dla modułu Apache'a i programu CGI.
560
561 %description common -l ru.UTF-8
562 Этот пакет содержит общие файлы для разных вариантов реализации PHP
563 (самодостаточной и в качестве модуля Apache).
564
565 %description common -l uk.UTF-8
566 Цей пакет містить спільні файли для різних варіантів реалізації PHP
567 (самодостатньої та в якості модуля Apache).
568
569 %package devel
570 Summary:        Files for PHP modules development
571 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
572 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
573 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
574 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
575 Group:          Development/Languages/PHP
576 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
577 Requires:       autoconf
578 Requires:       automake
579 %if "%{pld_release}" != "ac"
580 Requires:       libtool >= 2:2.2
581 %else
582 Requires:       libtool
583 %endif
584 %{?with_pcre:Requires:  pcre-devel >= 6.6}
585 Requires:       shtool
586 Obsoletes:      php-devel
587 Obsoletes:      php-pear-devel
588 Obsoletes:      php4-devel
589 Obsoletes:      php53-devel
590 Obsoletes:      php54-devel
591 Obsoletes:      php55-devel
592 Obsoletes:      php56-devel
593 Obsoletes:      php70-devel
594 Obsoletes:      php71-devel
595
596 %description devel
597 The php-devel package lets you compile dynamic extensions to PHP.
598 Included here is the source for the PHP extensions. Instead of
599 recompiling the whole PHP binary to add support for, say, oracle,
600 install this package and use the new self-contained extensions
601 support. For more information, read the file
602 README.SELF-CONTAINED-EXTENSIONS.
603
604 %description devel -l pl.UTF-8
605 Ten pakiet zawiera pliki potrzebne do kompilacji modułów PHP. Zamiast
606 rekompilować całe PHP aby dodać obsługę np. oracle, można przy użyciu
607 tego pakietu skompilować samodzielne rozszerzenie. Więcej informacji o
608 samodzielnych rozszerzeniach można znaleźć w pliku
609 README.SELF-CONTAINED-EXTENSIONS.
610
611 %description devel -l pt_BR.UTF-8
612 Este pacote contém arquivos usados no desenvolvimento de programas ou
613 módulos PHP.
614
615 %description devel -l ru.UTF-8
616 Пакет php-devel дает возможность компилировать динамические расширения
617 PHP. Пакет включает исходный код этих расширений. Вместо повторной
618 компиляции бинарного файла PHP для добавления, например, поддержки
619 oracle, установите этот пакет для компилирования отдельных расширений.
620 Подробности - в файле README.SELF-CONTAINED-EXTENSIONS.
621
622 %description devel -l uk.UTF-8
623 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
624 До пакету включено вихідний код для розширень. Замість повторної
625 компіляції бінарного файлу PHP для додання, наприклад, підтримки
626 oracle, встановіть цей пакет для компіляції окремих розширень.
627 Детальніша інформація - в файлі README.SELF-CONTAINED-EXTENSIONS.
628
629 %package bcmath
630 Summary:        bcmath extension module for PHP
631 Summary(pl.UTF-8):      Moduł bcmath dla PHP
632 Group:          Libraries
633 URL:            http://www.php.net/manual/en/book.bc.php
634 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
635 Provides:       php(bcmath)
636
637 %description bcmath
638 This is a dynamic shared object (DSO) for PHP that will add bc style
639 precision math functions support.
640
641 %description bcmath -l pl.UTF-8
642 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
643 matematycznych takich jak w programie bc.
644
645 %package bz2
646 Summary:        Bzip2 extension module for PHP
647 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
648 Group:          Libraries
649 URL:            http://www.php.net/manual/en/book.bzip2.php
650 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
651 Provides:       %{name}-bzip2 = %{epoch}:%{version}-%{release}
652 Provides:       php(bz2)
653 Provides:       php(bzip2)
654 Obsoletes:      php-bzip2
655
656 %description bz2
657 This is a dynamic shared object (DSO) for PHP that will add bzip2
658 compression support to PHP.
659
660 %description bz2 -l pl.UTF-8
661 Moduł PHP umożliwiający używanie kompresji bzip2.
662
663 %package calendar
664 Summary:        Calendar extension module for PHP
665 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
666 Group:          Libraries
667 URL:            http://www.php.net/manual/en/book.calendar.php
668 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
669 Provides:       php(calendar)
670
671 %description calendar
672 This is a dynamic shared object (DSO) for PHP that will add calendar
673 support.
674
675 %description calendar -l pl.UTF-8
676 Moduł PHP dodający wsparcie dla kalendarza.
677
678 %package ctype
679 Summary:        ctype extension module for PHP
680 Summary(pl.UTF-8):      Moduł ctype dla PHP
681 Group:          Libraries
682 URL:            http://www.php.net/manual/en/book.ctype.php
683 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
684 Provides:       php(ctype)
685
686 %description ctype
687 This is a dynamic shared object (DSO) for PHP that will add ctype
688 support.
689
690 %description ctype -l pl.UTF-8
691 Moduł PHP umożliwiający korzystanie z funkcji ctype.
692
693 %package curl
694 Summary:        curl extension module for PHP
695 Summary(pl.UTF-8):      Moduł curl dla PHP
696 Group:          Libraries
697 URL:            http://www.php.net/manual/en/book.curl.php
698 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
699 Provides:       php(curl)
700
701 %description curl
702 This is a dynamic shared object (DSO) for PHP that will add curl
703 support.
704
705 %description curl -l pl.UTF-8
706 Moduł PHP umożliwiający korzystanie z biblioteki curl.
707
708 %package dba
709 Summary:        DBA extension module for PHP
710 Summary(pl.UTF-8):      Moduł DBA dla PHP
711 Group:          Libraries
712 URL:            http://www.php.net/manual/en/book.dba.php
713 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
714 Provides:       php(dba)
715
716 %description dba
717 This is a dynamic shared object (DSO) for PHP that will add flat-file
718 databases (DBA) support.
719
720 %description dba -l pl.UTF-8
721 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
722 (DBA).
723
724 %package dbase
725 Summary:        DBase extension module for PHP
726 Summary(pl.UTF-8):      Moduł DBase dla PHP
727 Group:          Libraries
728 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
729 Provides:       php(dbase)
730
731 %description dbase
732 This is a dynamic shared object (DSO) for PHP that will add DBase
733 support.
734
735 %description dbase -l pl.UTF-8
736 Moduł PHP ze wsparciem dla DBase.
737
738 %package dom
739 Summary:        DOM extension module for PHP
740 Summary(pl.UTF-8):      Moduł DOM dla PHP
741 Group:          Libraries
742 URL:            http://www.php.net/manual/en/book.dom.php
743 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
744 Provides:       php(dom)
745 # it has some compatibility functions
746 Provides:       %{name}-domxml = %{epoch}:%{version}-%{release}
747 Provides:       php(domxml)
748 Obsoletes:      php-domxml <= 3:4.3.8-1
749
750 %description dom
751 This is a dynamic shared object (DSO) for PHP that will add new DOM
752 support.
753
754 %description dom -l pl.UTF-8
755 Moduł PHP dodający nową obsługę DOM.
756
757 %package exif
758 Summary:        exif extension module for PHP
759 Summary(pl.UTF-8):      Moduł exif dla PHP
760 Group:          Libraries
761 URL:            http://www.php.net/manual/en/book.exif.php
762 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
763 Provides:       php(exif)
764
765 %description exif
766 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
767 support in image files.
768
769 %description exif -l pl.UTF-8
770 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
771
772 %package fdf
773 Summary:        FDF extension module for PHP
774 Summary(pl.UTF-8):      Moduł FDF dla PHP
775 Group:          Libraries
776 URL:            http://www.php.net/manual/en/book.fdf.php
777 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
778 Provides:       php(fdf)
779
780 %description fdf
781 This PHP module adds support for PDF Forms through Adobe FDFTK
782 library.
783
784 %description fdf -l pl.UTF-8
785 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
786 FDFTK.
787
788 %package filter
789 Summary:        Extension for safely dealing with input parameters
790 Summary(pl.UTF-8):      Rozszerzenie do bezpiecznej obsługi danych wejściowych
791 Group:          Libraries
792 URL:            http://www.php.net/manual/en/book.filter.php
793 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
794 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
795 Provides:       php(filter)
796 Obsoletes:      php-pecl-filter
797
798 %description filter
799 We all know that you should always check input variables, but PHP does
800 not offer really good functionality for doing this in a safe way. The
801 Input Filter extension is meant to address this issue by implementing
802 a set of filters and mechanisms that users can use to safely access
803 their input data.
804
805 %description filter -l pl.UTF-8
806 Wiadomo, że trzeba zawsze sprawdzać zmienne wejściowe, ale PHP nie
807 oferuje naprawdę dobrej funkcjonalności do robienia tego w sposób
808 bezpieczny. Rozszerzenie Input Filter ma rozwiązać ten problem poprzez
809 zaimplementowanie zestawu filtrów i mechanizmów, których użytkownicy
810 mogą bezpiecznie używać do dostępu do danych.
811
812 %package ftp
813 Summary:        FTP extension module for PHP
814 Summary(pl.UTF-8):      Moduł FTP dla PHP
815 Group:          Libraries
816 URL:            http://www.php.net/manual/en/book.ftp.php
817 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
818 Provides:       php(ftp)
819
820 %description ftp
821 This is a dynamic shared object (DSO) for PHP that will add FTP
822 support.
823
824 %description ftp -l pl.UTF-8
825 Moduł PHP dodający obsługę protokołu FTP.
826
827 %package gd
828 Summary:        GD extension module for PHP
829 Summary(pl.UTF-8):      Moduł GD dla PHP
830 Group:          Libraries
831 URL:            http://www.php.net/manual/en/book.image.php
832 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
833 %if %{with system_gd}
834 Requires:       gd >= 2.0.28-4
835 Requires:       gd(gif)
836 Requires:       gd(imagerotate) = 5.2.0
837 %endif
838 Provides:       php(gd)
839
840 %description gd
841 This is a dynamic shared object (DSO) for PHP that will add GD
842 support, allowing you to create and manipulate images with PHP.
843
844 %description gd -l pl.UTF-8
845 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
846 tworzenie i obróbkę obrazków.
847
848 %package gettext
849 Summary:        gettext extension module for PHP
850 Summary(pl.UTF-8):      Moduł gettext dla PHP
851 Group:          Libraries
852 URL:            http://www.php.net/manual/en/book.gettext.php
853 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
854 Provides:       php(gettext)
855
856 %description gettext
857 This is a dynamic shared object (DSO) for PHP that will add gettext
858 support.
859
860 %description gettext -l pl.UTF-8
861 Moduł PHP dodający obsługę lokalizacji przez gettext.
862
863 %package gmp
864 Summary:        gmp extension module for PHP
865 Summary(pl.UTF-8):      Moduł gmp dla PHP
866 Group:          Libraries
867 URL:            http://www.php.net/manual/en/book.gmp.php
868 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
869 Provides:       php(gmp)
870
871 %description gmp
872 This is a dynamic shared object (DSO) for PHP that will add arbitrary
873 length number support with GNU MP library.
874
875 %description gmp -l pl.UTF-8
876 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
877 liczbach o dowolnej długości.
878
879 %package hash
880 Summary:        HASH Message Digest Framework
881 Summary(pl.UTF-8):      Szkielet do obliczania skrótów wiadomości
882 Group:          Libraries
883 URL:            http://www.php.net/manual/en/book.gmp.php
884 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
885 Provides:       php(hash)
886 Obsoletes:      php-pecl-hash
887
888 %description hash
889 Native implementations of common message digest algorithms using a
890 generic factory method.
891
892 %description hash -l pl.UTF-8
893 Natywne implementacje popularnych algorytmów obliczania skrótów
894 wiadomości przy użyciu wspólnego interfejsu.
895
896 %package iconv
897 Summary:        iconv extension module for PHP
898 Summary(pl.UTF-8):      Moduł iconv dla PHP
899 Group:          Libraries
900 URL:            http://www.php.net/manual/en/book.iconv.php
901 Requires:       %{_libdir}/gconv
902 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
903 Requires:       iconv
904 Provides:       php(iconv)
905
906 %description iconv
907 This is a dynamic shared object (DSO) for PHP that will add iconv
908 support.
909
910 %description iconv -l pl.UTF-8
911 Moduł PHP dodający obsługę iconv.
912
913 %package imap
914 Summary:        IMAP extension module for PHP
915 Summary(pl.UTF-8):      Moduł IMAP dla PHP
916 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
917 Group:          Libraries
918 URL:            http://www.php.net/manual/en/book.imap.php
919 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
920 Provides:       php(imap)
921
922 %description imap
923 This is a dynamic shared object (DSO) for PHP that will add IMAP
924 support.
925
926 %description imap -l pl.UTF-8
927 Moduł PHP dodający obsługę skrzynek IMAP.
928
929 %description imap -l pt_BR.UTF-8
930 Um módulo para aplicações PHP que usam IMAP.
931
932 %package interbase
933 Summary:        InterBase/Firebird database module for PHP
934 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
935 Group:          Libraries
936 URL:            http://www.php.net/manual/en/book.ibase.php
937 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
938 Provides:       php(interbase)
939 %{?with_interbase_inst:Autoreq: false}
940
941 %description interbase
942 This is a dynamic shared object (DSO) for PHP that will add InterBase
943 and Firebird database support.
944
945 %description interbase -l pl.UTF-8
946 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
947
948 %package json
949 Summary:        PHP C extension for JSON serialization
950 Summary(pl.UTF-8):      Rozszerzenie C PHP dla serializacji JSON
951 Group:          Libraries
952 URL:            http://www.php.net/manual/en/book.json.php
953 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
954 Provides:       php(json)
955 Obsoletes:      php-pecl-json
956
957 %description json
958 php-json is an extremely fast PHP C extension for JSON (JavaScript
959 Object Notation) serialisation.
960
961 %description json -l pl.UTF-8
962 php-json to bardzo szybkie rozszerzenie C PHP dla serializacji JSON
963 (JavaScript Object Notation).
964
965 %package ldap
966 Summary:        LDAP extension module for PHP
967 Summary(pl.UTF-8):      Moduł LDAP dla PHP
968 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
969 Group:          Libraries
970 URL:            http://www.php.net/manual/en/book.ldap.php
971 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
972 Provides:       php(ldap)
973
974 %description ldap
975 This is a dynamic shared object (DSO) for PHP that will add LDAP
976 support.
977
978 %description ldap -l pl.UTF-8
979 Moduł PHP dodający obsługę LDAP.
980
981 %description ldap -l pt_BR.UTF-8
982 Um módulo para aplicações PHP que usam LDAP.
983
984 %package mbstring
985 Summary:        mbstring extension module for PHP
986 Summary(pl.UTF-8):      Moduł mbstring dla PHP
987 Group:          Libraries
988 URL:            http://www.php.net/manual/en/book.mbstring.php
989 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
990 Provides:       php(mbstring)
991
992 %description mbstring
993 This is a dynamic shared object (DSO) for PHP that will add multibyte
994 string support.
995
996 %description mbstring -l pl.UTF-8
997 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
998
999 %package mcrypt
1000 Summary:        mcrypt extension module for PHP
1001 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
1002 Group:          Libraries
1003 URL:            http://www.php.net/manual/en/book.mcrypt.php
1004 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1005 Provides:       php(mcrypt)
1006
1007 %description mcrypt
1008 This is a dynamic shared object (DSO) for PHP that will add mcrypt
1009 support.
1010
1011 %description mcrypt -l pl.UTF-8
1012 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
1013
1014 %package mhash
1015 Summary:        mhash extension module for PHP
1016 Summary(pl.UTF-8):      Moduł mhash dla PHP
1017 Group:          Libraries
1018 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1019 Provides:       php(mhash)
1020
1021 %description mhash
1022 This is a dynamic shared object (DSO) for PHP that will add mhash
1023 support.
1024
1025 %description mhash -l pl.UTF-8
1026 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
1027
1028 %package mime_magic
1029 Summary:        mime_magic extension module for PHP
1030 Summary(pl.UTF-8):      Moduł mime_magic dla PHP
1031 Group:          Libraries
1032 Requires:       %{magic_mime}
1033 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1034 Provides:       php(mime_magic)
1035
1036 %description mime_magic
1037 This PHP module adds support for MIME type lookup via file magic
1038 numbers using magic.mime database.
1039
1040 %description mime_magic -l pl.UTF-8
1041 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
1042 znaczników plików z użyciem bazy danych magic.mime.
1043
1044 %package ming
1045 Summary:        ming extension module for PHP
1046 Summary(pl.UTF-8):      Moduł ming dla PHP
1047 Group:          Libraries
1048 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1049 Requires:       ming >= 0.3
1050 Provides:       php(ming)
1051
1052 %description ming
1053 This is a dynamic shared object (DSO) for PHP that will add ming
1054 (Flash - .swf files) support.
1055
1056 %description ming -l pl.UTF-8
1057 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1058 ming.
1059
1060 %package mssql
1061 Summary:        MS SQL extension module for PHP
1062 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1063 Group:          Libraries
1064 URL:            http://www.php.net/manual/en/book.mssql.php
1065 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1066 Provides:       php(mssql)
1067
1068 %description mssql
1069 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1070 databases support through FreeTDS library.
1071
1072 %description mssql -l pl.UTF-8
1073 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1074 FreeTDS.
1075
1076 %package mysql
1077 Summary:        MySQL database module for PHP
1078 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1079 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1080 Group:          Libraries
1081 URL:            http://www.php.net/manual/en/book.mysql.php
1082 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1083 Provides:       php(mysql)
1084
1085 %description mysql
1086 This is a dynamic shared object (DSO) for PHP that will add MySQL
1087 database support.
1088
1089 %description mysql -l pl.UTF-8
1090 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1091
1092 %description mysql -l pt_BR.UTF-8
1093 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1094
1095 %package mysqli
1096 Summary:        MySQLi module for PHP
1097 Summary(pl.UTF-8):      Moduł MySQLi dla PHP
1098 Group:          Libraries
1099 URL:            http://www.php.net/manual/en/book.mysqli.php
1100 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1101 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1102 Requires:       mysql-libs >= 4.1.0
1103 Provides:       php(mysqli)
1104
1105 %description mysqli
1106 This is a dynamic shared object (DSO) for PHP that will add MySQLi
1107 (Improved MySQL) support. The difference between it and mysql module
1108 is that it provides access to functionality of MySQL 4.1 and above.
1109
1110 %description mysqli -l pl.UTF-8
1111 Moduł PHP umożliwiający udoskonalony dostęp do bazy danych MySQL.
1112 Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
1113 MySQL w wersji 4.1 i nowszych.
1114
1115 %package ncurses
1116 Summary:        ncurses module for PHP
1117 Summary(pl.UTF-8):      Moduł ncurses dla PHP
1118 Group:          Libraries
1119 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1120 Provides:       php(ncurses)
1121
1122 %description ncurses
1123 This PHP module adds support for ncurses functions (only for cli and
1124 cgi SAPIs).
1125
1126 %description ncurses -l pl.UTF-8
1127 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1128
1129 %package oci8
1130 Summary:        Oracle 8+ database module for PHP
1131 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8+ dla PHP
1132 Group:          Libraries
1133 URL:            http://www.php.net/manual/en/book.oci8.php
1134 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1135 Provides:       php(oci8)
1136 AutoReq:        false
1137
1138 %description oci8
1139 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
1140 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
1141
1142 %description oci8 -l pl.UTF-8
1143 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7, 8, 9 i 10
1144 poprzez interfejs Oracle8 Call-Interface (OCI8).
1145
1146 %package odbc
1147 Summary:        ODBC extension module for PHP
1148 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1149 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1150 Group:          Libraries
1151 URL:            http://www.php.net/manual/en/book.uodbc.php
1152 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1153 Requires:       unixODBC >= 2.1.1-3
1154 Provides:       php(odbc)
1155
1156 %description odbc
1157 This is a dynamic shared object (DSO) for PHP that will add ODBC
1158 support.
1159
1160 %description odbc -l pl.UTF-8
1161 Moduł PHP ze wsparciem dla ODBC.
1162
1163 %description odbc -l pt_BR.UTF-8
1164 Um módulo para aplicações PHP que usam ODBC.
1165
1166 %package openssl
1167 Summary:        OpenSSL extension module for PHP
1168 Summary(pl.UTF-8):      Moduł OpenSSL dla PHP
1169 Group:          Libraries
1170 URL:            http://www.php.net/manual/en/book.openssl.php
1171 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1172 Provides:       php(openssl)
1173
1174 %description openssl
1175 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
1176 support.
1177
1178 %description openssl -l pl.UTF-8
1179 Moduł PHP umożliwiający korzystanie z biblioteki OpenSSL.
1180
1181 %package pcntl
1182 Summary:        Process Control extension module for PHP
1183 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1184 Group:          Libraries
1185 URL:            http://www.php.net/manual/en/book.pcntl.php
1186 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1187 Provides:       php(pcntl)
1188
1189 %description pcntl
1190 This is a dynamic shared object (DSO) for PHP that will add process
1191 spawning and control support. It supports functions like fork(),
1192 waitpid(), signal() etc.
1193
1194 %description pcntl -l pl.UTF-8
1195 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1196 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1197
1198 %package pcre
1199 Summary:        PCRE extension module for PHP
1200 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1201 Group:          Libraries
1202 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1203 Provides:       php(pcre)
1204
1205 %description pcre
1206 This is a dynamic shared object (DSO) for PHP that will add Perl
1207 Compatible Regular Expression support.
1208
1209 %description pcre -l pl.UTF-8
1210 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1211 (Perl Compatible Regular Expressions)
1212
1213 %package pdo
1214 Summary:        PHP Data Objects (PDO)
1215 Summary(pl.UTF-8):      Obsługa PHP Data Objects (PDO)
1216 Group:          Libraries
1217 URL:            http://www.php.net/manual/en/book.pdo.php
1218 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1219 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1220 Provides:       php(pdo)
1221 Obsoletes:      php-pecl-PDO
1222
1223 %description pdo
1224 This is a dynamic shared object (DSO) for PHP that will add PDO
1225 support.
1226
1227 %description pdo -l pl.UTF-8
1228 Moduł PHP dodający obsługę PDO (PHP Data Objects).
1229
1230 %package pdo-dblib
1231 Summary:        PHP Data Objects (PDO) FreeTDS support
1232 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą FreeTDS
1233 Group:          Libraries
1234 URL:            http://www.php.net/manual/en/ref.pdo-dblib.php
1235 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1236 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1237 Provides:       php(dblib)
1238
1239 %description pdo-dblib
1240 This is a dynamic shared object (DSO) for PHP that will add PDO
1241 FreeTDS support.
1242
1243 %description pdo-dblib -l pl.UTF-8
1244 Moduł dla PHP dodający obsługę baz danych FreeTDS za pośrednictwem
1245 interfejsu PDO.
1246
1247 %package pdo-firebird
1248 Summary:        PHP Data Objects (PDO) Firebird support
1249 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Firebirda
1250 Group:          Libraries
1251 URL:            http://www.php.net/manual/en/ref.pdo-firebird.php
1252 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1253 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1254 Provides:       php(pdo-firebird)
1255 Obsoletes:      php-pecl-PDO_FIREBIRD
1256
1257 %description pdo-firebird
1258 This is a dynamic shared object (DSO) for PHP that will add PDO
1259 Firebird support.
1260
1261 %description pdo-firebird -l pl.UTF-8
1262 Moduł dla PHP dodający obsługę baz danych Firebird za pośrednictwem
1263 interfejsu PDO.
1264
1265 %package pdo-mysql
1266 Summary:        PHP Data Objects (PDO) MySQL support
1267 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą MySQL-a
1268 Group:          Libraries
1269 URL:            http://www.php.net/manual/en/ref.pdo-mysql.php
1270 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1271 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1272 Provides:       php(pdo-mysql)
1273 Obsoletes:      php-pecl-PDO_MYSQL
1274
1275 %description pdo-mysql
1276 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
1277 support.
1278
1279 %description pdo-mysql -l pl.UTF-8
1280 Moduł dla PHP dodający obsługę baz danych MySQL za pośrednictwem
1281 interfejsu PDO.
1282
1283 %package pdo-oci
1284 Summary:        PHP Data Objects (PDO) Oracle support
1285 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą Oracle'a
1286 Group:          Libraries
1287 URL:            http://www.php.net/manual/en/ref.pdo-oci.php
1288 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1289 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1290 Provides:       php(pdo-oci)
1291 Obsoletes:      php-pecl-PDO_OCI
1292
1293 %description pdo-oci
1294 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1295 support.
1296
1297 %description pdo-oci -l pl.UTF-8
1298 Moduł dla PHP dodający obsługę baz danych Oracle za pośrednictwem
1299 interfejsu PDO.
1300
1301 %package pdo-odbc
1302 Summary:        PHP Data Objects (PDO) ODBC support
1303 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą ODBC
1304 Group:          Libraries
1305 URL:            http://www.php.net/manual/en/ref.pdo-odbc.php
1306 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1307 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1308 Provides:       php(pdo-odbc)
1309 Obsoletes:      php-pecl-PDO_ODBC
1310
1311 %description pdo-odbc
1312 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1313 support.
1314
1315 %description pdo-odbc -l pl.UTF-8
1316 Moduł dla PHP dodający obsługę baz danych ODBC za pośrednictwem
1317 interfejsu PDO.
1318
1319 %package pdo-pgsql
1320 Summary:        PHP Data Objects (PDO) PostgreSQL support
1321 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą PostgreSQL-a
1322 Group:          Libraries
1323 URL:            http://www.php.net/manual/en/ref.pdo-pgsql.php
1324 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1325 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1326 Provides:       php(pdo-pgsql)
1327 Obsoletes:      php-pecl-PDO_PGSQL < 4:5.2.17-1
1328
1329 %description pdo-pgsql
1330 This is a dynamic shared object (DSO) for PHP that will add PDO
1331 PostgreSQL support.
1332
1333 %description pdo-pgsql -l pl.UTF-8
1334 Moduł dla PHP dodający obsługę baz danych PostgreSQL za pośrednictwem
1335 interfejsu PDO.
1336
1337 %package pdo-sqlite
1338 Summary:        PHP Data Objects (PDO) SQLite support
1339 Summary(pl.UTF-8):      Moduł PHP Data Objects (PDO) z obsługą SQLite
1340 Group:          Libraries
1341 URL:            http://www.php.net/manual/en/ref.pdo-sqlite.php
1342 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1343 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1344 Provides:       php(pdo-sqlite)
1345 Obsoletes:      php-pecl-PDO_SQLITE
1346
1347 %description pdo-sqlite
1348 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1349 support.
1350
1351 %description pdo-sqlite -l pl.UTF-8
1352 Moduł dla PHP dodający obsługę baz danych SQLite za pośrednictwem
1353 interfejsu PDO.
1354
1355 %package pgsql
1356 Summary:        PostgreSQL database module for PHP
1357 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1358 Group:          Libraries
1359 URL:            http://www.php.net/manual/en/book.pgsql.php
1360 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1361 Provides:       php(pgsql)
1362
1363 %description pgsql
1364 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1365 database support.
1366
1367 %description pgsql -l pl.UTF-8
1368 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1369
1370 %description pgsql -l pt_BR.UTF-8
1371 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1372
1373 %package posix
1374 Summary:        POSIX extension module for PHP
1375 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1376 Group:          Libraries
1377 URL:            http://www.php.net/manual/en/book.posix.php
1378 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1379 Provides:       php(posix)
1380
1381 %description posix
1382 This is a dynamic shared object (DSO) for PHP that will add POSIX
1383 functions support to PHP.
1384
1385 %description posix -l pl.UTF-8
1386 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1387
1388 %package pspell
1389 Summary:        pspell extension module for PHP
1390 Summary(pl.UTF-8):      Moduł pspell dla PHP
1391 Group:          Libraries
1392 URL:            http://www.php.net/manual/en/book.pspell.php
1393 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1394 Provides:       php(pspell)
1395
1396 %description pspell
1397 This is a dynamic shared object (DSO) for PHP that will add pspell
1398 support to PHP. It allows to check the spelling of a word and offer
1399 suggestions.
1400
1401 %description pspell -l pl.UTF-8
1402 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1403 sprawdzanie pisowni słowa i sugerowanie poprawek.
1404
1405 %package readline
1406 Summary:        readline extension module for PHP
1407 Summary(pl.UTF-8):      Moduł readline dla PHP
1408 Group:          Libraries
1409 URL:            http://www.php.net/manual/en/book.readline.php
1410 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1411 Provides:       php(readline)
1412
1413 %description readline
1414 This PHP module adds support for readline functions (only for cli and
1415 cgi SAPIs).
1416
1417 %description readline -l pl.UTF-8
1418 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1419
1420 %package recode
1421 Summary:        recode extension module for PHP
1422 Summary(pl.UTF-8):      Moduł recode dla PHP
1423 Group:          Libraries
1424 URL:            http://www.php.net/manual/en/book.recode.php
1425 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1426 Requires:       recode >= 3.5d-3
1427 Provides:       php(recode)
1428
1429 %description recode
1430 This is a dynamic shared object (DSO) for PHP that will add recode
1431 support.
1432
1433 %description recode -l pl.UTF-8
1434 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1435 bibliotekę recode).
1436
1437 %package session
1438 Summary:        session extension module for PHP
1439 Summary(pl.UTF-8):      Moduł session dla PHP
1440 Group:          Libraries
1441 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1442 Suggests:       %{name}-hash = %{epoch}:%{version}-%{release}
1443 Suggests:       tmpwatch
1444 Provides:       php(session)
1445
1446 %description session
1447 This is a dynamic shared object (DSO) for PHP that will add session
1448 support.
1449
1450 %description session -l pl.UTF-8
1451 Moduł PHP dodający obsługę sesji.
1452
1453 %package shmop
1454 Summary:        Shared Memory Operations extension module for PHP
1455 Summary(pl.UTF-8):      Moduł shmop dla PHP
1456 Group:          Libraries
1457 URL:            http://www.php.net/manual/en/book.shmop.php
1458 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1459 Provides:       php(shmop)
1460
1461 %description shmop
1462 This is a dynamic shared object (DSO) for PHP that will add Shared
1463 Memory Operations support.
1464
1465 %description shmop -l pl.UTF-8
1466 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1467
1468 %package simplexml
1469 Summary:        Simple XML extension module for PHP
1470 Summary(pl.UTF-8):      Moduł prostego rozszerzenia XML dla PHP
1471 Group:          Libraries
1472 URL:            http://www.php.net/manual/en/book.simplexml.php
1473 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1474 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1475 Provides:       php(simplexml)
1476
1477 %description simplexml
1478 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1479 support.
1480
1481 %description simplexml -l pl.UTF-8
1482 Moduł PHP dodający obsługę prostego XML-a.
1483
1484 %package snmp
1485 Summary:        SNMP extension module for PHP
1486 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1487 Group:          Libraries
1488 URL:            http://www.php.net/manual/en/book.snmp.php
1489 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1490 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1491 Provides:       php(snmp)
1492
1493 %description snmp
1494 This is a dynamic shared object (DSO) for PHP that will add SNMP
1495 support.
1496
1497 %description snmp -l pl.UTF-8
1498 Moduł PHP dodający obsługę SNMP.
1499
1500 %package soap
1501 Summary:        soap extension module for PHP
1502 Summary(pl.UTF-8):      Moduł soap dla PHP
1503 Group:          Libraries
1504 URL:            http://www.php.net/manual/en/book.soap.php
1505 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1506 Provides:       php(soap)
1507
1508 %description soap
1509 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1510 support.
1511
1512 %description soap -l pl.UTF-8
1513 Moduł PHP dodający obsługę SOAP/WSDL.
1514
1515 %package sockets
1516 Summary:        sockets extension module for PHP
1517 Summary(pl.UTF-8):      Moduł socket dla PHP
1518 Group:          Libraries
1519 URL:            http://www.php.net/manual/en/book.sockets.php
1520 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1521 Provides:       php(sockets)
1522
1523 %description sockets
1524 This is a dynamic shared object (DSO) for PHP that will add sockets
1525 support.
1526
1527 %description sockets -l pl.UTF-8
1528 Moduł PHP dodający obsługę gniazdek.
1529
1530 %package spl
1531 Summary:        Standard PHP Library module for PHP
1532 Summary(pl.UTF-8):      Moduł SPL dla PHP
1533 Group:          Libraries
1534 URL:            http://php.net/manual/en/book.spl.php
1535 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1536 Requires:       %{name}-pcre = %{epoch}:%{version}-%{release}
1537 Requires:       %{name}-simplexml = %{epoch}:%{version}-%{release}
1538 Provides:       php(spl)
1539
1540 %description spl
1541 This is a dynamic shared object (DSO) for PHP that will add Standard
1542 PHP Library support.
1543
1544 %description spl -l pl.UTF-8
1545 Moduł PHP dodający obsługę gniazdek.
1546
1547 %package sqlite
1548 Summary:        SQLite extension module for PHP
1549 Summary(pl.UTF-8):      Moduł SQLite dla PHP
1550 Group:          Libraries
1551 URL:            http://www.php.net/manual/en/book.sqlite.php
1552 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1553 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1554 Requires:       %{name}-spl = %{epoch}:%{version}-%{release}
1555 Provides:       php(sqlite)
1556
1557 %description sqlite
1558 SQLite is a C library that implements an embeddable SQL database
1559 engine. Programs that link with the SQLite library can have SQL
1560 database access without running a separate RDBMS process.
1561
1562 SQLite is not a client library used to connect to a big database
1563 server. SQLite is the server. The SQLite library reads and writes
1564 directly to and from the database files on disk.
1565
1566 %description sqlite -l pl.UTF-8
1567 SQLite jest napisaną w C biblioteką implementującą osadzalny silnik
1568 bazodanowy SQL. Program linkujący się z biblioteką SQLite może mieć
1569 dostęp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1570 RDBMS.
1571
1572 SQLite to nie klient baz danych - biblioteka nie łączy się z serwerami
1573 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1574 zapisuje dane bezpośrednio z/do plików baz danych znajdujących się na
1575 dysku.
1576
1577 %package sybase
1578 Summary:        Sybase DB extension module for PHP
1579 Summary(pl.UTF-8):      Moduł Sybase DB dla PHP
1580 Group:          Libraries
1581 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1582 Provides:       php(sybase)
1583 Obsoletes:      php-sybase-ct
1584 Conflicts:      php-sybase-ct
1585
1586 %description sybase
1587 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1588 MS SQL databases support through SYBDB library. Currently Sybase
1589 module is not maintained. Using Sybase-CT module is recommended
1590 instead.
1591
1592 %description sybase -l pl.UTF-8
1593 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1594 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1595 Zaleca się używanie modułu Sybase-CT.
1596
1597 %package sybase-ct
1598 Summary:        Sybase-CT extension module for PHP
1599 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1600 Group:          Libraries
1601 URL:            http://www.php.net/manual/en/book.sybase.php
1602 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1603 Provides:       php(sybase-ct)
1604 Obsoletes:      php-sybase
1605 Conflicts:      php-sybase
1606
1607 %description sybase-ct
1608 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1609 MS SQL databases support through CT-lib.
1610
1611 %description sybase-ct -l pl.UTF-8
1612 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1613 CT-lib.
1614
1615 %package sysvmsg
1616 Summary:        SysV msg extension module for PHP
1617 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1618 Group:          Libraries
1619 URL:            http://www.php.net/manual/en/book.sem.php
1620 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1621 Provides:       php(sysvmsg)
1622
1623 %description sysvmsg
1624 This is a dynamic shared object (DSO) for PHP that will add SysV
1625 message queues support.
1626
1627 %description sysvmsg -l pl.UTF-8
1628 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1629
1630 %package sysvsem
1631 Summary:        SysV sem extension module for PHP
1632 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1633 Group:          Libraries
1634 URL:            http://www.php.net/manual/en/book.sem.php
1635 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1636 Provides:       php(sysvsem)
1637
1638 %description sysvsem
1639 This is a dynamic shared object (DSO) for PHP that will add SysV
1640 semaphores support.
1641
1642 %description sysvsem -l pl.UTF-8
1643 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1644
1645 %package sysvshm
1646 Summary:        SysV shm extension module for PHP
1647 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1648 Group:          Libraries
1649 URL:            http://www.php.net/manual/en/book.shmop.php
1650 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1651 Provides:       php(sysvshm)
1652
1653 %description sysvshm
1654 This is a dynamic shared object (DSO) for PHP that will add SysV
1655 Shared Memory support.
1656
1657 %description sysvshm -l pl.UTF-8
1658 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1659
1660 %package tests
1661 Summary:        Contains unit test files for PHP and extensions
1662 Summary(pl.UTF-8):      Zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1663 Group:          Libraries
1664 URL:            http://qa.php.net/
1665 Requires:       %{name}-cli
1666
1667 %description tests
1668 This package contains unit tests for PHP and it's extensions.
1669
1670 %description tests -l pl.UTF-8
1671 Ten pakiet zawiera pliki testów jednostkowych dla PHP i rozszerzeń
1672
1673 %package tidy
1674 Summary:        Tidy extension module for PHP
1675 Summary(pl.UTF-8):      Moduł Tidy dla PHP
1676 Group:          Libraries
1677 URL:            http://www.php.net/manual/en/book.tidy.php
1678 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1679 Requires:       tidy
1680 Provides:       php(tidy)
1681
1682 %description tidy
1683 This is a dynamic shared object (DSO) for PHP that will add Tidy
1684 support.
1685
1686 %description tidy -l pl.UTF-8
1687 Moduł PHP umożliwiający korzystanie z tidy.
1688
1689 %package tokenizer
1690 Summary:        tokenizer extension module for PHP
1691 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1692 Group:          Libraries
1693 URL:            http://www.php.net/manual/en/book.tokenizer.php
1694 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1695 Provides:       php(tokenizer)
1696
1697 %description tokenizer
1698 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1699 support.
1700
1701 %description tokenizer -l pl.UTF-8
1702 Moduł PHP dodający obsługę tokenizera do PHP.
1703
1704 %package wddx
1705 Summary:        wddx extension module for PHP
1706 Summary(pl.UTF-8):      Moduł wddx dla PHP
1707 Group:          Libraries
1708 URL:            http://www.php.net/manual/en/book.wddx.php
1709 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1710 # - wddx doesn't require session as it's disabled at compile time:
1711 #   if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1712 #   see also php.spec#rev1.120.2.22
1713 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1714 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1715 Provides:       php(wddx)
1716
1717 %description wddx
1718 This is a dynamic shared object (DSO) for PHP that will add wddx
1719 support.
1720
1721 %description wddx -l pl.UTF-8
1722 Moduł PHP umożliwiający korzystanie z wddx.
1723
1724 %package xml
1725 Summary:        XML extension module for PHP
1726 Summary(pl.UTF-8):      Moduł XML dla PHP
1727 Group:          Libraries
1728 URL:            http://www.php.net/manual/en/book.xml.php
1729 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1730 Provides:       php(xml)
1731
1732 %description xml
1733 This is a dynamic shared object (DSO) for PHP that will add XML
1734 support. This extension lets you create XML parsers and then define
1735 handlers for different XML events.
1736
1737 %description xml -l pl.UTF-8
1738 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1739 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1740 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1741
1742 %package xmlreader
1743 Summary:        XML Reader extension module for PHP
1744 Summary(pl.UTF-8):      Moduł XML Reader dla PHP
1745 Group:          Libraries
1746 URL:            http://www.php.net/manual/en/book.xmlreader.php
1747 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1748 Suggests:       %{name}-dom = %{epoch}:%{version}-%{release}
1749 Provides:       php(xmlreader)
1750
1751 %description xmlreader
1752 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1753 support. The XMLReader extension is an XML Pull parser. The reader
1754 acts as a cursor going forward on the document stream and stopping at
1755 each node on the way.
1756
1757 %description xmlreader -l pl.UTF-8
1758 Moduł PHP umożliwiający analizę plików XML w trybie Pull. Czytnik
1759 działa jako kursor przechodzący przez strumień dokumentu i
1760 zatrzymujący się na każdym węźle po drodze.
1761
1762 %package xmlrpc
1763 Summary:        xmlrpc extension module for PHP
1764 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1765 Group:          Libraries
1766 URL:            http://www.php.net/manual/en/book.xmlrpc.php
1767 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1768 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1769 Provides:       php(xmlrpc)
1770
1771 %description xmlrpc
1772 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1773 support.
1774
1775 %description xmlrpc -l pl.UTF-8
1776 Moduł PHP dodający obsługę XMLRPC.
1777
1778 %package xmlwriter
1779 Summary:        Fast, non-cached, forward-only means to write XML data
1780 Summary(pl.UTF-8):      Szybka, nie cachowana metoda zapisu danych w formacie XML
1781 Group:          Libraries
1782 URL:            http://www.php.net/manual/en/book.xmlwriter.php
1783 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1784 Provides:       php(xmlwriter)
1785 Obsoletes:      php-pecl-xmlwriter
1786
1787 %description xmlwriter
1788 This extension wraps the libxml xmlWriter API. Represents a writer
1789 that provides a non-cached, forward-only means of generating streams
1790 or files containing XML data.
1791
1792 %description xmlwriter -l pl.UTF-8
1793 To rozszerzenie obudowuje API xmlWriter z libxml. Reprezentuje obsługę
1794 zapisu dostarczającą nie cachowanych metod generowania strumieni lub
1795 plików zawierających dane XML.
1796
1797 %package xsl
1798 Summary:        xsl extension module for PHP
1799 Summary(pl.UTF-8):      Moduł xsl dla PHP
1800 Group:          Libraries
1801 URL:            http://www.php.net/manual/en/book.xsl.php
1802 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1803 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1804 Requires:       libxslt >= 1.0.18
1805 # actually not true, functionality is similar, but API differs
1806 Provides:       php(xsl)
1807 Obsoletes:      php-xslt <= 3:4.3.8-1
1808
1809 %description xsl
1810 This is a dynamic shared object (DSO) for PHP that will add new XSL
1811 support (using libxslt).
1812
1813 %description xsl -l pl.UTF-8
1814 Moduł PHP dodający nową obsługę XSLT (przy użyciu libxslt).
1815
1816 %package zip
1817 Summary:        Zip management extension
1818 Summary(pl.UTF-8):      Zarządzanie archiwami zip
1819 Group:          Libraries
1820 URL:            http://www.php.net/manual/en/book.zip.php
1821 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1822 %{?with_system_libzip:Requires: libzip >= 0.10-3}
1823 Provides:       php(zip)
1824 Obsoletes:      php-pecl-zip
1825
1826 %description zip
1827 Zip is an extension to create, modify and read zip files.
1828
1829 %description zip -l pl.UTF-8
1830 Zip jest rozszerzeniem umożliwiającym tworzenie, modyfikację oraz
1831 odczyt archiwów zip.
1832
1833 %package zlib
1834 Summary:        Zlib extension module for PHP
1835 Summary(pl.UTF-8):      Moduł zlib dla PHP
1836 Group:          Libraries
1837 URL:            http://www.php.net/manual/en/book.zlib.php
1838 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1839 Provides:       php(zlib)
1840
1841 %description zlib
1842 This is a dynamic shared object (DSO) for PHP that will add zlib
1843 compression support to PHP.
1844
1845 %description zlib -l pl.UTF-8
1846 Moduł PHP umożliwiający używanie kompresji zlib.
1847
1848 %prep
1849 %setup -q -n %{orgname}-%{version}
1850 %patch100 -p1
1851 # for suhosin patch
1852 %{__sed} -i -e 's,\r$,,' Zend/Zend.dsp Zend/ZendTS.dsp
1853
1854 %patch0 -p1
1855 %patch1 -p1
1856 %patch2 -p1
1857 %patch3 -p1
1858 %patch4 -p1
1859 %patch5 -p1
1860 %patch6 -p1
1861 %patch7 -p1
1862 %patch8 -p1
1863 %patch9 -p1
1864
1865 cp php.ini-dist php.ini
1866 %patch10 -p1
1867 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1868 # conditionally...
1869 %patch11 -p1
1870 %patch12 -p1
1871 %patch13 -p1
1872 %patch14 -p1
1873 %patch15 -p1
1874 %patch16 -p1
1875 %patch17 -p1
1876 %patch18 -p1
1877 %if %{with system_gd}
1878 %patch19 -p1
1879 %endif
1880 %patch20 -p1
1881 %patch21 -p1
1882 %patch22 -p1
1883 %patch23 -p1
1884 %patch24 -p1
1885
1886 %{?with_versioning:%patch25 -p1}
1887
1888 %if 0
1889 %{__tar} jxf %{SOURCE9}
1890 v=%{SOURCE9} v=${v#*/php-patchset-} v=${v%%-*}
1891 mv $v/$v gentoo-patchset
1892 for a in gentoo-patchset/*.patch; do
1893         %{__patch} -p1 < $a
1894 done
1895 %endif
1896
1897 %patch26 -p1
1898 %patch27 -p1
1899 %patch28 -p1
1900 %patch29 -p1
1901 %patch30 -p1
1902 #%patch31 -p1
1903 %patch32 -p1
1904 %patch33 -p1
1905 %if "%{pld_release}" != "ac"
1906 %patch34 -p1
1907 %endif
1908 %patch35 -p1
1909
1910 # mysql default charset for mysql/mysql/pdo-mysql extensions
1911 %patch36 -p1
1912 %patch37 -p0
1913 %patch38 -p0
1914
1915 %patch39 -p1
1916
1917 %if %{with fpm}
1918 %patch40 -p1
1919 %patch41 -p1
1920 %patch42 -p1
1921 %endif
1922
1923 %patch43 -p1
1924 %patch44 -p1
1925 %patch45 -p1
1926 %patch46 -p1
1927 %if %{with suhosin}
1928 %patch47 -p1
1929 %endif
1930 %patch48 -p1
1931 %patch49 -p1
1932 %patch50 -p1
1933 %patch51 -p1
1934 %patch52 -p1
1935 %patch53 -p1
1936 %patch54 -p1
1937 %patch55 -p1
1938 %patch56 -p1
1939 %patch57 -p1
1940 %patch58 -p4
1941 %patch59 -p1
1942 %patch60 -p4
1943 %patch61 -p1
1944 %{?with_system_libzip:%patch65 -p1}
1945 %patch66 -p2
1946 %patch67 -p1
1947 %patch69 -p4
1948 %patch70 -p1
1949 %patch71 -p1
1950 %patch72 -p1
1951 %patch73 -p1
1952 %patch74 -p1
1953 %patch75 -p1
1954 %patch76 -p1
1955 %patch77 -p1
1956 %patch78 -p1
1957 %patch79 -p1
1958
1959 # Bugfix backport from 5.3.6
1960 %patch311 -p1 -b .bug-47435
1961 %patch314 -p1 -b .bug-39199
1962 # Bugfix backport from 5.3.7
1963 #accert %patch333 -p1 -b .bug-54924
1964 #soap %patch355 -p1 -b .bug-55323
1965 # causes regression -> magic_quotes_gpc setting cannot be changed
1966 #%%patch402 -p1 -b .bug-323016
1967
1968 # cleanup backups after patching
1969 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
1970
1971 # conflict seems to be resolved by recode patches
1972 rm -f ext/recode/config9.m4
1973
1974 # remove all bundled libraries not to link with them accidentally
1975 #rm -rf ext/sqlite/libsqlite
1976 #rm -rf ext/bcmath/libbcmath
1977 #rm -rf ext/date/lib
1978 #rm -rf ext/dba/libcdb
1979 #rm -rf ext/dba/libflatfile
1980 #rm -rf ext/dba/libinifile
1981 #rm -rf ext/gd/libgd
1982 #rm -rf ext/mbstring/libmbfl
1983 #rm -rf ext/mbstring/oniguruma
1984 rm -rf ext/pcre/pcrelib
1985 rm -rf ext/pdo_sqlite/sqlite
1986 #rm -rf ext/soap/interop
1987 %if %{with system_xmlrpc_epi}
1988 rm -rf ext/xmlrpc/libxmlrpc
1989 %endif
1990
1991 %ifarch ppc ppc64
1992 # this test hungs on ac-ppc
1993 #mv ext/reflection/tests/007.php{,ignore}
1994 # this test gets killed by itself
1995 mv ext/standard/tests/general_functions/bug39322.phpt{,.broken}
1996 %endif
1997
1998 cp -af Zend/LICENSE{,.Zend}
1999 install -p %{SOURCE13} dep-tests.sh
2000
2001 # disable broken tests
2002 # says just "Terminated" twice and fails
2003 mv sapi/cli/tests/022.phpt{,.broken}
2004
2005 sh -xe %{_sourcedir}/skip-tests.sh
2006
2007 %build
2008 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
2009 if [ $API != %{php_api_version} ]; then
2010         echo "Set %%define php_api_version to $API and re-run."
2011         exit 1
2012 fi
2013
2014 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
2015 if [ $API != %{zend_module_api} ]; then
2016         echo "Set %%define zend_module_api to $API and re-run."
2017         exit 1
2018 fi
2019
2020 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
2021 if [ $API != %{zend_extension_api} ]; then
2022         echo "Set %%define zend_extension_api to $API and re-run."
2023         exit 1
2024 fi
2025
2026 export EXTENSION_DIR="%{php_extensiondir}"
2027 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
2028         rm -f Makefile.{fcgi,fpm,cgi,cli,apxs{1,2}} # now remove Makefile copies
2029         %{__libtoolize}
2030         %{__aclocal}
2031         cp -f /usr/share/automake/config.* .
2032         ./buildconf --force
2033         touch _built-conf
2034 fi
2035 export PROG_SENDMAIL="/usr/lib/sendmail"
2036
2037 sapis="
2038 %if %{with fcgi}
2039 fcgi
2040 %endif
2041 %if %{with fpm}
2042 fpm
2043 %endif
2044 cgi cli
2045 %if %{with apache1}
2046 apxs1
2047 %endif
2048 %if %{with apache2}
2049 apxs2
2050 %endif
2051 "
2052 for sapi in $sapis; do
2053         : SAPI $sapi
2054         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
2055
2056         sapi_args=''
2057         case $sapi in
2058         cgi)
2059                 sapi_args='--disable-cli --enable-discard-path --enable-force-cgi-redirect'
2060                 ;;
2061         cli)
2062                 sapi_args='--disable-cgi'
2063                 ;;
2064         fcgi)
2065                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect'
2066                 ;;
2067         fpm)
2068                 sapi_args='--disable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-fpm'
2069                 ;;
2070         apxs1)
2071                 apache_ver=$(rpm -q --qf '%{V}' apache1-devel)
2072                 sapi_args="--disable-cli --with-apxs=%{apxs1} --with-apache-version=$apache_ver"
2073                 ;;
2074         apxs2)
2075                 apache_ver=$(rpm -q --qf '%{V}' apache-devel)
2076                 sapi_args="--disable-cli --with-apxs2=%{apxs2} --with-apache-version=$apache_ver"
2077                 ;;
2078         esac
2079
2080         %configure \
2081         FORCE_APACHE_VERSION="${apache_ver}" \
2082         EXTRA_LDFLAGS="%{rpmldflags}" \
2083         $sapi_args \
2084 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
2085         --cache-file=config.cache \
2086 %endif
2087         --with-libdir=%{_lib} \
2088         --with-config-file-path=%{_sysconfdir} \
2089         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
2090         --with-exec-dir=%{_bindir} \
2091         --with-system-tzdata \
2092         --%{!?debug:dis}%{?debug:en}able-debug \
2093         %{?with_zts:--enable-maintainer-zts} \
2094         %{?with_suhosin:--enable-suhosin} \
2095         %{?with_zend_multibyte:--enable-zend-multibyte} \
2096         --enable-inline-optimization \
2097         --enable-bcmath=shared \
2098         --enable-calendar=shared \
2099         --enable-ctype=shared \
2100         --enable-dba=shared \
2101         --enable-dom=shared \
2102         --enable-exif=shared \
2103         --enable-ftp=shared \
2104         --enable-gd-native-ttf \
2105         %{?with_gd_jis_conv:--enable-gd-jis-conv} \
2106         --enable-libxml \
2107         --enable-magic-quotes \
2108         --enable-mbstring=%{?!with_zend_multibyte:shared,}all \
2109         --enable-mbregex \
2110         --enable-pcntl=shared \
2111         --enable-pdo=shared \
2112         --enable-json=shared \
2113         --enable-hash=shared \
2114         --enable-xmlwriter=shared \
2115 %if %{with fpm}
2116         --with-fpm-conf=%{_sysconfdir}/fpm.conf \
2117         --with-fpm-log=/var/log/php/%{name}-fpm.log \
2118         --with-fpm-pid=/var/run/%{name}-fpm.pid \
2119 %endif
2120 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2121         --with-pdo-dblib=shared \
2122 %endif
2123 %if %{with interbase} && !%{with interbase_inst}
2124         --with-pdo-firebird=shared,/usr \
2125 %endif
2126         --with-pdo-mysql=shared \
2127         %{?with_oci:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2128         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
2129         %{?with_pgsql:--with-pdo-pgsql=shared} \
2130         %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
2131         --enable-posix=shared \
2132         --enable-reflection \
2133         --enable-shared \
2134         --enable-session=shared \
2135         --enable-shmop=shared \
2136         --enable-simplexml=shared \
2137         --enable-spl=shared \
2138         --enable-sysvmsg=shared \
2139         --enable-sysvsem=shared \
2140         --enable-sysvshm=shared \
2141         --enable-safe-mode \
2142         --enable-soap=shared \
2143         --enable-sockets=shared \
2144         --enable-tokenizer=shared \
2145         --enable-ucd-snmp-hack \
2146         %{?with_wddx:--enable-wddx=shared} \
2147         --enable-xml=shared \
2148         --enable-xmlreader=shared \
2149         --with-bz2=shared \
2150         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
2151         --with-db4 \
2152         --enable-dbase=shared \
2153         --without-libexpat-dir \
2154         %{?with_fdf:--with-fdftk=shared} \
2155         --with-iconv=shared \
2156         --with-freetype-dir=shared \
2157         --with-gettext=shared \
2158         --with-gd=shared%{?with_system_gd:,/usr} \
2159         --with-gdbm \
2160         --with-gmp=shared \
2161         %{?with_imap:--with-imap=shared --with-imap-ssl} \
2162         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
2163         --with-jpeg-dir=/usr \
2164         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
2165         --with-mcrypt=shared \
2166         %{?with_mhash:--with-mhash=shared} \
2167         %{?with_mime_magic:--with-mime-magic=shared,%{magic_mime}}%{!?with_mime_magic:--disable-mime-magic} \
2168         %{?with_ming:--with-ming=shared} \
2169         %{?with_mm:--with-mm} \
2170         %{?with_mssql:--with-mssql=shared} \
2171         --with-mysql=shared,/usr \
2172         --with-mysql-sock=/var/lib/mysql/mysql.sock \
2173         %{?with_mysqli:--with-mysqli=shared} \
2174         --with-ncurses=shared \
2175         %{?with_oci:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
2176         %{?with_openssl:--with-openssl=shared} \
2177         --with-kerberos \
2178         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
2179         %{!?with_filter:--disable-filter}%{?with_filter:--enable-filter=shared} \
2180         --with-pear=%{php_pear_dir} \
2181         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
2182         --with-png-dir=/usr \
2183         %{?with_pspell:--with-pspell=shared} \
2184         --with-readline=shared \
2185         %{?with_recode:--with-recode=shared} \
2186         --with-regex=php \
2187         %{?with_snmp:--with-snmp=shared} \
2188         %{?with_sybase:--with-sybase=shared,/usr} \
2189         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
2190         %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
2191         --with-t1lib=shared \
2192         %{?with_tidy:--with-tidy=shared} \
2193         %{?with_odbc:--with-unixODBC=shared,/usr} \
2194         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
2195         --with-xsl=shared \
2196         --with-zlib=shared \
2197         --with-zlib-dir=shared,/usr \
2198         %{?with_system_libzip:--with-libzip} \
2199         --enable-zip=shared,/usr \
2200
2201         cp -f Makefile Makefile.$sapi
2202         cp -f main/php_config.h php_config.h.$sapi
2203         cp -f config.log config.log.$sapi
2204 done
2205
2206 # as we build each SAPI in own make, adjust php-config.in forehead
2207 sapis=$(awk '/^PHP_SAPI = /{print $3}' Makefile.* | sort -u | xargs)
2208 sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
2209
2210 # must make this first, so modules can link against it.
2211 %{__make} libphp_common.la
2212 %{__make} build-modules
2213
2214 %if %{with apache1}
2215 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
2216 %endif
2217
2218 %if %{with apache2}
2219 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
2220 %endif
2221
2222 # CGI
2223 cp -af php_config.h.cgi main/php_config.h
2224 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2225 %{__make} sapi/cgi/php-cgi -f Makefile.cgi
2226 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php-cgi -qn)" = cgi ] || exit 1
2227
2228 # FCGI
2229 %if %{with fcgi}
2230 cp -af php_config.h.fcgi main/php_config.h
2231 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2232 %{__make} sapi/cgi/php-cgi -f Makefile.fcgi
2233 cp -r sapi/cgi sapi/fcgi
2234 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php-cgi -qn)" = cgi-fcgi ] || exit 1
2235 %endif
2236
2237 %if %{with fpm}
2238 cp -af php_config.h.fpm main/php_config.h
2239 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
2240 %{__make} sapi/cgi/php-cgi -f Makefile.fpm
2241 cp -r sapi/cgi sapi/fpm
2242 [ "$(echo '<?=php_sapi_name();' | ./sapi/fpm/php-cgi -qn)" = cgi-fcgi ] || exit 1
2243 %endif
2244
2245 # CLI
2246 cp -af php_config.h.cli main/php_config.h
2247 %{__make} sapi/cli/php -f Makefile.cli
2248 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
2249
2250 # check for stupid xml parse breakage where &lt; and &gt; just get lost in parse result
2251 ./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"]));'
2252
2253 # Generate stub .ini files for each extension
2254 rm -rf conf.d
2255 install -d conf.d
2256 generate_inifiles() {
2257         for so in modules/*.so; do
2258                 mod=$(basename $so .so)
2259                 conf="$mod.ini"
2260                 # xml needs to be loaded before wddx
2261                 [ "$mod" = "wddx" ] && conf="xml_$mod.ini"
2262                 # pre needs to be loaded before SPL
2263                 [ "$mod" = "pcre" ] && conf="PCRE.ini"
2264                 # spl needs to be loaded before mysqli
2265                 [ "$mod" = "spl" ] && conf="SPL.ini"
2266                 # session needs to be loaded before php-pecl-http, php-pecl-memcache, php-pecl-session_mysql
2267                 [ "$mod" = "session" ] && conf="Session.ini"
2268                 echo "+ $conf"
2269                 cat > conf.d/$conf <<-EOF
2270                         ; Enable $mod extension module
2271                         extension=$mod.so
2272                 EOF
2273         done
2274 }
2275 generate_inifiles
2276
2277 # Check that the module inner-dependencies are intact
2278 PHP=./sapi/cli/php EXTENSION_DIR=modules CONFIG_DIR=conf.d ./dep-tests.sh > dep-tests.log
2279 if grep -v OK dep-tests.log; then
2280         echo >&2 "The results above were not expected"
2281 # TEMP: ac-i386 builder is broken
2282 %ifnarch i386
2283         exit 1
2284 %endif
2285 fi
2286
2287
2288 %if %{with tests}
2289 # Run tests, using the CLI SAPI
2290 cp -af php_config.h.cli main/php_config.h
2291 cp -af Makefile.cli Makefile
2292 # sybase modules collide, remove one
2293 %{__sed} -i -e '/^PHP_MODULES/s,\$(phplibdir)/sybase_ct.la,,' Makefile
2294
2295 cat <<'EOF' > run-tests.sh
2296 #!/bin/sh
2297 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
2298 unset TZ LANG LC_ALL || :
2299 %{__make} test \
2300         EXTENSION_DIR=. \
2301         PHP_TEST_SHARED_SYSTEM_EXTENSIONS= \
2302         RUN_TESTS_SETTINGS="-q $*"
2303 EOF
2304 chmod +x run-tests.sh
2305 ./run-tests.sh -w failed.log -s test.log
2306
2307 # collect failed tests into cleanup script used in prep.
2308 sed -ne '/FAILED TEST SUMMARY/,/^===/p' test.log | sed -e '1,/^---/d;/^===/,$d' > tests-failed.log
2309 sed -ne '/\[.*\]/{s/\(.*\) \[\(.*\)\]/# \1\nmv \2{,.skip}/p}' tests-failed.log \
2310         >> %{_sourcedir}/skip-tests.sh
2311
2312 failed=$(wc -l < tests-failed.log)
2313 if [ "$failed" != 0 ]; then
2314         exit 1
2315 fi
2316 %endif
2317
2318 %install
2319 rm -rf $RPM_BUILD_ROOT
2320 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
2321         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
2322         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
2323         $RPM_BUILD_ROOT%{_mandir}/man1 \
2324
2325 # install the Apache modules' files
2326 %{__make} -j1 install-headers install-build install-modules install-programs \
2327         phpbuilddir=%{_libdir}/%{name}/build \
2328         INSTALL_ROOT=$RPM_BUILD_ROOT
2329
2330 # version suffix
2331 v=$(echo %{version} | cut -d. -f1-2)
2332
2333 # install Apache1 DSO module
2334 %if %{with apache1}
2335 libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
2336 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so
2337 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so
2338 %endif
2339
2340 # install Apache2 DSO module
2341 %if %{with apache2}
2342 libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
2343 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so
2344 ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
2345 %endif
2346
2347 # install CGI
2348 libtool --mode=install install -p sapi/cgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.cgi
2349
2350 # install FCGI
2351 %if %{with fcgi}
2352 libtool --mode=install install -p sapi/fcgi/php-cgi $RPM_BUILD_ROOT%{_bindir}/%{name}.fcgi
2353 %endif
2354
2355 # install FCGI PM
2356 %if %{with fpm}
2357 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fpm.d,%{_sbindir}}
2358 libtool --mode=install install -p sapi/fpm/php-cgi $RPM_BUILD_ROOT%{_sbindir}/%{name}-fpm
2359 cp -p sapi/fpm/fpm/php-fpm.conf $RPM_BUILD_ROOT%{_sysconfdir}/fpm.conf
2360 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
2361 install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fpm
2362 install -d $RPM_BUILD_ROOT/etc/logrotate.d
2363 cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2364 %if "%{pld_release}" == "ac"
2365 %{__sed} -i -e '/su/d' $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-fpm
2366 %endif
2367
2368 %{__sed} -i -e '
2369         s#/usr/lib/php#%{php_extensiondir}#
2370         s#/etc/php#%{_sysconfdir}#
2371         s#@processname@#%{name}-fpm#g
2372 ' $RPM_BUILD_ROOT{/etc/{rc.d/init.d/%{name}-fpm,logrotate.d/%{name}-fpm},%{_sysconfdir}/fpm.conf}
2373 %endif
2374
2375 # install CLI
2376 # without suffix, install as php.cli
2377 %if "%{?php_suffix}" == ""
2378 %define phpfn %{name}.cli
2379 %else
2380 %define phpfn %{name}
2381 %endif
2382 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/%{phpfn}
2383 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2384 cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{phpfn}.1
2385 echo ".so man1/%{phpfn}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1
2386 ln -sf %{phpfn} $RPM_BUILD_ROOT%{_bindir}/php
2387
2388 cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
2389 %if %{with fcgi}
2390 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
2391 %endif
2392 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
2393 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
2394
2395 %if %{with apache1}
2396 install %{SOURCE2} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
2397 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
2398 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
2399 %endif
2400
2401 %if %{with apache2}
2402 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php.conf
2403 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
2404 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
2405 %endif
2406
2407 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2408 cp -a conf.d/*.ini $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
2409
2410 # ensure that paths are correct for current php version and arch
2411 grep -El '/etc/php/|/usr/lib/php/' $RPM_BUILD_ROOT%{_sysconfdir}/*.ini | xargs -r \
2412 %{__sed} -i -e '
2413         s#/usr/lib/php#%{php_extensiondir}#g
2414         s#/etc/php#%{_sysconfdir}#g
2415 '
2416
2417 # per SAPI ini directories
2418 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
2419
2420 # for CLI SAPI only
2421 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,readline}.ini,cli.d}
2422
2423 # use system automake and {lib,sh}tool
2424 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2425 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2426 for fn in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
2427         f=%{_aclocaldir}/$fn
2428         test -f $f || continue
2429         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2430 done
2431 for fn in ltmain.sh config/ltmain.sh build-aux/ltmain.sh; do
2432         f=/usr/share/libtool/$fn
2433         test -f $f || continue
2434         ln -snf $f $RPM_BUILD_ROOT%{_libdir}/%{name}/build
2435         break
2436 done
2437 sed -i -e '/^phpdir/ s,/php/build,/%{name}/build,' $RPM_BUILD_ROOT%{_bindir}/phpize
2438
2439 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
2440 # isn't installed by install-headers make target, we do it manually here.
2441 # this header file is required by e.g. filter PECL extension
2442 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
2443 # for php-pecl-mailparse
2444 install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2445 cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
2446
2447 # tests
2448 install -d $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2449 install -p run-tests.php $RPM_BUILD_ROOT%{php_data_dir}/tests/php/run-tests.php
2450 cp -a tests/* $RPM_BUILD_ROOT%{php_data_dir}/tests/php
2451
2452 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
2453 # fix install paths, avoid evil rpaths
2454 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
2455 # better solution?
2456 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/%{name}/build/acinclude.m4
2457
2458 %clean
2459 rm -rf $RPM_BUILD_ROOT
2460
2461 %post -n apache1-mod_%{name}
2462 if [ "$1" = "1" ]; then
2463         %service -q apache restart
2464 fi
2465
2466 %postun -n apache1-mod_%{name}
2467 if [ "$1" = "0" ]; then
2468         %service -q apache restart
2469 fi
2470
2471 %post -n apache-mod_%{name}
2472 if [ "$1" = "1" ]; then
2473         %service -q httpd restart
2474 fi
2475
2476 %postun -n apache-mod_%{name}
2477 if [ "$1" = "0" ]; then
2478         %service -q httpd restart
2479 fi
2480
2481 %pre fpm
2482 %useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
2483
2484 %post fpm
2485 /sbin/chkconfig --add %{name}-fpm
2486 %service %{name}-fpm restart
2487
2488 %preun fpm
2489 if [ "$1" = 0 ]; then
2490         %service %{name}-fpm stop
2491         /sbin/chkconfig --del %{name}-fpm
2492 fi
2493
2494 %postun fpm
2495 if [ "$1" = "0" ]; then
2496         %userremove http
2497 fi
2498
2499 %post   common -p /sbin/ldconfig
2500 %postun common -p /sbin/ldconfig
2501
2502 %posttrans common
2503 # minimizing apache restarts logics. we restart webserver:
2504 #
2505 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2506 # 2. first install of extension (post: $1 = 1)
2507 # 2. uninstall of extension (postun: $1 == 0)
2508 #
2509 # the strict internal deps between extensions (and apache modules) and
2510 # common package are very important for all this to work.
2511
2512 # restart webserver at the end of transaction
2513 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
2514 [ ! -f /etc/httpd/conf.d/??_mod_php.conf ] || %service -q httpd restart
2515
2516 %triggerpostun common -- %{name}-common < 4:5.2.17-20130717.9, php-common < 4:5.2.17-20130717.9
2517 # switch to browscap package if the ini file has original value
2518 %{__sed} -i -e 's#%{_sysconfdir}/browscap.ini#/usr/share/browscap/php_browscap.ini#' %{_sysconfdir}/php.ini
2519 # disable browscap, if optional package not present
2520 if [ ! -e /usr/share/browscap/php_browscap.ini ]; then
2521         %{__sed} -i -e 's#^browscap = /usr/share/browscap/php_browscap.ini#;&#' %{_sysconfdir}/php.ini
2522 fi
2523
2524 %triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 4:5.2.17-14
2525 sed -i -e 's#modules/libphp5.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php.conf
2526
2527 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 4:5.2.17-14
2528 sed -i -e 's#modules/libphp[57].so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php.conf
2529
2530 # common macros called at extension post/postun scriptlet
2531 %define extension_scripts() \
2532 %post %1 \
2533 if [ "$1" = "1" ]; then \
2534         %php_webserver_restart \
2535 fi \
2536 \
2537 %postun %1 \
2538 if [ "$1" = "0" ]; then \
2539         %php_webserver_restart \
2540 fi
2541 %{nil}
2542
2543 # extension scripts defines
2544 %extension_scripts bcmath
2545 %extension_scripts bz2
2546 %extension_scripts calendar
2547 %extension_scripts ctype
2548 %extension_scripts curl
2549 %extension_scripts dba
2550 %extension_scripts dbase
2551 %extension_scripts dom
2552 %extension_scripts exif
2553 %extension_scripts fdf
2554 %extension_scripts filter
2555 %extension_scripts ftp
2556 %extension_scripts gd
2557 %extension_scripts gettext
2558 %extension_scripts gmp
2559 %extension_scripts hash
2560 %extension_scripts iconv
2561 %extension_scripts imap
2562 %extension_scripts interbase
2563 %extension_scripts json
2564 %extension_scripts ldap
2565 %extension_scripts mbstring
2566 %extension_scripts mcrypt
2567 %extension_scripts mhash
2568 %extension_scripts mime_magic
2569 %extension_scripts ming
2570 %extension_scripts mssql
2571 %extension_scripts mysql
2572 %extension_scripts mysqli
2573 %extension_scripts oci8
2574 %extension_scripts odbc
2575 %extension_scripts openssl
2576 %extension_scripts pcntl
2577 %extension_scripts pcre
2578 %extension_scripts pdo
2579 %extension_scripts pdo-dblib
2580 %extension_scripts pdo-firebird
2581 %extension_scripts pdo-oci
2582 %extension_scripts pdo-mysql
2583 %extension_scripts pdo-odbc
2584 %extension_scripts pdo-pgsql
2585 %extension_scripts pdo-sqlite
2586 %extension_scripts pgsql
2587 %extension_scripts posix
2588 %extension_scripts pspell
2589 %extension_scripts recode
2590 %extension_scripts session
2591 %extension_scripts simplexml
2592 %extension_scripts shmop
2593 %extension_scripts snmp
2594 %extension_scripts soap
2595 %extension_scripts sockets
2596 %extension_scripts spl
2597 %extension_scripts sqlite
2598 %extension_scripts sybase
2599 %extension_scripts sybase-ct
2600 %extension_scripts sysvmsg
2601 %extension_scripts sysvsem
2602 %extension_scripts sysvshm
2603 %extension_scripts tidy
2604 %extension_scripts tokenizer
2605 %extension_scripts wddx
2606 %extension_scripts xml
2607 %extension_scripts xmlreader
2608 %extension_scripts xmlrpc
2609 %extension_scripts xmlwriter
2610 %extension_scripts xsl
2611 %extension_scripts zip
2612 %extension_scripts zlib
2613
2614 %if %{with apache1}
2615 %files -n apache1-mod_%{name}
2616 %defattr(644,root,root,755)
2617 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2618 %dir %{_sysconfdir}/apache.d
2619 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2620 %attr(755,root,root) %{_libdir}/apache1/mod_php.so
2621 %attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so
2622 %endif
2623
2624 %if %{with apache2}
2625 %files -n apache-mod_%{name}
2626 %defattr(644,root,root,755)
2627 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php.conf
2628 %dir %{_sysconfdir}/apache2handler.d
2629 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2630 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2631 %attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so
2632 %endif
2633
2634 %if %{with fcgi}
2635 %files fcgi
2636 %defattr(644,root,root,755)
2637 %doc sapi/cgi/README.FastCGI
2638 %dir %{_sysconfdir}/cgi-fcgi.d
2639 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2640 %attr(755,root,root) %{_bindir}/%{name}.fcgi
2641 %endif
2642
2643 %files cgi
2644 %defattr(644,root,root,755)
2645 %dir %{_sysconfdir}/cgi.d
2646 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2647 %attr(755,root,root) %{_bindir}/%{name}.cgi
2648
2649 %files cli
2650 %defattr(644,root,root,755)
2651 %dir %{_sysconfdir}/cli.d
2652 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2653 %attr(755,root,root) %{_bindir}/%{phpfn}
2654 %{_mandir}/man1/%{phpfn}.1*
2655
2656 %files program
2657 %defattr(644,root,root,755)
2658 %attr(755,root,root) %{_bindir}/php
2659 %{_mandir}/man1/php.1*
2660
2661 %if %{with fpm}
2662 %files fpm
2663 %defattr(644,root,root,755)
2664 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpm.conf
2665 %attr(755,root,root) %{_sbindir}/%{name}-fpm
2666 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-fpm
2667 %attr(754,root,root) /etc/rc.d/init.d/%{name}-fpm
2668 %endif
2669
2670 %files common
2671 %defattr(644,root,root,755)
2672 %doc php.ini-*
2673 %doc CREDITS Zend/ZEND_CHANGES
2674 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2675 %doc README.PHP4-TO-PHP5-THIN-CHANGES README.UPDATE_5_2
2676
2677 %dir %{_sysconfdir}
2678 %dir %{_sysconfdir}/conf.d
2679 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2680 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2681 %dir %{php_extensiondir}
2682
2683 %files devel
2684 %defattr(644,root,root,755)
2685 %doc README.UNIX-BUILD-SYSTEM
2686 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2687 %doc CODING_STANDARDS README.EXTENSIONS README.PARAMETER_PARSING_API README.STREAMS
2688 %doc README.SUBMITTING_PATCH README.TESTING README.TESTING2
2689 %attr(755,root,root) %{_bindir}/phpize
2690 %attr(755,root,root) %{_bindir}/php-config
2691 %attr(755,root,root) %{_libdir}/libphp_common.so
2692 %{_libdir}/libphp_common.la
2693 %{_includedir}/php
2694 %{_libdir}/%{name}/build
2695 %{_mandir}/man1/php-config.1*
2696 %{_mandir}/man1/phpize.1*
2697
2698 %files bcmath
2699 %defattr(644,root,root,755)
2700 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2701 %attr(755,root,root) %{php_extensiondir}/bcmath.so
2702
2703 %files bz2
2704 %defattr(644,root,root,755)
2705 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2706 %attr(755,root,root) %{php_extensiondir}/bz2.so
2707
2708 %files calendar
2709 %defattr(644,root,root,755)
2710 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2711 %attr(755,root,root) %{php_extensiondir}/calendar.so
2712
2713 %files ctype
2714 %defattr(644,root,root,755)
2715 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2716 %attr(755,root,root) %{php_extensiondir}/ctype.so
2717
2718 %if %{with curl}
2719 %files curl
2720 %defattr(644,root,root,755)
2721 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2722 %attr(755,root,root) %{php_extensiondir}/curl.so
2723 %endif
2724
2725 %files dba
2726 %defattr(644,root,root,755)
2727 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2728 %attr(755,root,root) %{php_extensiondir}/dba.so
2729
2730 %files dbase
2731 %defattr(644,root,root,755)
2732 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2733 %attr(755,root,root) %{php_extensiondir}/dbase.so
2734
2735 %files dom
2736 %defattr(644,root,root,755)
2737 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2738 %attr(755,root,root) %{php_extensiondir}/dom.so
2739
2740 %if %{with fdf}
2741 %files fdf
2742 %defattr(644,root,root,755)
2743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2744 %attr(755,root,root) %{php_extensiondir}/fdf.so
2745 %endif
2746
2747 %if %{with filter}
2748 %files filter
2749 %defattr(644,root,root,755)
2750 %doc README.input_filter
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filter.ini
2752 %attr(755,root,root) %{php_extensiondir}/filter.so
2753 %endif
2754
2755 %files exif
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2758 %attr(755,root,root) %{php_extensiondir}/exif.so
2759
2760 %files ftp
2761 %defattr(644,root,root,755)
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2763 %attr(755,root,root) %{php_extensiondir}/ftp.so
2764
2765 %files gd
2766 %defattr(644,root,root,755)
2767 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2768 %attr(755,root,root) %{php_extensiondir}/gd.so
2769
2770 %files gettext
2771 %defattr(644,root,root,755)
2772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2773 %attr(755,root,root) %{php_extensiondir}/gettext.so
2774
2775 %files gmp
2776 %defattr(644,root,root,755)
2777 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2778 %attr(755,root,root) %{php_extensiondir}/gmp.so
2779
2780 %files hash
2781 %defattr(644,root,root,755)
2782 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hash.ini
2783 %attr(755,root,root) %{php_extensiondir}/hash.so
2784
2785 %files iconv
2786 %defattr(644,root,root,755)
2787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2788 %attr(755,root,root) %{php_extensiondir}/iconv.so
2789
2790 %if %{with imap}
2791 %files imap
2792 %defattr(644,root,root,755)
2793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2794 %attr(755,root,root) %{php_extensiondir}/imap.so
2795 %endif
2796
2797 %if %{with interbase}
2798 %files interbase
2799 %defattr(644,root,root,755)
2800 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2801 %attr(755,root,root) %{php_extensiondir}/interbase.so
2802 %endif
2803
2804 %files json
2805 %defattr(644,root,root,755)
2806 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
2807 %attr(755,root,root) %{php_extensiondir}/json.so
2808
2809 %if %{with ldap}
2810 %files ldap
2811 %defattr(644,root,root,755)
2812 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2813 %attr(755,root,root) %{php_extensiondir}/ldap.so
2814 %endif
2815
2816 %if %{without zend_multibyte}
2817 %files mbstring
2818 %defattr(644,root,root,755)
2819 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2820 %attr(755,root,root) %{php_extensiondir}/mbstring.so
2821 %endif
2822
2823 %files mcrypt
2824 %defattr(644,root,root,755)
2825 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2826 %attr(755,root,root) %{php_extensiondir}/mcrypt.so
2827
2828 %if %{with mhash}
2829 %files mhash
2830 %defattr(644,root,root,755)
2831 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2832 %attr(755,root,root) %{php_extensiondir}/mhash.so
2833 %endif
2834
2835 %if %{with mime_magic}
2836 %files mime_magic
2837 %defattr(644,root,root,755)
2838 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2839 %attr(755,root,root) %{php_extensiondir}/mime_magic.so
2840 %endif
2841
2842 %if %{with ming}
2843 %files ming
2844 %defattr(644,root,root,755)
2845 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2846 %attr(755,root,root) %{php_extensiondir}/ming.so
2847 %endif
2848
2849 %if %{with mssql}
2850 %files mssql
2851 %defattr(644,root,root,755)
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2853 %attr(755,root,root) %{php_extensiondir}/mssql.so
2854 %endif
2855
2856 %files mysql
2857 %defattr(644,root,root,755)
2858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2859 %attr(755,root,root) %{php_extensiondir}/mysql.so
2860
2861 %if %{with mysqli}
2862 %files mysqli
2863 %defattr(644,root,root,755)
2864 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2865 %attr(755,root,root) %{php_extensiondir}/mysqli.so
2866 %endif
2867
2868 %files ncurses
2869 %defattr(644,root,root,755)
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2871 %attr(755,root,root) %{php_extensiondir}/ncurses.so
2872
2873 %if %{with oci}
2874 %files oci8
2875 %defattr(644,root,root,755)
2876 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2877 %attr(755,root,root) %{php_extensiondir}/oci8.so
2878 %endif
2879
2880 %if %{with odbc}
2881 %files odbc
2882 %defattr(644,root,root,755)
2883 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2884 %attr(755,root,root) %{php_extensiondir}/odbc.so
2885 %endif
2886
2887 %if %{with openssl}
2888 %files openssl
2889 %defattr(644,root,root,755)
2890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2891 %attr(755,root,root) %{php_extensiondir}/openssl.so
2892 %endif
2893
2894 %files pcntl
2895 %defattr(644,root,root,755)
2896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcntl.ini
2897 %attr(755,root,root) %{php_extensiondir}/pcntl.so
2898
2899 %if %{with pcre}
2900 %files pcre
2901 %defattr(644,root,root,755)
2902 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/PCRE.ini
2903 %attr(755,root,root) %{php_extensiondir}/pcre.so
2904 %endif
2905
2906 %files pdo
2907 %defattr(644,root,root,755)
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2909 %attr(755,root,root) %{php_extensiondir}/pdo.so
2910
2911 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2912 %files pdo-dblib
2913 %defattr(644,root,root,755)
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2915 %attr(755,root,root) %{php_extensiondir}/pdo_dblib.so
2916 %endif
2917
2918 %if %{with interbase} && !%{with interbase_inst}
2919 %files pdo-firebird
2920 %defattr(644,root,root,755)
2921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2922 %attr(755,root,root) %{php_extensiondir}/pdo_firebird.so
2923 %endif
2924
2925 %files pdo-mysql
2926 %defattr(644,root,root,755)
2927 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2928 %attr(755,root,root) %{php_extensiondir}/pdo_mysql.so
2929
2930 %if %{with oci}
2931 %files pdo-oci
2932 %defattr(644,root,root,755)
2933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2934 %attr(755,root,root) %{php_extensiondir}/pdo_oci.so
2935 %endif
2936
2937 %if %{with odbc}
2938 %files pdo-odbc
2939 %defattr(644,root,root,755)
2940 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2941 %attr(755,root,root) %{php_extensiondir}/pdo_odbc.so
2942 %endif
2943
2944 %if %{with pgsql}
2945 %files pdo-pgsql
2946 %defattr(644,root,root,755)
2947 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2948 %attr(755,root,root) %{php_extensiondir}/pdo_pgsql.so
2949 %endif
2950
2951 %if %{with sqlite}
2952 %files pdo-sqlite
2953 %defattr(644,root,root,755)
2954 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2955 %attr(755,root,root) %{php_extensiondir}/pdo_sqlite.so
2956 %endif
2957
2958 %if %{with pgsql}
2959 %files pgsql
2960 %defattr(644,root,root,755)
2961 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2962 %attr(755,root,root) %{php_extensiondir}/pgsql.so
2963 %endif
2964
2965 %files posix
2966 %defattr(644,root,root,755)
2967 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2968 %attr(755,root,root) %{php_extensiondir}/posix.so
2969
2970 %if %{with pspell}
2971 %files pspell
2972 %defattr(644,root,root,755)
2973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2974 %attr(755,root,root) %{php_extensiondir}/pspell.so
2975 %endif
2976
2977 %files readline
2978 %defattr(644,root,root,755)
2979 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2980 %attr(755,root,root) %{php_extensiondir}/readline.so
2981
2982 %if %{with recode}
2983 %files recode
2984 %defattr(644,root,root,755)
2985 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2986 %attr(755,root,root) %{php_extensiondir}/recode.so
2987 %endif
2988
2989 %files simplexml
2990 %defattr(644,root,root,755)
2991 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2992 %attr(755,root,root) %{php_extensiondir}/simplexml.so
2993
2994 %files session
2995 %defattr(644,root,root,755)
2996 %doc ext/session/mod_files.sh
2997 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/Session.ini
2998 %attr(755,root,root) %{php_extensiondir}/session.so
2999
3000 %files shmop
3001 %defattr(644,root,root,755)
3002 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3003 %attr(755,root,root) %{php_extensiondir}/shmop.so
3004
3005 %if %{with snmp}
3006 %files snmp
3007 %defattr(644,root,root,755)
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3009 %attr(755,root,root) %{php_extensiondir}/snmp.so
3010 %endif
3011
3012 %files soap
3013 %defattr(644,root,root,755)
3014 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
3015 %attr(755,root,root) %{php_extensiondir}/soap.so
3016
3017 %files sockets
3018 %defattr(644,root,root,755)
3019 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3020 %attr(755,root,root) %{php_extensiondir}/sockets.so
3021
3022 %files spl
3023 %defattr(644,root,root,755)
3024 %doc ext/spl/{CREDITS,README,TODO}
3025 %doc ext/spl/examples
3026 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/SPL.ini
3027 %attr(755,root,root) %{php_extensiondir}/spl.so
3028
3029 %if %{with sqlite}
3030 %files sqlite
3031 %defattr(644,root,root,755)
3032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
3033 %attr(755,root,root) %{php_extensiondir}/sqlite.so
3034 %endif
3035
3036 %if %{with sybase}
3037 %files sybase
3038 %defattr(644,root,root,755)
3039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
3040 %attr(755,root,root) %{php_extensiondir}/sybase.so
3041 %endif
3042
3043 %if %{with sybase_ct}
3044 %files sybase-ct
3045 %defattr(644,root,root,755)
3046 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3047 %attr(755,root,root) %{php_extensiondir}/sybase_ct.so
3048 %endif
3049
3050 %files sysvmsg
3051 %defattr(644,root,root,755)
3052 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3053 %attr(755,root,root) %{php_extensiondir}/sysvmsg.so
3054
3055 %files sysvsem
3056 %defattr(644,root,root,755)
3057 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3058 %attr(755,root,root) %{php_extensiondir}/sysvsem.so
3059
3060 %files sysvshm
3061 %defattr(644,root,root,755)
3062 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3063 %attr(755,root,root) %{php_extensiondir}/sysvshm.so
3064
3065 %files tests
3066 %defattr(644,root,root,755)
3067 %dir %{php_data_dir}/tests
3068 %dir %{php_data_dir}/tests/php
3069 %{php_data_dir}/tests/php/basic
3070 %{php_data_dir}/tests/php/classes
3071 %{php_data_dir}/tests/php/func
3072 %{php_data_dir}/tests/php/lang
3073 %{php_data_dir}/tests/php/output
3074 %{php_data_dir}/tests/php/run-test
3075 %{php_data_dir}/tests/php/security
3076 %{php_data_dir}/tests/php/strings
3077 %{php_data_dir}/tests/php/quicktester.inc
3078 %attr(755,root,root) %{php_data_dir}/tests/php/run-tests.php
3079
3080 # random junk, didn't check, maybe can be just removed
3081 %{php_data_dir}/tests/php/bin-info.inc
3082 %{php_data_dir}/tests/php/foo*
3083 %{php_data_dir}/tests/php/odbc*.php
3084 %{php_data_dir}/tests/php/recurse
3085 %{php_data_dir}/tests/php/run.*
3086 %{php_data_dir}/tests/php/scan_cases
3087 %{php_data_dir}/tests/php/test*
3088
3089 %if %{with tidy}
3090 %files tidy
3091 %defattr(644,root,root,755)
3092 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
3093 %attr(755,root,root) %{php_extensiondir}/tidy.so
3094 %endif
3095
3096 %files tokenizer
3097 %defattr(644,root,root,755)
3098 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3099 %attr(755,root,root) %{php_extensiondir}/tokenizer.so
3100
3101 %if %{with wddx}
3102 %files wddx
3103 %defattr(644,root,root,755)
3104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3105 %attr(755,root,root) %{php_extensiondir}/wddx.so
3106 %endif
3107
3108 %files xml
3109 %defattr(644,root,root,755)
3110 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3111 %attr(755,root,root) %{php_extensiondir}/xml.so
3112
3113 %files xmlreader
3114 %defattr(644,root,root,755)
3115 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
3116 %attr(755,root,root) %{php_extensiondir}/xmlreader.so
3117
3118 %if %{with xmlrpc}
3119 %files xmlrpc
3120 %defattr(644,root,root,755)
3121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3122 %attr(755,root,root) %{php_extensiondir}/xmlrpc.so
3123 %endif
3124
3125 %files xmlwriter
3126 %defattr(644,root,root,755)
3127 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlwriter.ini
3128 %attr(755,root,root) %{php_extensiondir}/xmlwriter.so
3129
3130 %files xsl
3131 %defattr(644,root,root,755)
3132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
3133 %attr(755,root,root) %{php_extensiondir}/xsl.so
3134
3135 %files zip
3136 %defattr(644,root,root,755)
3137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3138 %attr(755,root,root) %{php_extensiondir}/zip.so
3139
3140 %files zlib
3141 %defattr(644,root,root,755)
3142 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3143 %attr(755,root,root) %{php_extensiondir}/zlib.so
This page took 0.421161 seconds and 3 git commands to generate.