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