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