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