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