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