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