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