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