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