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