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