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