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