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