]> git.pld-linux.org Git - packages/php4.git/blob - php4.spec
remove provides php-common
[packages/php4.git] / php4.spec
1 #
2 # Do NOT build openssl as shared module or
3 # fsockopen('tls://host',...) will not work!
4 #
5 # TODO:
6 # - make additional headers added by mail patch configurable
7 # - too many unneccessary libs:
8 #  - libkrb5.so.3 is needed by (installed) php4-common-4.4.8-15.i686
9 #  - php4-common-4.4.8-15.i686 marks net-snmp-libs-5.4.1.2-1.i686 (cap libnetsnmp.so.15)
10 #    php5-common doesn't have such deps
11 #  - php4-cli pulls: libltdl
12 # - above is caused by openssl linked in statically as openssl links with kerberos
13 #
14 # Conditional build:
15 %bcond_with     db3             # use db3 packages instead of db (4.x) for Berkeley DB support
16 %bcond_with     fdf             # with FDF (PDF forms) module           (BR: proprietary lib)
17 %bcond_with     hardening       # build with hardening patch applied (http://www.hardened-php.net/)
18 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
19 %bcond_with     java            # with Java extension module            (BR: jdk)
20 %bcond_with     oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
21 %bcond_with     oracle          # with oracle extension module          (BR: proprietary libs)
22 %bcond_without  cpdf            # without cpdf extension module
23 %bcond_without  curl            # without CURL extension module
24 %bcond_without  domxslt         # without DOM XSLT/EXSLT support in DOM XML extension module
25 %bcond_with     fribidi         # without FriBiDi extension module (use pecl-fribidi)
26 %bcond_without  imap            # without IMAP extension module
27 %bcond_without  interbase       # without InterBase extension module
28 %bcond_without  ldap            # without LDAP extension module
29 %bcond_without  mhash           # without mhash extension module
30 %bcond_with     ming            # with ming extension module
31 %bcond_without  mm              # without mm support for session storage
32 %bcond_without  mnogosearch     # without mnogosearch extension module
33 %bcond_without  msession        # without msession extension module
34 %bcond_without  mssql           # without MS SQL extension module
35 %bcond_without  odbc            # without ODBC extension module
36 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
37 %bcond_without  pcre            # without PCRE extension module
38 %bcond_without  pdf             # without PDF extension module
39 %bcond_without  pgsql           # without PostgreSQL extension module
40 %bcond_without  pspell          # without pspell extension module
41 %bcond_without  qtdom           # without Qt DOM extension module
42 %bcond_without  recode          # without recode extension module
43 %bcond_without  snmp            # without SNMP extension module
44 %bcond_without  sybase          # without Sybase and Sybase-CT extension modules
45 %bcond_without  wddx            # without WDDX extension module
46 %bcond_without  xml             # without XML and DOMXML extension modules
47 %bcond_without  xmlrpc          # without XML-RPC extension module
48 %bcond_with     system_xmlrpc_epi       # use system xmlrpc-epi library (broken on 64bit arches, see http://bugs.php.net/41611)
49 %bcond_without  xslt            # without XSLT extension module
50 %bcond_with     yaz             # without YAZ extension module
51 %bcond_with     yp
52 %bcond_without  apache1         # disable building apache 1.3.x module
53 %bcond_without  apache2         # disable building apache 2.x module
54 %bcond_without  fcgi            # disable building FCGI SAPI
55 %bcond_with     zts             # disable experimental-zts
56 %bcond_with     versioning      # build with experimental versioning (to load php4/php5 into same apache)
57
58 %define apxs1           /usr/sbin/apxs1
59 %define apxs2           /usr/sbin/apxs
60
61 # mm is not thread safe
62 # ext/session/mod_mm.c:37:3: #error mm is not thread-safe
63 %if %{with zts}
64 %undefine       with_mm
65 %endif
66
67 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha
68 %undefine       with_interbase
69 %endif
70
71 # x86-only lib
72 %ifnarch %{ix86}
73 %undefine       with_msession
74 %endif
75
76 %define         rel 52
77 Summary:        PHP: Hypertext Preprocessor
78 Summary(fr.UTF-8):      Le langage de script embarque-HTML PHP
79 Summary(pl.UTF-8):      Język skryptowy PHP
80 Summary(pt_BR.UTF-8):   A linguagem de script PHP
81 Summary(ru.UTF-8):      PHP Версии 4 - язык препроцессирования HTML-файлов, выполняемый на сервере
82 Summary(uk.UTF-8):      PHP Версії 4 - мова препроцесування HTML-файлів, виконувана на сервері
83 Name:           php4
84 Version:        4.4.9
85 Release:        %{rel}%{?with_hardening:hardened}
86 Epoch:          3
87 License:        PHP
88 Group:          Libraries
89 Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
90 # Source0-md5:  2e3b2a0e27f10cb84fd00e5ecd7a1880
91 #Source0:       http://cvs.php.net/viewvc.cgi/phpweb/distributions/php-%{version}.tar.bz2?revision=1.1
92 Source3:        %{name}-mod_php.conf
93 Source4:        %{name}-cgi-fcgi.ini
94 Source5:        %{name}-cgi.ini
95 Source6:        %{name}-apache.ini
96 Source7:        %{name}-cli.ini
97 Source8:        http://www.hardened-php.net/hardening-patch-4.4.0-0.4.3.patch.gz
98 # Source8-md5:  6eac3c5c5a7473c68a043c7657298f48
99 Patch0:         %{name}-shared.patch
100 Patch1:         %{name}-pldlogo.patch
101 Patch2:         %{name}-xml-expat-fix.patch
102 Patch3:         %{name}-mail.patch
103 Patch4:         %{name}-link-libs.patch
104 Patch5:         %{name}-libpq_fs_h_path.patch
105 Patch6:         %{name}-wddx-fix.patch
106 Patch7:         %{name}-lib.patch
107 Patch8:         %{name}-hyperwave-fix.patch
108 Patch9:         %{name}-xslt-gcc33.patch
109 Patch10:        %{name}-java-norpath.patch
110 Patch11:        %{name}-mcal-shared-lib.patch
111 Patch12:        %{name}-msession-shared-lib.patch
112 Patch13:        %{name}-build_modules.patch
113 Patch14:        %{name}-sapi-ini-file.patch
114 Patch15:        %{name}-no-metaccld.patch
115 Patch16:        %{name}-session-unregister.patch
116 Patch17:        %{name}-ini.patch
117 Patch18:        %{name}-acam.patch
118 Patch19:        %{name}-xmlrpc-fix.patch
119 Patch20:        %{name}-libtool.patch
120 Patch21:        %{name}-allow-db31.patch
121 Patch22:        %{name}-threads-acfix.patch
122
123 Patch24:        %{name}-qt.patch
124 Patch25:        %{name}-no_pear_install.patch
125 Patch26:        %{name}-zlib.patch
126 Patch27:        %{name}-db-shared.patch
127 Patch28:        %{name}-sybase-fix.patch
128 Patch29:        %{name}-openssl.patch
129 Patch30:        %{name}-mnogosearch-fix.patch
130 Patch31:        %{name}-stupidapache_version.patch
131 Patch33:        %{name}-uint32_t.patch
132 Patch34:        %{name}-install_gd_headers.patch
133 Patch35:        %{name}-both-apxs.patch
134 Patch36:        php-dextension.patch
135 Patch37:        %{name}-zlib-for-getimagesize.patch
136 Patch38:        %{name}-ini-search-path.patch
137 Patch39:        %{name}-versioning.patch
138 Patch40:        %{name}-linkflags-clean.patch
139 Patch41:        %{name}-krb5.patch
140 Patch42:        %{name}-apr-apu.patch
141 Patch43:        %{name}-gd.patch
142 Patch45:        %{name}-config-dir.patch
143 Patch46:        %{name}-phpinfo_no_configure.patch
144 Patch47:        %{name}-ming.patch
145 Patch48:        %{name}-fcgi-graceful.patch
146 Patch49:        %{name}-ac.patch
147 Patch50:        %{name}-mime_magic.patch
148 Patch51:        %{name}-tds.patch
149 Patch52:        %{name}-lib64.patch
150 Patch53:        %{name}-silent-session-cleanup.patch
151 Patch54:        %{name}-m4-divert.patch
152 Patch55:        %{name}-libpng.patch
153 Patch56:        %{name}-gmp.patch
154 Patch57:        %{name}-pcre.patch
155 Patch58:        %{name}-apache24.patch
156 Patch59:        php-bug-68486.patch
157 URL:            http://www.php.net/
158 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
159 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
160 BuildRequires:  autoconf >= 2.53
161 BuildRequires:  automake >= 1.4d
162 BuildRequires:  bison
163 BuildRequires:  bzip2-devel
164 BuildRequires:  cracklib-devel >= 2.7-15
165 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
166 BuildRequires:  cyrus-sasl-devel
167 %{!?with_db3:BuildRequires:     db-devel >= 4.0}
168 %{?with_db3:BuildRequires:      db3-devel >= 3.1}
169 BuildRequires:  elfutils-devel
170 %if %{with wddx} || %{with xml} || %{with xmlrpc}
171 BuildRequires:  expat-devel
172 %endif
173 %{?with_fcgi:BuildRequires:     fcgi-devel}
174 %{?with_fdf:BuildRequires:      fdftk-devel}
175 BuildRequires:  flex
176 %if %{with mssql} || %{with sybase}
177 BuildRequires:  freetds-devel >= 0.82
178 %endif
179 BuildRequires:  freetype-devel >= 2.0
180 %{?with_fribidi:BuildRequires:  fribidi-devel >= 0.10.4}
181 BuildRequires:  gdbm-devel
182 BuildRequires:  gmp-devel
183 %{?with_imap:BuildRequires:     heimdal-devel >= 0.7}
184 %{?with_imap:BuildRequires:     imap-devel >= 1:2001-0.BETA.200107022325.2}
185 %{?with_java:BuildRequires:     jdk >= 1.1}
186 %{?with_cpdf:BuildRequires:     libcpdf-devel >= 2.02r1-2}
187 BuildRequires:  libjpeg-devel
188 BuildRequires:  libltdl-devel >= 1.4
189 BuildRequires:  libmcal-devel
190 BuildRequires:  libmcrypt-devel >= 2.4.4
191 BuildRequires:  libpng-devel >= 1.0.8
192 BuildRequires:  libtiff-devel
193 %if "%{pld_release}" != "ac"
194 BuildRequires:  libtool >= 2:2.2
195 %else
196 BuildRequires:  libtool >= 1.4.3
197 %endif
198 %{?with_xml:BuildRequires:      libxml2-devel >= 2.2.7}
199 %{?with_domxslt:BuildRequires:  libxslt-devel >= 1.0.3}
200 %{?with_mhash:BuildRequires:    mhash-devel}
201 %{?with_ming:BuildRequires:     ming-devel >= 0.3.0}
202 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
203 %{?with_mnogosearch:BuildRequires:      mnogosearch-devel >= 3.2.29}
204 BuildRequires:  mysql-devel >= 3.23.32
205 BuildRequires:  ncurses-ext-devel
206 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
207 %if %{with openssl} || %{with ldap}
208 BuildRequires:  openssl-devel >= 0.9.7d
209 %endif
210 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
211 BuildRequires:  pam-devel
212 BuildRequires:  pcre-devel
213 %{?with_pdf:BuildRequires:      pdflib-devel >= 4.0.0}
214 %{?with_msession:BuildRequires: phoenix-devel}
215 BuildRequires:  pkgconfig
216 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
217 %{?with_pgsql:BuildRequires:    postgresql-devel}
218 %{?with_qtdom:BuildRequires:    qt-devel >= 2.2.0}
219 BuildRequires:  readline-devel
220 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
221 BuildRequires:  rpm >= 4.4.9-56
222 BuildRequires:  rpm-build >= 4.4.0
223 BuildRequires:  rpmbuild(macros) >= 1.236
224 %{?with_xslt:BuildRequires:     sablotron-devel >= 0.96}
225 BuildRequires:  sed >= 4.0
226 BuildRequires:  t1lib-devel
227 %{?with_odbc:BuildRequires:     unixODBC-devel}
228 %{?with_system_xmlrpc_epi:BuildRequires:        xmlrpc-epi-devel}
229 %{?with_yaz:BuildRequires:      yaz-devel >= 1.9}
230 BuildRequires:  zip
231 BuildRequires:  zlib-devel >= 1.0.9
232 BuildRequires:  zziplib-devel
233 %if %{with apache1}
234 BuildRequires:  apache1-devel >= 1.3.33-2
235 %endif
236 %if %{with apache2}
237 BuildRequires:  apache-devel >= 2.0.52-2
238 BuildRequires:  apr-devel >= 1:1.0.0
239 BuildRequires:  apr-util-devel >= 1:1.0.0
240 %endif
241 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
242
243 %define         _sysconfdir     /etc/php4
244 %define         extensionsdir   %{_libdir}/php4
245
246 # must be in sync with source. extra check ensuring that it is so is done in %%build
247 %define         php_api_version         20020918
248 %define         zend_module_api         20020429
249 %define         zend_extension_api      20050606
250 %define         zend_zts                        %{!?with_zts:0}%{?with_zts:1}
251 %define         php_debug                       %{!?debug:0}%{?debug:1}
252
253 %description
254 PHP is an HTML-embedded scripting language. PHP attempts to make it
255 easy for developers to write dynamically generated web pages. PHP also
256 offers built-in database integration for several commercial and
257 non-commercial database management systems, so writing a
258 database-enabled web page with PHP is fairly simple. The most common
259 use of PHP coding is probably as a replacement for CGI scripts. The
260 mod_php module enables the Apache web server to understand and process
261 the embedded PHP language in web pages. This package contains php
262 version %{version}.
263
264 %description -l fr.UTF-8
265 PHP est un langage de script embarque dans le HTM. PHP essaye de
266 rendre simple aux developpeurs d'ecrire des pages web generees
267 dynamiquement. PHP incorpore egalement une integration avec plusieurs
268 systemes de gestion de bases de donnees commerciaux et
269 non-connerciaux, qui rent facile la creation de pages web liees avec
270 des bases de donnees. L'utilisation la plus commune de PHP est
271 probablement en remplacement de scripts CGI. Le module mod_php permet
272 au serveur web apache de comprendre et de traiter le langage PHP
273 integre dans des pages web. Ce package contient php version
274 %{version}.
275
276 %description -l pl.UTF-8
277 PHP jest językiem skryptowym, którego polecenia umieszcza się w
278 plikach HTML. Pakiet ten zawiera moduł przeznaczony dla serwera HTTP
279 (jak np. Apache), który interpretuje te polecenia. Umożliwia to
280 tworzenie dynamicznie stron WWW. Spora część składni PHP zapożyczona
281 została z języków: C, Java i Perl.
282
283 %description -l pt_BR.UTF-8
284 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
285 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
286 com algumas características únicas, específicas ao PHP. O objetivo da
287 linguagem é permitir que desenvolvedores web escrevam páginas
288 dinamicamente geradas de forma rápida.
289
290 %description -l ru.UTF-8
291 PHP4 - это язык написания скриптов, встраиваемых в HTML-код. PHP
292 предлагает интерграцию с множеством СУБД, поэтому написание скриптов
293 для работы с базами данных относительно просто. Наиболее популярное
294 использование PHP - замена для CGI скриптов.
295
296 Этот пакет содержит самодостаточную (CGI) версию интерпретатора языка.
297 Вы должны также установить пакет %{name}-common. Если вам нужен
298 интерпретатор PHP в качестве модуля apache, установите пакет
299 apache-php.
300
301 %description -l uk.UTF-8
302 PHP4 - це мова написання скриптів, що вбудовуються в HTML-код. PHP
303 пропонує інтеграцію з багатьма СУБД, тому написання скриптів для
304 роботи з базами даних є доволі простим. Найбільш популярне
305 використання PHP - заміна для CGI скриптів.
306
307 Цей пакет містить самодостатню (CGI) версію інтерпретатора мови. Ви
308 маєте також встановити пакет %{name}-common. Якщо вам потрібен
309 інтерпретатор PHP в якості модуля apache, встановіть пакет apache-php.
310
311 %package -n apache1-mod_php4
312 Summary:        php4 DSO module for apache 1.3.x
313 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php4 dla apache 1.3.x
314 Group:          Development/Languages/PHP
315 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
316 Requires:       apache1(EAPI) >= 1.3.33-2
317 Requires:       apache1-mod_mime
318 Provides:       webserver(php) = %{version}
319 Obsoletes:      apache-mod_php < 1:4.1.1
320 Obsoletes:      phpfi
321 # Obsolete last version when apache module was in main package
322 Obsoletes:      php4 < 3:4.3.11-4.16
323
324 %description -n apache1-mod_php4
325 php4 as DSO module for apache 1.3.x.
326
327 %description -n apache1-mod_php4 -l pl.UTF-8
328 php4 jako moduł DSO (Dynamic Shared Object) dla apache 1.3.x.
329
330 %package -n apache-mod_php4
331 Summary:        php4 DSO module for apache 2.x
332 Summary(pl.UTF-8):      Moduł DSO (Dynamic Shared Object) php4 dla apache 2.x
333 Group:          Development/Languages/PHP
334 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
335 Requires:       apache(modules-api) = %{apache_modules_api}
336 Requires:       apache-mod_mime
337 Provides:       webserver(php) = %{version}
338 Obsoletes:      apache-mod_php < 1:4.1.1
339 Obsoletes:      phpfi
340 # Obsolete last version when apache module was in main package
341 Obsoletes:      php4 < 3:4.3.11-4.16
342
343 %description -n apache-mod_php4
344 php4 as DSO module for apache 2.x.
345
346 %description -n apache-mod_php4 -l pl.UTF-8
347 php4 jako moduł DSO (Dynamic Shared Object) dla apache 2.x.
348
349 %package fcgi
350 Summary:        php4 as FastCGI program
351 Summary(pl.UTF-8):      php4 jako program FastCGI
352 Group:          Development/Languages/PHP
353 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
354 Provides:       php-fcgi = %{epoch}:%{version}-%{release}
355 Provides:       webserver(php) = %{version}
356
357 %description fcgi
358 php4 as FastCGI program.
359
360 %description fcgi -l pl.UTF-8
361 php4 jako program FastCGI.
362
363 %package cgi
364 Summary:        php4 as CGI program
365 Summary(pl.UTF-8):      php4 jako program CGI
366 Group:          Development/Languages/PHP
367 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
368 Provides:       php-cgi = %{epoch}:%{version}-%{release}
369 Provides:       php(cgi)
370
371 %description cgi
372 php4 as CGI program.
373
374 %description cgi -l pl.UTF-8
375 php4 jako program CGI.
376
377 %package cli
378 Summary:        php4 as CLI interpreter
379 Summary(pl.UTF-8):      php4 jako interpreter działający z linii poleceń
380 Group:          Development/Languages/PHP
381 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
382
383 %description cli
384 php4 as CLI interpreter.
385
386 %description cli -l pl.UTF-8
387 php4 jako interpreter działający z linii poleceń.
388
389 %package program
390 Summary:        /usr/bin/php symlink
391 Summary(pl.UTF-8):      Dowiązanie symboliczne /usr/bin/php
392 Group:          Development/Languages/PHP
393 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
394 Obsoletes:      /usr/bin/php
395
396 %description program
397 Package providing /usr/bin/php symlink to PHP CLI.
398
399 %description program -l pl.UTF-8
400 Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI.
401
402 %package common
403 Summary:        Common files needed by all PHP SAPIs
404 Summary(pl.UTF-8):      Wspólne pliki dla modułu apache'a i programu CGI
405 Summary(ru.UTF-8):      Разделяемые библиотеки для php
406 Summary(uk.UTF-8):      Бібліотеки спільного використання для php
407 Group:          Libraries
408 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
409 Requires(triggerun):    sed >= 4.0
410 Requires:       glibc >= 6:2.3.5
411 Requires:       php-dirs
412 Provides:       php(modules_api) = %{php_api_version}
413 Provides:       php(openssl)
414 Provides:       php(session)
415 Provides:       php(standard)
416 Provides:       php(zend_extension_api) = %{zend_extension_api}
417 Provides:       php(zend_module_api) = %{zend_module_api}
418 Provides:       php4(debug) = %{php_debug}
419 Provides:       php4(thread-safety) = %{zend_zts}
420 Obsoletes:      php-session < 3:4.2.1-2
421 Obsoletes:      php4-openssl < 3:4.4.0-4
422 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
423 Conflicts:      rpm < 4.4.2-0.2
424
425 %description common
426 Common files needed by all PHP SAPIs.
427
428 %description common -l pl.UTF-8
429 Wspólne pliki dla modułu apacha i programu CGI.
430
431 %description common -l ru.UTF-8
432 Этот пакет содержит общие файлы для разных вариантов реализации PHP
433 (самодостаточной и в качестве модуля apache).
434
435 %description common -l uk.UTF-8
436 Цей пакет містить спільні файли для різних варіантів реалізації PHP
437 (самодостатньої та в якості модуля apache).
438
439 %package devel
440 Summary:        Files for PHP modules development
441 Summary(pl.UTF-8):      Pliki do kompilacji modułów PHP
442 Summary(pt_BR.UTF-8):   Arquivos de desenvolvimento para PHP
443 Summary(ru.UTF-8):      Пакет разработки для построения расширений PHP
444 Summary(uk.UTF-8):      Пакет розробки для побудови розширень PHP
445 Group:          Development/Languages/PHP
446 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
447 Requires:       autoconf
448 Requires:       automake
449 %if "%{pld_release}" != "ac"
450 Requires:       libtool >= 2:2.2
451 %else
452 Requires:       libtool
453 %endif
454 Obsoletes:      php-devel
455
456 %description devel
457 The php-devel package lets you compile dynamic extensions to PHP.
458 Included here is the source for the PHP extensions. Instead of
459 recompiling the whole php4 binary to add support for, say, oracle,
460 install this package and use the new self-contained extensions
461 support. For more information, read the file
462 SELF-CONTAINED-EXTENSIONS.
463
464 %description devel -l pl.UTF-8
465 Pliki potrzebne do kompilacji modułów PHP.
466
467 %description devel -l pt_BR.UTF-8
468 Este pacote contém arquivos usados no desenvolvimento de programas ou
469 módulos PHP.
470
471 %description devel -l uk.UTF-8
472 Пакет php-devel дає можливість компілювати динамічні розширення PHP.
473 До пакету включено вихідний код для розширень. Замість повторної
474 компіляції бінарного файлу php4 для додання, наприклад, підтримки
475 oracle, встановіть цей пакет для компіляції окремих розширень.
476 Детальніша інформація - в файлі SELF-CONTAINED-EXTENSIONS.
477
478 %description devel -l ru.UTF-8
479 Пакет php-devel дает возможность компилировать динамические расширения
480 PHP. Пакет включает исходный код этих расширений. Вместо повторной
481 компиляции бинарного файла php4 для добавления, например, поддержки
482 oracle, установите этот пакет для компилирования отдельных расширений.
483 Подробности - в файле SELF-CONTAINED-EXTENSIONS.
484
485 %package bcmath
486 Summary:        bcmath extension module for PHP
487 Summary(pl.UTF-8):      Moduł bcmath dla PHP
488 Group:          Libraries
489 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
490 Provides:       php(bcmath)
491
492 %description bcmath
493 This is a dynamic shared object (DSO) for PHP that will add bc style
494 precision math functions support.
495
496 %description bcmath -l pl.UTF-8
497 Moduł PHP umożliwiający korzystanie z dokładnych funkcji
498 matematycznych takich jak w programie bc.
499
500 %package bzip2
501 Summary:        Bzip2 extension module for PHP
502 Summary(pl.UTF-8):      Moduł bzip2 dla PHP
503 Group:          Libraries
504 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
505 Provides:       php(bzip2)
506
507 %description bzip2
508 This is a dynamic shared object (DSO) for PHP that will add bzip2
509 compression support to PHP.
510
511 %description bzip2 -l pl.UTF-8
512 Moduł PHP umożliwiający używanie kompresji bzip2.
513
514 %package calendar
515 Summary:        Calendar extension module for PHP
516 Summary(pl.UTF-8):      Moduł funkcji kalendarza dla PHP
517 Group:          Libraries
518 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
519 Provides:       php(calendar)
520
521 %description calendar
522 This is a dynamic shared object (DSO) for PHP that will add calendar
523 support.
524
525 %description calendar -l pl.UTF-8
526 Moduł PHP dodający wsparcie dla kalendarza.
527
528 %package cpdf
529 Summary:        cpdf extension module for PHP
530 Summary(pl.UTF-8):      Moduł cpdf dla PHP
531 Group:          Libraries
532 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
533 Provides:       php(cpdf)
534
535 %description cpdf
536 This is a dynamic shared object (DSO) for PHP that will add PDF
537 support through libcpdf library.
538
539 %description cpdf -l pl.UTF-8
540 Moduł PHP dodający obsługę plików PDF poprzez bibliotekę libcpdf.
541
542 %package crack
543 Summary:        crack extension module for PHP
544 Summary(pl.UTF-8):      Moduł crack dla PHP
545 Group:          Libraries
546 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
547 Provides:       php(crack)
548
549 %description crack
550 This is a dynamic shared object (DSO) for PHP that will add cracklib
551 support to PHP.
552
553 Warning: this is an experimental module.
554
555 %description crack -l pl.UTF-8
556 Moduł PHP umożliwiający korzystanie z biblioteki cracklib.
557
558 Uwaga: to jest moduł eksperymentalny.
559
560 %package ctype
561 Summary:        ctype extension module for PHP
562 Summary(pl.UTF-8):      Moduł ctype dla PHP
563 Group:          Libraries
564 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
565 Provides:       php(ctype)
566
567 %description ctype
568 This is a dynamic shared object (DSO) for PHP that will add ctype
569 support.
570
571 %description ctype -l pl.UTF-8
572 Moduł PHP umożliwiający korzystanie z funkcji ctype.
573
574 %package curl
575 Summary:        curl extension module for PHP
576 Summary(pl.UTF-8):      Moduł curl dla PHP
577 Group:          Libraries
578 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
579 Provides:       php(curl)
580
581 %description curl
582 This is a dynamic shared object (DSO) for PHP that will add curl
583 support.
584
585 %description curl -l pl.UTF-8
586 Moduł PHP umożliwiający korzystanie z biblioteki curl.
587
588 %package db
589 Summary:        Old xDBM extension module for PHP
590 Summary(pl.UTF-8):      Moduł xDBM dla PHP
591 Group:          Libraries
592 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
593 Provides:       php(db)
594
595 %description db
596 This is an old dynamic shared object (DSO) for PHP that will add DBM
597 databases support.
598
599 Warning: this module is deprecated and does not support database
600 locking correctly. Please use DBA extension which is a fully
601 operational superset.
602
603 %description db -l pl.UTF-8
604 Stary moduł PHP dodający obsługę baz danych DBM.
605
606 Uwaga: ten moduł jest przestarzały i nie obsługuje poprawnie
607 blokowania bazy danych. Zamiast niego lepiej używać rozszerzenia DBA,
608 które obsługuje nadzbiór funkcjonalności tego modułu.
609
610 %package dba
611 Summary:        DBA extension module for PHP
612 Summary(pl.UTF-8):      Moduł DBA dla PHP
613 Group:          Libraries
614 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
615 Provides:       php(dba)
616
617 %description dba
618 This is a dynamic shared object (DSO) for PHP that will add flat-file
619 databases (DBA) support.
620
621 %description dba -l pl.UTF-8
622 Moduł dla PHP dodający obsługę dla baz danych opartych na plikach
623 (DBA).
624
625 %package dbase
626 Summary:        DBase extension module for PHP
627 Summary(pl.UTF-8):      Moduł DBase dla PHP
628 Group:          Libraries
629 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
630 Provides:       php(dbase)
631
632 %description dbase
633 This is a dynamic shared object (DSO) for PHP that will add DBase
634 support.
635
636 %description dbase -l pl.UTF-8
637 Moduł PHP ze wsparciem dla DBase.
638
639 %package dbx
640 Summary:        DBX extension module for PHP
641 Summary(pl.UTF-8):      Moduł DBX dla PHP
642 Group:          Libraries
643 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
644 Provides:       php(dbx)
645
646 %description dbx
647 This is a dynamic shared object (DSO) for PHP that will add DB
648 abstraction layer. DBX supports odbc, mysql, pgsql, mssql, fbsql and
649 more.
650
651 %description dbx -l pl.UTF-8
652 Moduł PHP dodający warstwę abstrakcji do obsługi baz danych. DBX
653 obsługuje bazy odbc, mysql, pgsql, mssql, fbsql i inne.
654
655 %package dio
656 Summary:        Direct I/O extension module for PHP
657 Summary(pl.UTF-8):      Moduł Direct I/O dla PHP
658 Group:          Libraries
659 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
660 Provides:       php(dio)
661
662 %description dio
663 This is a dynamic shared object (DSO) for PHP that will add direct
664 file I/O support.
665
666 %description dio -l pl.UTF-8
667 Moduł PHP dodający obsługę bezpośrednich operacji I/O na plikach.
668
669 %package domxml
670 Summary:        DOM XML extension module for PHP
671 Summary(pl.UTF-8):      Moduł DOM XML dla PHP
672 Group:          Libraries
673 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
674 Provides:       php(domxml)
675
676 %description domxml
677 This is a dynamic shared object (DSO) for PHP that will add DOM XML
678 support.
679
680 Warning: this is an experimental module.
681
682 %description domxml -l pl.UTF-8
683 Moduł PHP dodający obsługę DOM XML.
684
685 Uwaga: to jest moduł eksperymentalny.
686
687 %package exif
688 Summary:        exif extension module for PHP
689 Summary(pl.UTF-8):      Moduł exif dla PHP
690 Group:          Libraries
691 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
692 Provides:       php(exif)
693
694 %description exif
695 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
696 support in image files.
697
698 %description exif -l pl.UTF-8
699 Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
700
701 %package fdf
702 Summary:        FDF extension module for PHP
703 Summary(pl.UTF-8):      Moduł FDF dla PHP
704 Group:          Libraries
705 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
706 Provides:       php(fdf)
707
708 %description fdf
709 This PHP module adds support for PDF Forms through Adobe FDFTK
710 library.
711
712 %description fdf -l pl.UTF-8
713 Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
714 FDFTK.
715
716 %package filepro
717 Summary:        filePro extension module for PHP
718 Summary(pl.UTF-8):      Moduł filePro dla PHP
719 Group:          Libraries
720 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
721 Provides:       php(filepro)
722
723 %description filepro
724 This is a dynamic shared object (DSO) for PHP that will add support
725 for read-only access to filePro databases.
726
727 %description filepro -l pl.UTF-8
728 Moduł PHP dodający możliwość dostępu (tylko do odczytu) do baz danych
729 filePro.
730
731 %package fribidi
732 Summary:        FriBiDi extension module for PHP
733 Summary(pl.UTF-8):      Modułe FriBiDi dla PHP
734 Group:          Libraries
735 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
736 Provides:       php(fribidi)
737
738 %description fribidi
739 This extension is basically a wrapper for the FriBidi implementation
740 of the Unicode Bidi algorithm. The need for such an algorithm rises
741 from the bidirectional language usage done by applications.
742 Arabic/Hebrew embedded within English is such a case.
743
744 %description fribidi -l pl.UTF-8
745 To rozszerzenie to głównie interfejs do implementacji FriBiDi
746 algorytmu Unicode Bidi. Taki algorytm jest potrzebny w przypadku
747 używania dwukierunkowego pisma w aplikacjach - na przykład przy
748 tekście arabskim lub hebrajskim osadzonym wewnątrz angielskiego.
749
750 %package ftp
751 Summary:        FTP extension module for PHP
752 Summary(pl.UTF-8):      Moduł FTP dla PHP
753 Group:          Libraries
754 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
755 Provides:       php(ftp)
756
757 %description ftp
758 This is a dynamic shared object (DSO) for PHP that will add FTP
759 support.
760
761 %description ftp -l pl.UTF-8
762 Moduł PHP dodający obsługę protokołu FTP.
763
764 %package gd
765 Summary:        GD extension module for PHP
766 Summary(pl.UTF-8):      Moduł GD dla PHP
767 Group:          Libraries
768 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
769 Requires:       gd >= 2.0.28-2
770 Requires:       gd(gif)
771 Provides:       php(gd)
772
773 %description gd
774 This is a dynamic shared object (DSO) for PHP that will add GD
775 support, allowing you to create and manipulate images with PHP.
776
777 %description gd -l pl.UTF-8
778 Moduł PHP umożliwiający korzystanie z biblioteki GD, pozwalającej na
779 tworzenie i obróbkę obrazków.
780
781 %package gettext
782 Summary:        gettext extension module for PHP
783 Summary(pl.UTF-8):      Moduł gettext dla PHP
784 Group:          Libraries
785 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
786 Provides:       php(gettext)
787
788 %description gettext
789 This is a dynamic shared object (DSO) for PHP that will add gettext
790 support.
791
792 %description gettext -l pl.UTF-8
793 Moduł PHP dodający obsługę lokalizacji przez gettext.
794
795 %package gmp
796 Summary:        gmp extension module for PHP
797 Summary(pl.UTF-8):      Moduł gmp dla PHP
798 Group:          Libraries
799 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
800 Provides:       php(gmp)
801
802 %description gmp
803 This is a dynamic shared object (DSO) for PHP that will add arbitrary
804 length number support with GNU MP library.
805
806 %description gmp -l pl.UTF-8
807 Moduł PHP umożliwiający korzystanie z biblioteki gmp do obliczeń na
808 liczbach o dowolnej długości.
809
810 %package hyperwave
811 Summary:        Hyperwave extension module for PHP
812 Summary(pl.UTF-8):      Moduł Hyperwave dla PHP
813 Group:          Libraries
814 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
815 Provides:       php(hyperwave)
816
817 %description hyperwave
818 This is a dynamic shared object (DSO) for PHP that will add Hyperwave
819 support.
820
821 %description hyperwave -l pl.UTF-8
822 Moduł PHP dodający obsługę Hyperwave.
823
824 %package iconv
825 Summary:        iconv extension module for PHP
826 Summary(pl.UTF-8):      Moduł iconv dla PHP
827 Group:          Libraries
828 Requires:       %{_libdir}/gconv
829 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
830 Requires:       iconv
831 Provides:       php(iconv)
832
833 %description iconv
834 This is a dynamic shared object (DSO) for PHP that will add iconv
835 support.
836
837 %description iconv -l pl.UTF-8
838 Moduł PHP dodający obsługę iconv.
839
840 %package imap
841 Summary:        IMAP extension module for PHP
842 Summary(pl.UTF-8):      Moduł IMAP dla PHP
843 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam IMAP
844 Group:          Libraries
845 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
846 Provides:       php(imap)
847
848 %description imap
849 This is a dynamic shared object (DSO) for PHP that will add IMAP
850 support.
851
852 %description imap -l pl.UTF-8
853 Moduł PHP dodający obsługę skrzynek IMAP.
854
855 %description imap -l pt_BR.UTF-8
856 Um módulo para aplicações PHP que usam IMAP.
857
858 %package interbase
859 Summary:        InterBase/Firebird database module for PHP
860 Summary(pl.UTF-8):      Moduł bazy danych InterBase/Firebird dla PHP
861 Group:          Libraries
862 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
863 Provides:       php(interbase)
864 %{?with_interbase_inst:Autoreq: false}
865
866 %description interbase
867 This is a dynamic shared object (DSO) for PHP that will add InterBase
868 and Firebird database support.
869
870 %description interbase -l pl.UTF-8
871 Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
872
873 %package java
874 Summary:        Java extension module for PHP
875 Summary(pl.UTF-8):      Moduł Javy dla PHP
876 Group:          Libraries
877 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
878 Provides:       php(java)
879
880 %description java
881 This is a dynamic shared object (DSO) for PHP that will add Java
882 support to PHP. This extension provides a simple and effective means
883 for creating and invoking methods on Java objects from PHP.
884
885 Note: it requires setting LD_LIBRARY_PATH to JRE directories
886 containing JVM libraries (e.g. libjava.so, libverify.so and libjvm.so
887 for Sun's JRE) before starting Apache or PHP interpreter.
888
889 %description java -l pl.UTF-8
890 Moduł PHP dodający wsparcie dla Javy. Umożliwia odwoływanie się do
891 obiektów Javy z poziomu PHP.
892
893 Uwaga: moduł wymaga ustawienia LD_LIBRARY_PATH na katalogi JRE
894 zawierające biblioteki JVM (np. libjava.so, libverify.so i libjvm.so
895 dla JRE Suna) przed uruchomieniem Apache'a lub interpretera PHP.
896
897 %package ldap
898 Summary:        LDAP extension module for PHP
899 Summary(pl.UTF-8):      Moduł LDAP dla PHP
900 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam LDAP
901 Group:          Libraries
902 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
903 Provides:       php(ldap)
904
905 %description ldap
906 This is a dynamic shared object (DSO) for PHP that will add LDAP
907 support.
908
909 %description ldap -l pl.UTF-8
910 Moduł PHP dodający obsługę LDAP.
911
912 %description ldap -l pt_BR.UTF-8
913 Um módulo para aplicações PHP que usam LDAP.
914
915 %package mbstring
916 Summary:        mbstring extension module for PHP
917 Summary(pl.UTF-8):      Moduł mbstring dla PHP
918 Group:          Libraries
919 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
920 Provides:       php(mbstring)
921
922 %description mbstring
923 This is a dynamic shared object (DSO) for PHP that will add multibyte
924 string support.
925
926 %description mbstring -l pl.UTF-8
927 Moduł PHP dodający obsługę ciągów znaków wielobajtowych.
928
929 %package mcal
930 Summary:        mcal extension module for PHP
931 Summary(pl.UTF-8):      Moduł mcal dla PHP
932 Group:          Libraries
933 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
934 Provides:       php(mcal)
935
936 %description mcal
937 This is a dynamic shared object (DSO) for PHP that will add mcal
938 (Modular Calendar Access Library) support.
939
940 %description mcal -l pl.UTF-8
941 Moduł PHP umożliwiający korzystanie z biblioteki mcal (dającej dostęp
942 do kalendarzy).
943
944 %package mcrypt
945 Summary:        mcrypt extension module for PHP
946 Summary(pl.UTF-8):      Moduł mcrypt dla PHP
947 Group:          Libraries
948 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
949 Provides:       php(mcrypt)
950
951 %description mcrypt
952 This is a dynamic shared object (DSO) for PHP that will add mcrypt
953 support.
954
955 %description mcrypt -l pl.UTF-8
956 Moduł PHP dodający możliwość szyfrowania poprzez bibliotekę mcrypt.
957
958 %package mhash
959 Summary:        mhash extension module for PHP
960 Summary(pl.UTF-8):      Moduł mhash dla PHP
961 Group:          Libraries
962 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
963 Provides:       php(mhash)
964
965 %description mhash
966 This is a dynamic shared object (DSO) for PHP that will add mhash
967 support.
968
969 %description mhash -l pl.UTF-8
970 Moduł PHP udostępniający funkcje mieszające z biblioteki mhash.
971
972 %package mime_magic
973 Summary:        mime_magic extension module for PHP
974 Summary(pl.UTF-8):      Moduł mime_magic dla PHP
975 Group:          Libraries
976 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
977 Requires:       /usr/share/misc/magic.mime
978 Provides:       php(mime_magic)
979
980 %description mime_magic
981 This PHP module adds support for MIME type lookup via file magic
982 numbers using magic.mime database.
983
984 %description mime_magic -l pl.UTF-8
985 Moduł PHP dodający obsługę wyszukiwania typów MIME według magicznych
986 znaczników plików z użyciem bazy danych magic.mime.
987
988 %package ming
989 Summary:        ming extension module for PHP
990 Summary(pl.UTF-8):      Moduł ming dla PHP
991 Group:          Libraries
992 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
993 Provides:       php(ming)
994
995 %description ming
996 This is a dynamic shared object (DSO) for PHP that will add ming
997 (Flash - .swf files) support.
998
999 %description ming -l pl.UTF-8
1000 Moduł PHP dodający obsługę plików Flash (.swf) poprzez bibliotekę
1001 ming.
1002
1003 %package mnogosearch
1004 Summary:        mnoGoSearch extension module for PHP
1005 Summary(pl.UTF-8):      Moduł mnoGoSearch dla PHP
1006 Group:          Libraries
1007 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1008 Provides:       php(mnogosearch)
1009
1010 %description mnogosearch
1011 This is a dynamic shared object (DSO) for PHP that will allow you to
1012 access mnoGoSearch free search engine.
1013
1014 %description mnogosearch -l pl.UTF-8
1015 Moduł PHP dodający pozwalający na dostęp do wolnodostępnego silnika
1016 wyszukiwarki mnoGoSearch.
1017
1018 %package msession
1019 Summary:        msession extension module for PHP
1020 Summary(pl.UTF-8):      Moduł msession dla PHP
1021 Group:          Libraries
1022 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1023 Provides:       php(msession)
1024
1025 %description msession
1026 This is a dynamic shared object (DSO) for PHP that will allow you to
1027 use msession. msession is a high speed session daemon which can run
1028 either locally or remotely. It is designed to provide consistent
1029 session management for a PHP web farm.
1030
1031 %description msession -l pl.UTF-8
1032 Moduł PHP dodający umożliwiający korzystanie z demona msession. Jest
1033 to demon szybkiej obsługi sesji, który może działać lokalnie lub na
1034 innej maszynie. Służy do zapewniania spójnej obsługi sesji dla farmy
1035 serwerów.
1036
1037 %package mssql
1038 Summary:        MS SQL extension module for PHP
1039 Summary(pl.UTF-8):      Moduł MS SQL dla PHP
1040 Group:          Libraries
1041 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1042 Provides:       php(mssql)
1043 Conflicts:      %{name}-sybase
1044 Conflicts:      %{name}-sybase-ct
1045
1046 %description mssql
1047 This is a dynamic shared object (DSO) for PHP that will add MS SQL
1048 databases support through FreeTDS library.
1049
1050 %description mssql -l pl.UTF-8
1051 Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
1052 FreeTDS.
1053
1054 %package mysql
1055 Summary:        MySQL database module for PHP
1056 Summary(pl.UTF-8):      Moduł bazy danych MySQL dla PHP
1057 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bancos de dados MySQL
1058 Group:          Libraries
1059 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1060 Provides:       php(mysql)
1061
1062 %description mysql
1063 This is a dynamic shared object (DSO) for PHP that will add MySQL
1064 database support.
1065
1066 %description mysql -l pl.UTF-8
1067 Moduł PHP umożliwiający dostęp do bazy danych MySQL.
1068
1069 %description mysql -l pt_BR.UTF-8
1070 Um módulo para aplicações PHP que usam bancos de dados MySQL.
1071
1072 %package ncurses
1073 Summary:        ncurses module for PHP
1074 Summary(pl.UTF-8):      Moduł ncurses dla PHP
1075 Group:          Libraries
1076 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1077 Provides:       php(ncurses)
1078
1079 %description ncurses
1080 This PHP module adds support for ncurses functions (only for cli and
1081 cgi SAPIs).
1082
1083 %description ncurses -l pl.UTF-8
1084 Moduł PHP dodający obsługę funkcji ncurses (tylko do SAPI cli i cgi).
1085
1086 %package oci8
1087 Summary:        Oracle 8 database module for PHP
1088 Summary(pl.UTF-8):      Moduł bazy danych Oracle 8 dla PHP
1089 Group:          Libraries
1090 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1091 Provides:       php(oci8)
1092 Autoreq:        false
1093
1094 %description oci8
1095 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
1096 and Oracle 8 database support through Oracle8 Call-Interface (OCI8).
1097
1098 %description oci8 -l pl.UTF-8
1099 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7 i Oracle 8
1100 poprzez interfejs Oracle8 Call-Interface (OCI8).
1101
1102 %package odbc
1103 Summary:        ODBC extension module for PHP
1104 Summary(pl.UTF-8):      Moduł ODBC dla PHP
1105 Summary(pt_BR.UTF-8):   Um módulo para aplicações PHP que usam bases de dados ODBC
1106 Group:          Libraries
1107 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1108 Requires:       unixODBC >= 2.1.1-3
1109 Provides:       php(odbc)
1110
1111 %description odbc
1112 This is a dynamic shared object (DSO) for PHP that will add ODBC
1113 support.
1114
1115 %description odbc -l pl.UTF-8
1116 Moduł PHP ze wsparciem dla ODBC.
1117
1118 %description odbc -l pt_BR.UTF-8
1119 Um módulo para aplicações PHP que usam ODBC.
1120
1121 %package oracle
1122 Summary:        Oracle 7 database module for PHP
1123 Summary(pl.UTF-8):      Moduł bazy danych Oracle 7 dla PHP
1124 Group:          Libraries
1125 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1126 Provides:       php(oracle)
1127 Autoreq:        false
1128
1129 %description oracle
1130 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
1131 database support.
1132
1133 %description oracle -l pl.UTF-8
1134 Moduł PHP umożliwiający dostęp do bazy danych Oracle 7.
1135
1136 %package overload
1137 Summary:        Overload extension module for PHP
1138 Summary(pl.UTF-8):      Moduł Overload dla PHP
1139 Group:          Libraries
1140 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1141 Provides:       php(overload)
1142
1143 %description overload
1144 This is a dynamic shared object (DSO) for PHP that will add user-space
1145 object overloading support.
1146
1147 Warning: this is an experimental module.
1148
1149 %description overload -l pl.UTF-8
1150 Moduł PHP umożliwiający przeciążanie obiektów.
1151
1152 Uwaga: to jest moduł eksperymentalny.
1153
1154 %package pcntl
1155 Summary:        Process Control extension module for PHP
1156 Summary(pl.UTF-8):      Moduł Process Control dla PHP
1157 Group:          Libraries
1158 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1159 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1160 Provides:       php(pcntl)
1161
1162 %description pcntl
1163 This is a dynamic shared object (DSO) for PHP that will add process
1164 spawning and control support. It supports functions like fork(),
1165 waitpid(), signal() etc.
1166
1167 Warning: this is an experimental module. Also, don't use it in
1168 webserver environment!
1169
1170 %description pcntl -l pl.UTF-8
1171 Moduł PHP umożliwiający tworzenie nowych procesów i kontrolę nad nimi.
1172 Obsługuje funkcje takie jak fork(), waitpid(), signal() i podobne.
1173
1174 Uwaga: to jest moduł eksperymentalny. Ponadto nie jest przeznaczony do
1175 używania z serwerem WWW - nie próbuj tego!
1176
1177 %package pcre
1178 Summary:        PCRE extension module for PHP
1179 Summary(pl.UTF-8):      Moduł PCRE dla PHP
1180 Group:          Libraries
1181 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1182 Provides:       php(pcre)
1183
1184 %description pcre
1185 This is a dynamic shared object (DSO) for PHP that will add Perl
1186 Compatible Regular Expression support.
1187
1188 %description pcre -l pl.UTF-8
1189 Moduł PHP umożliwiający korzystanie z perlowych wyrażeń regularnych
1190 (Perl Compatible Regular Expressions)
1191
1192 %package pdf
1193 Summary:        PDF creation module module for PHP
1194 Summary(pl.UTF-8):      Moduł do tworzenia plików PDF dla PHP
1195 Group:          Libraries
1196 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1197 Provides:       php(pdf)
1198
1199 %description pdf
1200 This is a dynamic shared object (DSO) for PHP that will add PDF
1201 support through pdflib.
1202
1203 %description pdf -l pl.UTF-8
1204 Moduł PHP umożliwiający tworzenie plików PDF. Wykorzystuje bibliotekę
1205 pdflib.
1206
1207 %package pgsql
1208 Summary:        PostgreSQL database module for PHP
1209 Summary(pl.UTF-8):      Moduł bazy danych PostgreSQL dla PHP
1210 Group:          Libraries
1211 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1212 Provides:       php(pgsql)
1213
1214 %description pgsql
1215 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1216 database support.
1217
1218 %description pgsql -l pl.UTF-8
1219 Moduł PHP umożliwiający dostęp do bazy danych PostgreSQL.
1220
1221 %description pgsql -l pt_BR.UTF-8
1222 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1223
1224 %package posix
1225 Summary:        POSIX extension module for PHP
1226 Summary(pl.UTF-8):      Moduł POSIX dla PHP
1227 Group:          Libraries
1228 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1229 Provides:       php(posix)
1230
1231 %description posix
1232 This is a dynamic shared object (DSO) for PHP that will add POSIX
1233 functions support to PHP.
1234
1235 %description posix -l pl.UTF-8
1236 Moduł PHP umożliwiający korzystanie z funkcji POSIX.
1237
1238 %package pspell
1239 Summary:        pspell extension module for PHP
1240 Summary(pl.UTF-8):      Moduł pspell dla PHP
1241 Group:          Libraries
1242 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1243 Provides:       php(pspell)
1244
1245 %description pspell
1246 This is a dynamic shared object (DSO) for PHP that will add pspell
1247 support to PHP. It allows to check the spelling of a word and offer
1248 suggestions.
1249
1250 %description pspell -l pl.UTF-8
1251 Moduł PHP umożliwiający korzystanie z pspella. Pozwala on na
1252 sprawdzanie pisowni słowa i sugerowanie poprawek.
1253
1254 %package qtdom
1255 Summary:        Qt DOM extension module for PHP
1256 Summary(pl.UTF-8):      Moduł Qt DOM dla PHP
1257 Group:          Libraries
1258 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1259 Provides:       php(qtdom)
1260
1261 %description qtdom
1262 This PHP module adds Qt DOM functions support.
1263
1264 %description qtdom -l pl.UTF-8
1265 Moduł PHP dodający obsługę funkcji Qt DOM.
1266
1267 %package readline
1268 Summary:        readline extension module for PHP
1269 Summary(pl.UTF-8):      Moduł readline dla PHP
1270 Group:          Libraries
1271 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1272 Provides:       php(readline)
1273
1274 %description readline
1275 This PHP module adds support for readline functions (only for cli and
1276 cgi SAPIs).
1277
1278 %description readline -l pl.UTF-8
1279 Moduł PHP dodający obsługę funkcji readline (tylko do SAPI cli i cgi).
1280
1281 %package recode
1282 Summary:        recode extension module for PHP
1283 Summary(pl.UTF-8):      Moduł recode dla PHP
1284 Group:          Libraries
1285 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1286 Requires:       recode >= 3.5d-3
1287 Provides:       php(recode)
1288
1289 %description recode
1290 This is a dynamic shared object (DSO) for PHP that will add recode
1291 support.
1292
1293 %description recode -l pl.UTF-8
1294 Moduł PHP dodający możliwość konwersji kodowania plików (poprzez
1295 bibliotekę recode).
1296
1297 %package shmop
1298 Summary:        Shared Memory Operations extension module for PHP
1299 Summary(pl.UTF-8):      Moduł shmop dla PHP
1300 Group:          Libraries
1301 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1302 Provides:       php(shmop)
1303
1304 %description shmop
1305 This is a dynamic shared object (DSO) for PHP that will add Shared
1306 Memory Operations support.
1307
1308 Warning: this is an experimental module.
1309
1310 %description shmop -l pl.UTF-8
1311 Moduł PHP umożliwiający korzystanie z pamięci dzielonej.
1312
1313 Uwaga: to jest moduł eksperymentalny.
1314
1315 %package snmp
1316 Summary:        SNMP extension module for PHP
1317 Summary(pl.UTF-8):      Moduł SNMP dla PHP
1318 Group:          Libraries
1319 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1320 Provides:       php(snmp)
1321
1322 %description snmp
1323 This is a dynamic shared object (DSO) for PHP that will add SNMP
1324 support.
1325
1326 %description snmp -l pl.UTF-8
1327 Moduł PHP dodający obsługę SNMP.
1328
1329 %package sockets
1330 Summary:        sockets extension module for PHP
1331 Summary(pl.UTF-8):      Moduł socket dla PHP
1332 Group:          Libraries
1333 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1334 Provides:       php(sockets)
1335
1336 %description sockets
1337 This is a dynamic shared object (DSO) for PHP that will add sockets
1338 support.
1339
1340 Warning: this is an experimental module.
1341
1342 %description sockets -l pl.UTF-8
1343 Moduł PHP dodający obsługę gniazdek.
1344
1345 Uwaga: to jest moduł eksperymentalny.
1346
1347 %package sybase
1348 Summary:        Sybase DB extension module for PHP
1349 Summary(pl.UTF-8):      Moduł Sybase DB dla PHP
1350 Group:          Libraries
1351 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1352 Provides:       php(sybase)
1353 Obsoletes:      php4-sybase-ct
1354 Conflicts:      %{name}-mssql
1355
1356 %description sybase
1357 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1358 MS SQL databases support through SYBDB library. Currently Sybase
1359 module is not maintained. Using Sybase-CT module is recommended
1360 instead.
1361
1362 %description sybase -l pl.UTF-8
1363 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1364 bibliotekę SYBDB. W chwili obecnej moduł Sybase nie jest wspierany.
1365 Zaleca się używanie modułu Sybase-CT.
1366
1367 %package sybase-ct
1368 Summary:        Sybase-CT extension module for PHP
1369 Summary(pl.UTF-8):      Moduł Sybase-CT dla PHP
1370 Group:          Libraries
1371 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1372 Provides:       php(sybase-ct)
1373 Obsoletes:      php4-sybase
1374 Conflicts:      %{name}-mssql
1375
1376 %description sybase-ct
1377 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1378 MS SQL databases support through CT-lib.
1379
1380 %description sybase-ct -l pl.UTF-8
1381 Moduł PHP dodający obsługę baz danych Sybase oraz MS SQL poprzez
1382 CT-lib.
1383
1384 %package sysvmsg
1385 Summary:        SysV msg extension module for PHP
1386 Summary(pl.UTF-8):      Moduł SysV msg dla PHP
1387 Group:          Libraries
1388 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1389 Provides:       php(sysvmsg)
1390
1391 %description sysvmsg
1392 This is a dynamic shared object (DSO) for PHP that will add SysV
1393 message queues support.
1394
1395 %description sysvmsg -l pl.UTF-8
1396 Moduł PHP umożliwiający korzystanie z kolejek komunikatów SysV.
1397
1398 %package sysvsem
1399 Summary:        SysV sem extension module for PHP
1400 Summary(pl.UTF-8):      Moduł SysV sem dla PHP
1401 Group:          Libraries
1402 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1403 Provides:       php(sysvsem)
1404
1405 %description sysvsem
1406 This is a dynamic shared object (DSO) for PHP that will add SysV
1407 semaphores support.
1408
1409 %description sysvsem -l pl.UTF-8
1410 Moduł PHP umożliwiający korzystanie z semaforów SysV.
1411
1412 %package sysvshm
1413 Summary:        SysV shm extension module for PHP
1414 Summary(pl.UTF-8):      Moduł SysV shm dla PHP
1415 Group:          Libraries
1416 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1417 Provides:       php(sysvshm)
1418
1419 %description sysvshm
1420 This is a dynamic shared object (DSO) for PHP that will add SysV
1421 Shared Memory support.
1422
1423 %description sysvshm -l pl.UTF-8
1424 Moduł PHP umożliwiający korzystanie z pamięci dzielonej SysV.
1425
1426 %package tokenizer
1427 Summary:        tokenizer extension module for PHP
1428 Summary(pl.UTF-8):      Moduł rozszerzenia tokenizer dla PHP
1429 Group:          Libraries
1430 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1431 Provides:       php(tokenizer)
1432
1433 %description tokenizer
1434 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1435 support.
1436
1437 %description tokenizer -l pl.UTF-8
1438 Moduł PHP dodający obsługę tokenizera do PHP.
1439
1440 %package wddx
1441 Summary:        wddx extension module for PHP
1442 Summary(pl.UTF-8):      Moduł wddx dla PHP
1443 Group:          Libraries
1444 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1445 #Requires:      %{name}-session = %{epoch}:%{version}-%{release}
1446 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1447 Provides:       php(wddx)
1448
1449 %description wddx
1450 This is a dynamic shared object (DSO) for PHP that will add wddx
1451 support.
1452
1453 %description wddx -l pl.UTF-8
1454 Moduł PHP umożliwiający korzystanie z wddx.
1455
1456 %package xml
1457 Summary:        XML extension module for PHP
1458 Summary(pl.UTF-8):      Moduł XML dla PHP
1459 Group:          Libraries
1460 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1461 Provides:       php(xml)
1462
1463 %description xml
1464 This is a dynamic shared object (DSO) for PHP that will add XML
1465 support. This extension lets you create XML parsers and then define
1466 handlers for different XML events.
1467
1468 %description xml -l pl.UTF-8
1469 Moduł PHP umożliwiający parsowanie plików XML i obsługę zdarzeń
1470 związanych z tymi plikami. Pozwala on tworzyć analizatory XML-a i
1471 następnie definiować procedury obsługi dla różnych zdarzeń XML.
1472
1473 %package xmlrpc
1474 Summary:        xmlrpc extension module for PHP
1475 Summary(pl.UTF-8):      Moduł xmlrpc dla PHP
1476 Group:          Libraries
1477 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1478 Provides:       php(xmlrpc)
1479
1480 %description xmlrpc
1481 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1482 support.
1483
1484 Warning: this is an experimental module.
1485
1486 %description xmlrpc -l pl.UTF-8
1487 Moduł PHP dodający obsługę XMLRPC.
1488
1489 Uwaga: to jest moduł eksperymentalny.
1490
1491 %package xslt
1492 Summary:        xslt extension module for PHP
1493 Summary(pl.UTF-8):      Moduł xslt dla PHP
1494 Group:          Libraries
1495 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1496 Provides:       php(xslt)
1497
1498 %description xslt
1499 This is a dynamic shared object (DSO) for PHP that will add xslt
1500 support.
1501
1502 %description xslt -l pl.UTF-8
1503 Moduł PHP umożliwiający korzystanie z technologii xslt.
1504
1505 %package yaz
1506 Summary:        yaz extension module for PHP
1507 Summary(pl.UTF-8):      Moduł yaz dla PHP
1508 Group:          Libraries
1509 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1510 Requires:       yaz >= 1.9
1511 Provides:       php(yaz)
1512
1513 %description yaz
1514 This is a dynamic shared object (DSO) for PHP that will add yaz
1515 support. yaz toolkit implements the Z39.50 protocol for information
1516 retrieval.
1517
1518 %description yaz -l pl.UTF-8
1519 Moduł PHP umożliwiający korzystanie z yaz - implementacji protokołu
1520 Z39.50 służącego do pozyskiwania informacji.
1521
1522 %package yp
1523 Summary:        NIS (yp) extension module for PHP
1524 Summary(pl.UTF-8):      Moduł NIS (yp) dla PHP
1525 Group:          Libraries
1526 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1527 Provides:       php(yp)
1528
1529 %description yp
1530 This is a dynamic shared object (DSO) for PHP that will add NIS
1531 (Yellow Pages) support.
1532
1533 %description yp -l pl.UTF-8
1534 Moduł PHP dodający wsparcie dla NIS (Yellow Pages).
1535
1536 %package zip
1537 Summary:        zip extension module for PHP
1538 Summary(pl.UTF-8):      Moduł zip dla PHP
1539 Group:          Libraries
1540 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1541 Provides:       php(zip)
1542
1543 %description zip
1544 This is a dynamic shared object (DSO) for PHP that will add ZZipLib
1545 (read-only access to ZIP archives) support.
1546
1547 %description zip -l pl.UTF-8
1548 Moduł PHP umożliwiający korzystanie z bibliotekli ZZipLib
1549 (pozwalającej na odczyt archiwów ZIP).
1550
1551 %package zlib
1552 Summary:        Zlib extension module for PHP
1553 Summary(pl.UTF-8):      Moduł zlib dla PHP
1554 Group:          Libraries
1555 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1556 Provides:       php(zlib)
1557
1558 %description zlib
1559 This is a dynamic shared object (DSO) for PHP that will add zlib
1560 compression support to PHP.
1561
1562 %description zlib -l pl.UTF-8
1563 Moduł PHP umożliwiający używanie kompresji zlib.
1564
1565 %prep
1566 %setup -q -n php-%{version}
1567 #%patch43 -p1
1568 %patch40 -p1
1569 %patch0 -p1
1570 %patch1 -p1
1571 %patch2 -p1
1572 %patch3 -p1
1573 %patch4 -p1
1574 %patch5 -p1
1575 %patch6 -p1
1576 %patch7 -p1
1577 %patch8 -p1
1578 # Not really needed?
1579 #%patch9 -p1
1580 %patch10 -p1
1581 %patch11 -p1
1582 %patch12 -p1
1583 %patch13 -p1
1584 %patch14 -p1
1585 %patch15 -p1
1586 %patch16 -p1
1587 cp php.ini-dist php.ini
1588 %patch17 -p1
1589 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1590 # conditionally...
1591 %patch18 -p1
1592 %patch19 -p1
1593 %patch20 -p1
1594 %patch21 -p1
1595 %patch22 -p1
1596
1597 %patch24 -p1
1598 %patch25 -p1
1599 %patch26 -p1
1600 %patch27 -p1
1601 %patch28 -p1
1602 %patch29 -p1
1603 %patch30 -p1
1604 %patch31 -p1
1605 %patch33 -p1
1606 %patch34 -p1
1607 %patch35 -p1
1608 %patch36 -p1
1609 %patch37 -p1
1610 %patch38 -p1
1611 %{?with_versioning:%patch39 -p1}
1612 # XXX: I believe this one is obsolete as of 4.4.3
1613 #%patch41 -p1
1614 %patch41 -p1
1615 %patch42 -p1
1616 %patch43 -p1
1617 %patch45 -p1
1618 %patch46 -p1
1619 %patch47 -p1
1620 %patch48 -p1
1621 %patch49 -p1
1622 %patch50 -p1
1623 %patch51 -p1
1624 %if "%{_lib}" == "lib64"
1625 %patch52 -p1
1626 %endif
1627 %patch53 -p1
1628 %patch54 -p1
1629 %patch55 -p1
1630 %patch56 -p1
1631 %patch57 -p1
1632 %patch58 -p1
1633 %patch59 -p1
1634
1635 %if %{with hardening}
1636 zcat %{SOURCE8} | patch -p1
1637 %endif
1638
1639 cp -f Zend/LICENSE{,.Zend}
1640
1641 %build
1642 API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
1643 if [ $API != %{php_api_version} ]; then
1644         echo "Set %%define php_api_version to $API and re-run."
1645         exit 1
1646 fi
1647
1648 API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h)
1649 if [ $API != %{zend_module_api} ]; then
1650         echo "Set %%define zend_module_api to $API and re-run."
1651         exit 1
1652 fi
1653
1654 API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
1655 if [ $API != %{zend_extension_api} ]; then
1656         echo "Set %%define zend_extension_api to $API and re-run."
1657         exit 1
1658 fi
1659
1660 export EXTENSION_DIR="%{extensionsdir}"
1661 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1662         rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
1663         %{__libtoolize}
1664         %{__aclocal}
1665         cp -f /usr/share/automake/config.{sub,guess} .
1666         ./buildconf --force
1667         touch _built-conf
1668 fi
1669 export PROG_SENDMAIL="/usr/lib/sendmail"
1670
1671 sapis="
1672 %if %{with fcgi}
1673 fcgi
1674 %endif
1675 cgi cli
1676 %if %{with apache1}
1677 apxs1
1678 %endif
1679 %if %{with apache2}
1680 apxs2
1681 %endif
1682 "
1683 for sapi in $sapis; do
1684         : SAPI $sapi
1685         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1686
1687         sapi_args=''
1688         case $sapi in
1689         cgi)
1690                 sapi_args='--enable-discard-path --enable-force-cgi-redirect'
1691                 ;;
1692         cli)
1693                 sapi_args='--disable-cgi'
1694                 ;;
1695         fcgi)
1696                 sapi_args='--enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect'
1697                 ;;
1698         apxs1)
1699                 ver=$(rpm -q --qf '%{V}' apache1-devel)
1700                 sapi_args="--with-apxs=%{apxs1} --with-apache-version=$ver"
1701                 ;;
1702         apxs2)
1703                 ver=$(rpm -q --qf '%{V}' apache-devel)
1704                 sapi_args="--with-apxs2=%{apxs2} --with-apache-version=$ver"
1705                 ;;
1706         esac
1707
1708         %configure \
1709         $sapi_args \
1710 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1711         --cache-file=config.cache \
1712 %endif
1713         --with-config-file-path=%{_sysconfdir} \
1714         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1715         --with-exec-dir=%{_bindir} \
1716         --%{!?debug:dis}%{?debug:en}able-debug \
1717         %{?with_zts:--enable-experimental-zts} \
1718         --enable-inline-optimization \
1719         --enable-shared \
1720         --disable-static \
1721         --enable-bcmath=shared \
1722         --enable-calendar=shared \
1723         --enable-ctype=shared \
1724         --enable-dba=shared \
1725         --enable-dbx=shared \
1726         --enable-dio=shared \
1727         --enable-exif=shared \
1728         --enable-filepro=shared \
1729         --enable-ftp=shared \
1730         --enable-magic-quotes \
1731         --enable-mbstring=shared,all --enable-mbregex \
1732         --enable-memory-limit \
1733         --enable-overload=shared \
1734         --enable-pcntl=shared \
1735         --enable-posix=shared \
1736         %{?with_recode:--with-recode=shared} \
1737         --enable-safe-mode \
1738         --enable-session --enable-trans-sid \
1739         --enable-shmop=shared \
1740         --enable-sockets=shared \
1741         --enable-sysvmsg=shared \
1742         --enable-sysvsem=shared \
1743         --enable-sysvshm=shared \
1744         --enable-tokenizer=shared \
1745         --enable-track-vars \
1746         %{?with_wddx:--enable-wddx=shared} \
1747         %{!?with_xml:--disable-xml}%{?with_xml:--enable-xml=shared} \
1748         %{?with_xslt:--enable-xslt=shared} \
1749         %{?with_yp:--enable-yp=shared} \
1750         --with-bz2=shared \
1751         %{?with_cpdf:--with-cpdflib=shared} \
1752         --with-crack=shared \
1753         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1754         --with-db=shared --with-db%{?with_db3:3}%{!?with_db3:4} \
1755         --with-dbase=shared \
1756         %{?with_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
1757 %if %{with xml} || %{with xmlrpc}
1758         --with-expat-dir=shared,/usr \
1759 %else
1760         --without-expat-dir \
1761 %endif
1762         %{?with_fdf:--with-fdftk=shared} \
1763         --with-filepro=shared \
1764         --with-freetype-dir=shared \
1765         %{?with_fribidi:--with-fribidi=shared} \
1766         --with-gd=shared --enable-gd-native-ttf \
1767         --with-gdbm \
1768         --with-gettext=shared \
1769         --with-gmp=shared \
1770         --with-hyperwave=shared \
1771         --with-iconv=shared \
1772         %{?with_imap:--with-imap=shared --with-imap-ssl --with-kerberos} \
1773         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1774         %{?with_java:--with-java=%{_libdir}/java} \
1775         --with-jpeg-dir=/usr \
1776         %{?with_ldap:--with-ldap=shared} \
1777         --with-mcal=shared,/usr \
1778         --with-mcrypt=shared \
1779         %{?with_mhash:--with-mhash=shared} \
1780         --with-mime-magic=shared,/usr/share/misc/magic.mime \
1781         %{?with_ming:--with-ming=shared} \
1782         %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
1783         %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
1784         %{?with_mssql:--with-mssql=shared} \
1785         --with-mysql=shared,/usr --with-mysql-sock=/var/lib/mysql/mysql.sock \
1786         --with-ncurses=shared \
1787         %{?with_oci8:--with-oci8=shared} \
1788         %{?with_odbc:--with-unixODBC=shared} \
1789         %{?with_openssl:--with-openssl} \
1790         %{?with_oracle:--with-oracle=shared} \
1791         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared,/usr} \
1792         %{?with_pdf:--with-pdflib=shared} \
1793         --with-pear=%{php_pear_dir} \
1794         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1795         --with-png-dir=/usr \
1796         %{?with_qtdom:--with-qtdom=shared} \
1797         --with-readline=shared \
1798         --with-regex=php \
1799         %{?with_snmp:--with-snmp=shared --enable-ucd-snmp-hack} \
1800         %{?with_pspell:--with-pspell=shared} \
1801         %{?with_sybase:--with-sybase-ct=shared,/usr --with-sybase=shared,/usr} \
1802         --with-t1lib=shared \
1803         --with-tiff-dir=/usr \
1804         %{?with_xml:--with-dom=shared} \
1805         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared%{?with_system_xmlrpc_epi:,/usr}} \
1806         %{?with_xslt:--with-xslt-sablot=shared} --without-sablot-js \
1807         %{?with_yaz:--with-yaz=shared} \
1808         --with-zip=shared \
1809         --with-zlib=shared --with-zlib-dir=shared,/usr \
1810
1811         cp -f Makefile Makefile.$sapi
1812         cp -f main/php_config.h php_config.h.$sapi
1813 done
1814
1815 # must make this first, so modules can link against it.
1816 %{__make} libphp_common.la
1817 %{__make} build-modules
1818
1819 # version suffix
1820 v=$(echo %{version} | cut -d. -f1-2)
1821
1822 %if %{with apache1}
1823 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp4.la -f Makefile.apxs1
1824 %endif
1825
1826 %if %{with apache2}
1827 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp4.la -f Makefile.apxs2
1828 %endif
1829
1830 # FCGI
1831 %if %{with fcgi}
1832 cp -af php_config.h.fcgi main/php_config.h
1833 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1834 %{__make} sapi/cgi/php -f Makefile.fcgi
1835 cp -r sapi/cgi sapi/fcgi
1836 [ "$(echo '<?=php_sapi_name();' | ./sapi/fcgi/php -qn)" = cgi-fcgi ] || exit 1
1837 %endif
1838
1839 # CGI
1840 cp -af php_config.h.cgi main/php_config.h
1841 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1842 %{__make} sapi/cgi/php -f Makefile.cgi
1843 [ "$(echo '<?=php_sapi_name();' | ./sapi/cgi/php -qn)" = cgi ] || exit 1
1844
1845 # CLI
1846 cp -af php_config.h.cli main/php_config.h
1847 %{__make} sapi/cli/php -f Makefile.cli
1848 [ "$(echo '<?=php_sapi_name();' | ./sapi/cli/php -n)" = cli ] || exit 1
1849
1850 %install
1851 rm -rf $RPM_BUILD_ROOT
1852 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}} \
1853         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1854         $RPM_BUILD_ROOT{/etc/apache/conf.d,/etc/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 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
1862 # fix install paths, avoid evil rpaths
1863 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
1864
1865 # install apache1 DSO module
1866 %if %{with apache1}
1867 libtool --silent --mode=install install sapi/apache/libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache1
1868 rm $RPM_BUILD_ROOT%{_libdir}/apache1/libphp4.la
1869
1870 mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp4{,-$v}.so
1871 ln -s libphp4-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/mod_php.so
1872 %endif
1873
1874 # install apache2 DSO module
1875 %if %{with apache2}
1876 libtool --silent --mode=install install sapi/apache2handler/libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache
1877 rm $RPM_BUILD_ROOT%{_libdir}/apache/libphp4.la
1878
1879 mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp4{,-$v}.so
1880 ln -s libphp4-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/mod_php.so
1881 %endif
1882
1883 # better solution?
1884 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
1885
1886 # install CGI
1887 libtool --silent --mode=install install sapi/cgi/php $RPM_BUILD_ROOT%{_bindir}/php4.cgi
1888
1889 # install FCGI
1890 %if %{with fcgi}
1891 libtool --silent --mode=install install sapi/fcgi/php $RPM_BUILD_ROOT%{_bindir}/php4.fcgi
1892 %endif
1893
1894 # install CLI
1895 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php4.cli
1896
1897 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php4.1
1898 ln -sf php4.cli $RPM_BUILD_ROOT%{_bindir}/php4
1899 ln -sf php4.cli $RPM_BUILD_ROOT%{_bindir}/php
1900
1901 %{?with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{extensionsdir}}
1902
1903 install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1904 %if %{with fcgi}
1905 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
1906 %endif
1907 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
1908 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
1909
1910 %if %{with apache1}
1911 install %{SOURCE3} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php4.conf
1912 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
1913 %endif
1914
1915 %if %{with apache2}
1916 install %{SOURCE3} $RPM_BUILD_ROOT/etc/httpd/conf.d/70_mod_php4.conf
1917 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
1918 %endif
1919
1920 # Generate stub .ini files for each subpackage
1921 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1922 generate_inifiles() {
1923         for so in modules/*.so; do
1924                 mod=$(basename $so .so)
1925                 conf="%{_sysconfdir}/conf.d/$mod.ini"
1926                 # xml needs to be loaded before wddx
1927                 [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_$mod.ini"
1928                 echo "+ $conf"
1929                 cat > $RPM_BUILD_ROOT$conf <<-EOF
1930                         ; Enable $mod extension module
1931                         extension=$mod.so
1932                 EOF
1933         done
1934 }
1935 generate_inifiles
1936
1937 # per SAPI ini directories
1938 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
1939
1940 # for CLI SAPI only
1941 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,pcntl,readline}.ini,cli.d}
1942
1943 # use system automake and {lib,sh}tool
1944 %if "%{pld_release}" != "ac"
1945         ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
1946         for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4; do
1947                 ln -snf %{_aclocaldir}/${i} $RPM_BUILD_ROOT%{_libdir}/php/build
1948         done
1949         ln -snf %{_datadir}/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1950 %else
1951         ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
1952         ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1953 %endif
1954 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
1955
1956 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
1957 # isn't installed by install-headers make target, we do it manually here.
1958 # this header file is required by e.g. filter PECL extension
1959 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
1960
1961 %clean
1962 rm -rf $RPM_BUILD_ROOT
1963
1964 %post -n apache1-mod_php4
1965 if [ "$1" = "1" ]; then
1966         %service -q apache restart
1967 fi
1968
1969 %postun -n apache1-mod_php4
1970 if [ "$1" = "0" ]; then
1971         %service -q apache restart
1972 fi
1973
1974 %post -n apache-mod_php4
1975 if [ "$1" = "1" ]; then
1976         %service -q httpd restart
1977 fi
1978
1979 %postun -n apache-mod_php4
1980 if [ "$1" = "0" ]; then
1981         %service -q httpd restart
1982 fi
1983
1984 # so tired of typing... so decided to create macros
1985 # macro called at extension post scriptlet
1986 %define extension_post \
1987 if [ "$1" = "1" ]; then \
1988         [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
1989         [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart \
1990 fi
1991
1992 # macro called at extension postun scriptlet
1993 %define extension_postun \
1994 if [ "$1" = "0" ]; then \
1995         [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart \
1996         [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart \
1997 fi
1998
1999 %post   common -p /sbin/ldconfig
2000 %postun common -p /sbin/ldconfig
2001
2002 %posttrans common
2003 # minimizing apache restarts logics. we restart webserver:
2004 #
2005 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
2006 # 2. first install of extension (post: $1 = 1)
2007 # 2. uninstall of extension (postun: $1 == 0)
2008 #
2009 # the strict internal deps between extensions (and apache modules) and
2010 # common package are very important for all this to work.
2011
2012 # restart webserver at the end of transaction
2013 [ ! -f /etc/apache/conf.d/??_mod_php4.conf ] || %service -q apache restart
2014 [ ! -f /etc/httpd/conf.d/??_mod_php4.conf ] || %service -q httpd restart
2015
2016 %if %{with apache2}
2017 %triggerpostun -n apache-mod_php4 -- apache-mod_php4 < 3:4.4.0-2.16, php4 < 3:4.3.11-4.16
2018 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
2019 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
2020         cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
2021         mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
2022 fi
2023 %endif
2024
2025 %triggerpostun -n apache1-mod_%{name} -- apache1-mod_%{name} < 3:4.4.9-51
2026 sed -i -e 's#modules/libphp4.so#modules/mod_php.so#g' /etc/apache/conf.d/*_mod_php4.conf
2027
2028 %triggerpostun -n apache-mod_%{name} -- apache-mod_%{name} < 3:4.4.9-51
2029 sed -i -e 's#modules/libphp4.so#modules/mod_php.so#g' /etc/httpd/conf.d/*_mod_php4.conf
2030
2031 %post bcmath
2032 %extension_post
2033
2034 %postun bcmath
2035 %extension_postun
2036
2037 %post bzip2
2038 %extension_post
2039
2040 %postun bzip2
2041 %extension_postun
2042
2043 %post calendar
2044 %extension_post
2045
2046 %postun calendar
2047 %extension_postun
2048
2049 %post cpdf
2050 %extension_post
2051
2052 %postun cpdf
2053 %extension_postun
2054
2055 %post crack
2056 %extension_post
2057
2058 %postun crack
2059 %extension_postun
2060
2061 %post ctype
2062 %extension_post
2063
2064 %postun ctype
2065 %extension_postun
2066
2067 %post curl
2068 %extension_post
2069
2070 %postun curl
2071 %extension_postun
2072
2073 %post db
2074 %extension_post
2075
2076 %postun db
2077 %extension_postun
2078
2079 %post dba
2080 %extension_post
2081
2082 %postun dba
2083 %extension_postun
2084
2085 %post dbase
2086 %extension_post
2087
2088 %postun dbase
2089 %extension_postun
2090
2091 %post dbx
2092 %extension_post
2093
2094 %postun dbx
2095 %extension_postun
2096
2097 %post dio
2098 %extension_post
2099
2100 %postun dio
2101 %extension_postun
2102
2103 %post domxml
2104 %extension_post
2105
2106 %postun domxml
2107 %extension_postun
2108
2109 %post exif
2110 %extension_post
2111
2112 %postun exif
2113 %extension_postun
2114
2115 %post fdf
2116 %extension_post
2117
2118 %postun fdf
2119 %extension_postun
2120
2121 %post filepro
2122 %extension_post
2123
2124 %postun filepro
2125 %extension_postun
2126
2127 %post fribidi
2128 %extension_post
2129
2130 %postun fribidi
2131 %extension_postun
2132
2133 %post ftp
2134 %extension_post
2135
2136 %postun ftp
2137 %extension_postun
2138
2139 %post gd
2140 %extension_post
2141
2142 %postun gd
2143 %extension_postun
2144
2145 %post gettext
2146 %extension_post
2147
2148 %postun gettext
2149 %extension_postun
2150
2151 %post gmp
2152 %extension_post
2153
2154 %postun gmp
2155 %extension_postun
2156
2157 %post hyperwave
2158 %extension_post
2159
2160 %postun hyperwave
2161 %extension_postun
2162
2163 %post iconv
2164 %extension_post
2165
2166 %postun iconv
2167 %extension_postun
2168
2169 %post imap
2170 %extension_post
2171
2172 %postun imap
2173 %extension_postun
2174
2175 %post interbase
2176 %extension_post
2177
2178 %postun interbase
2179 %extension_postun
2180
2181 %post java
2182 %extension_post
2183
2184 %postun java
2185 %extension_postun
2186
2187 %post ldap
2188 %extension_post
2189
2190 %postun ldap
2191 %extension_postun
2192
2193 %post mbstring
2194 %extension_post
2195
2196 %postun mbstring
2197 %extension_postun
2198
2199 %post mcal
2200 %extension_post
2201
2202 %postun mcal
2203 %extension_postun
2204
2205 %post mcrypt
2206 %extension_post
2207
2208 %postun mcrypt
2209 %extension_postun
2210
2211 %post mhash
2212 %extension_post
2213
2214 %postun mhash
2215 %extension_postun
2216
2217 %post mime_magic
2218 %extension_post
2219
2220 %postun mime_magic
2221 %extension_postun
2222
2223 %post ming
2224 %extension_post
2225
2226 %postun ming
2227 %extension_postun
2228
2229 %post mnogosearch
2230 %extension_post
2231
2232 %postun mnogosearch
2233 %extension_postun
2234
2235 %post msession
2236 %extension_post
2237
2238 %postun msession
2239 %extension_postun
2240
2241 %post mssql
2242 %extension_post
2243
2244 %postun mssql
2245 %extension_postun
2246
2247 %post mysql
2248 %extension_post
2249
2250 %postun mysql
2251 %extension_postun
2252
2253 %post oci8
2254 %extension_post
2255
2256 %postun oci8
2257 %extension_postun
2258
2259 %post odbc
2260 %extension_post
2261
2262 %postun odbc
2263 %extension_postun
2264
2265 %post oracle
2266 %extension_post
2267
2268 %postun oracle
2269 %extension_postun
2270
2271 %post overload
2272 %extension_post
2273
2274 %postun overload
2275 %extension_postun
2276
2277 %post pcre
2278 %extension_post
2279
2280 %postun pcre
2281 %extension_postun
2282
2283 %post pdf
2284 %extension_post
2285
2286 %postun pdf
2287 %extension_postun
2288
2289 %post pgsql
2290 %extension_post
2291
2292 %postun pgsql
2293 %extension_postun
2294
2295 %post posix
2296 %extension_post
2297
2298 %postun posix
2299 %extension_postun
2300
2301 %post pspell
2302 %extension_post
2303
2304 %postun pspell
2305 %extension_postun
2306
2307 %post qtdom
2308 %extension_post
2309
2310 %postun qtdom
2311 %extension_postun
2312
2313 %post recode
2314 %extension_post
2315
2316 %postun recode
2317 %extension_postun
2318
2319 %post shmop
2320 %extension_post
2321
2322 %postun shmop
2323 %extension_postun
2324
2325 %post snmp
2326 %extension_post
2327
2328 %postun snmp
2329 %extension_postun
2330
2331 %post sockets
2332 %extension_post
2333
2334 %postun sockets
2335 %extension_postun
2336
2337 %post sybase
2338 %extension_post
2339
2340 %postun sybase
2341 %extension_postun
2342
2343 %post sybase-ct
2344 %extension_post
2345
2346 %postun sybase-ct
2347 %extension_postun
2348
2349 %post sysvmsg
2350 %extension_post
2351
2352 %postun sysvmsg
2353 %extension_postun
2354
2355 %post sysvsem
2356 %extension_post
2357
2358 %postun sysvsem
2359 %extension_postun
2360
2361 %post sysvshm
2362 %extension_post
2363
2364 %postun sysvshm
2365 %extension_postun
2366
2367 %post tokenizer
2368 %extension_post
2369
2370 %postun tokenizer
2371 %extension_postun
2372
2373 %post wddx
2374 %extension_post
2375
2376 %postun wddx
2377 %extension_postun
2378
2379 %post xml
2380 %extension_post
2381
2382 %postun xml
2383 %extension_postun
2384
2385 %post xmlrpc
2386 %extension_post
2387
2388 %postun xmlrpc
2389 %extension_postun
2390
2391 %post xslt
2392 %extension_post
2393
2394 %postun xslt
2395 %extension_postun
2396
2397 %post yaz
2398 %extension_post
2399
2400 %postun yaz
2401 %extension_postun
2402
2403 %post yp
2404 %extension_post
2405
2406 %postun yp
2407 %extension_postun
2408
2409 %post zip
2410 %extension_post
2411
2412 %postun zip
2413 %extension_postun
2414
2415 %post zlib
2416 %extension_post
2417
2418 %postun zlib
2419 %extension_postun
2420
2421 # openssl trigger on common package. it removes shared openssl module from php.ini, if it was there.
2422 %triggerun common -- %{name}-openssl < 3:4.4.0-4
2423 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2424
2425 %triggerun bcmath -- %{name}-bcmath < 3:4.4.0-2.1
2426 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2427
2428 %triggerun bzip2 -- %{name}-bzip2 < 3:4.4.0-2.1
2429 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bz2\.so/d' %{_sysconfdir}/php.ini
2430
2431 %triggerun calendar -- %{name}-calendar < 3:4.4.0-2.1
2432 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2433
2434 %triggerun cpdf -- %{name}-cpdf < 3:4.4.0-2.1
2435 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*cpdf\.so/d' %{_sysconfdir}/php.ini
2436
2437 %triggerun crack -- %{name}-crack < 3:4.4.0-2.1
2438 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*crack\.so/d' %{_sysconfdir}/php.ini
2439
2440 %triggerun ctype -- %{name}-ctype < 3:4.4.0-2.1
2441 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2442
2443 %triggerun curl -- %{name}-curl < 3:4.4.0-2.1
2444 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2445
2446 %triggerun db -- %{name}-db < 3:4.4.0-2.1
2447 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*db\.so/d' %{_sysconfdir}/php.ini
2448
2449 %triggerun dba -- %{name}-dba < 3:4.4.0-2.1
2450 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2451
2452 %triggerun dbase -- %{name}-dbase < 3:4.4.0-2.1
2453 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2454
2455 %triggerun dbx -- %{name}-dbx < 3:4.4.0-2.1
2456 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbx\.so/d' %{_sysconfdir}/php.ini
2457
2458 %triggerun dio -- %{name}-dio < 3:4.4.0-2.1
2459 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dio\.so/d' %{_sysconfdir}/php.ini
2460
2461 %triggerun domxml -- %{name}-domxml < 3:4.4.0-2.1
2462 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*domxml\.so/d' %{_sysconfdir}/php.ini
2463
2464 %triggerun exif -- %{name}-exif < 3:4.4.0-2.1
2465 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2466
2467 %triggerun fdf -- %{name}-fdf < 3:4.4.0-2.1
2468 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2469
2470 %triggerun filepro -- %{name}-filepro < 3:4.4.0-2.1
2471 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*filepro\.so/d' %{_sysconfdir}/php.ini
2472
2473 %triggerun fribidi -- %{name}-fribidi < 3:4.4.0-2.1
2474 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fribidi\.so/d' %{_sysconfdir}/php.ini
2475
2476 %triggerun ftp -- %{name}-ftp < 3:4.4.0-2.1
2477 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2478
2479 %triggerun gd -- %{name}-gd < 3:4.4.0-2.1
2480 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2481
2482 %triggerun gettext -- %{name}-gettext < 3:4.4.0-2.1
2483 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2484
2485 %triggerun gmp -- %{name}-gmp < 3:4.4.0-2.1
2486 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2487
2488 %triggerun hyperwave -- %{name}-hyperwave < 3:4.4.0-2.1
2489 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*hyperwave\.so/d' %{_sysconfdir}/php.ini
2490
2491 %triggerun iconv -- %{name}-iconv < 3:4.4.0-2.1
2492 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2493
2494 %triggerun imap -- %{name}-imap < 3:4.4.0-2.1
2495 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2496
2497 %triggerun interbase -- %{name}-interbase < 3:4.4.0-2.1
2498 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2499
2500 %triggerun java -- %{name}-java < 3:4.4.0-2.1
2501 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*java\.so/d' %{_sysconfdir}/php.ini
2502
2503 %triggerun ldap -- %{name}-ldap < 3:4.4.0-2.1
2504 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2505
2506 %triggerun mbstring -- %{name}-mbstring < 3:4.4.0-2.1
2507 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2508
2509 %triggerun mcal -- %{name}-mcal < 3:4.4.0-2.1
2510 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcal\.so/d' %{_sysconfdir}/php.ini
2511
2512 %triggerun mcrypt -- %{name}-mcrypt < 3:4.4.0-2.1
2513 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2514
2515 %triggerun mhash -- %{name}-mhash < 3:4.4.0-2.1
2516 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2517
2518 %triggerun mime_magic -- %{name}-mime_magic < 3:4.4.0-2.1
2519 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2520
2521 %triggerun ming -- %{name}-ming < 3:4.4.0-2.1
2522 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{_sysconfdir}/php.ini
2523
2524 %triggerun mnogosearch -- %{name}-mnogosearch < 3:4.4.0-2.1
2525 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mnogosearch\.so/d' %{_sysconfdir}/php.ini
2526
2527 %triggerun msession -- %{name}-msession < 3:4.4.0-2.1
2528 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*msession\.so/d' %{_sysconfdir}/php.ini
2529
2530 %triggerun mssql -- %{name}-mssql < 3:4.4.0-2.1
2531 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2532
2533 %triggerun mysql -- %{name}-mysql < 3:4.4.0-2.1
2534 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2535
2536 %triggerun ncurses -- %{name}-ncurses < 3:4.4.2-9.4
2537 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2538         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2539 fi
2540 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2541         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2542 fi
2543
2544 %triggerun oci8 -- %{name}-oci8 < 3:4.4.0-2.1
2545 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2546
2547 %triggerun odbc -- %{name}-odbc < 3:4.4.0-2.1
2548 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2549
2550 %triggerun oracle -- %{name}-oracle < 3:4.4.0-2.1
2551 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oracle\.so/d' %{_sysconfdir}/php.ini
2552
2553 %triggerun overload -- %{name}-overload < 3:4.4.0-2.1
2554 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*overload\.so/d' %{_sysconfdir}/php.ini
2555
2556 %triggerun pcntl -- %{name}-pcntl < 3:4.4.2-9.4
2557 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2558         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2559 fi
2560 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2561         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2562 fi
2563
2564 %triggerun pcre -- %{name}-pcre < 3:4.4.0-2.1
2565 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcre\.so/d' %{_sysconfdir}/php.ini
2566
2567 %triggerun pdf -- %{name}-pdf < 3:4.4.0-2.1
2568 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pdf\.so/d' %{_sysconfdir}/php.ini
2569
2570 %triggerun pgsql -- %{name}-pgsql < 3:4.4.0-2.1
2571 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2572
2573 %triggerun posix -- %{name}-posix < 3:4.4.0-2.1
2574 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2575
2576 %triggerun pspell -- %{name}-pspell < 3:4.4.0-2.1
2577 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2578
2579 %triggerun qtdom -- %{name}-qtdom < 3:4.4.0-2.1
2580 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*qtdom\.so/d' %{_sysconfdir}/php.ini
2581
2582 %triggerun readline -- %{name}-readline < 3:4.4.2-9.4
2583 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2584         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2585 fi
2586 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2587         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2588 fi
2589
2590 %triggerun recode -- %{name}-recode < 3:4.4.0-2.1
2591 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2592
2593 %triggerun shmop -- %{name}-shmop < 3:4.4.0-2.1
2594 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2595
2596 %triggerun snmp -- %{name}-snmp < 3:4.4.0-2.1
2597 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2598
2599 %triggerun sockets -- %{name}-sockets < 3:4.4.0-2.1
2600 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2601
2602 %triggerun sybase -- %{name}-sybase < 3:4.4.0-2.1
2603 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2604
2605 %triggerun sybase-ct -- %{name}-sybase-ct < 3:4.4.0-2.1
2606 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase_ct\.so/d' %{_sysconfdir}/php.ini
2607
2608 %triggerun sysvmsg -- %{name}-sysvmsg < 3:4.4.0-2.1
2609 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2610
2611 %triggerun sysvsem -- %{name}-sysvsem < 3:4.4.0-2.1
2612 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2613
2614 %triggerun sysvshm -- %{name}-sysvshm < 3:4.4.0-2.1
2615 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2616
2617 %triggerun wddx -- %{name}-wddx < 3:4.4.0-2.1
2618 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2619
2620 %triggerun xml -- %{name}-xml < 3:4.4.0-2.1
2621 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2622
2623 %triggerun xmlrpc -- %{name}-xmlrpc < 3:4.4.0-2.1
2624 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2625
2626 %triggerun xslt -- %{name}-xslt < 3:4.4.0-2.1
2627 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xslt\.so/d' %{_sysconfdir}/php.ini
2628
2629 %triggerun yaz -- %{name}-yaz < 3:4.4.0-2.1
2630 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*yaz\.so/d' %{_sysconfdir}/php.ini
2631
2632 %triggerun yp -- %{name}-yp < 3:4.4.0-2.1
2633 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*yp\.so/d' %{_sysconfdir}/php.ini
2634
2635 %triggerun zip -- %{name}-zip < 3:4.4.0-2.1
2636 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zip\.so/d' %{_sysconfdir}/php.ini
2637
2638 %triggerun zlib -- %{name}-zlib < 3:4.4.0-2.1
2639 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2640
2641 %if %{with apache1}
2642 %files -n apache1-mod_php4
2643 %defattr(644,root,root,755)
2644 %doc sapi/apache/CREDITS
2645 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php4.conf
2646 %dir %{_sysconfdir}/apache.d
2647 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2648 %attr(755,root,root) %{_libdir}/apache1/mod_php.so
2649 %attr(755,root,root) %{_libdir}/apache1/libphp4-*.so
2650 %endif
2651
2652 %if %{with apache2}
2653 %files -n apache-mod_php4
2654 %defattr(644,root,root,755)
2655 %doc sapi/apache2handler/{CREDITS,README}
2656 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/conf.d/*_mod_php4.conf
2657 %dir %{_sysconfdir}/apache2handler.d
2658 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2659 %attr(755,root,root) %{_libdir}/apache/mod_php.so
2660 %attr(755,root,root) %{_libdir}/apache/libphp4-*.so
2661 %endif
2662
2663 %if %{with fcgi}
2664 %files fcgi
2665 %defattr(644,root,root,755)
2666 %doc sapi/cgi/{CREDITS,README.FastCGI}
2667 %attr(755,root,root) %{_bindir}/php4.fcgi
2668 %dir %{_sysconfdir}/cgi-fcgi.d
2669 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2670 %endif
2671
2672 %files cgi
2673 %defattr(644,root,root,755)
2674 %doc sapi/cgi/CREDITS
2675 %attr(755,root,root) %{_bindir}/php4.cgi
2676 %dir %{_sysconfdir}/cgi.d
2677 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2678
2679 %files cli
2680 %defattr(644,root,root,755)
2681 %doc sapi/cli/{CREDITS,README}
2682 %attr(755,root,root) %{_bindir}/php4.cli
2683 %attr(755,root,root) %{_bindir}/php4
2684 %dir %{_sysconfdir}/cli.d
2685 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2686 %{_mandir}/man1/php4.1*
2687
2688 %files program
2689 %defattr(644,root,root,755)
2690 %attr(755,root,root) %{_bindir}/php
2691
2692 %files common
2693 %defattr(644,root,root,755)
2694 %doc php.ini-*
2695 %doc CREDITS Zend/ZEND_CHANGES
2696 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2697
2698 %dir %{_sysconfdir}
2699 %dir %{_sysconfdir}/conf.d
2700 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2701 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2702 %dir %{extensionsdir}
2703
2704 %files devel
2705 %defattr(644,root,root,755)
2706 %doc README.UNIX-BUILD-SYSTEM
2707 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2708 %doc CODING_STANDARDS
2709 %attr(755,root,root) %{_bindir}/phpize
2710 %attr(755,root,root) %{_bindir}/php-config
2711 %attr(755,root,root) %{_libdir}/libphp_common.so
2712 # FIXME: how exactly this is needed? as it contains libdir for apache1 or apache2
2713 %{_libdir}/libphp_common.la
2714 %{_includedir}/php
2715 %dir %{_libdir}/php
2716 %{_libdir}/php/build
2717 %{_mandir}/man1/php-config.1*
2718 %{_mandir}/man1/phpize.1*
2719
2720 %files bcmath
2721 %defattr(644,root,root,755)
2722 %doc ext/bcmath/CREDITS
2723 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2724 %attr(755,root,root) %{extensionsdir}/bcmath.so
2725
2726 %files bzip2
2727 %defattr(644,root,root,755)
2728 %doc ext/bz2/CREDITS
2729 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2730 %attr(755,root,root) %{extensionsdir}/bz2.so
2731
2732 %files calendar
2733 %defattr(644,root,root,755)
2734 %doc ext/calendar/CREDITS
2735 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2736 %attr(755,root,root) %{extensionsdir}/calendar.so
2737
2738 %if %{with cpdf}
2739 %files cpdf
2740 %defattr(644,root,root,755)
2741 %doc ext/cpdf/CREDITS
2742 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/cpdf.ini
2743 %attr(755,root,root) %{extensionsdir}/cpdf.so
2744 %endif
2745
2746 %files crack
2747 %defattr(644,root,root,755)
2748 %doc ext/crack/CREDITS
2749 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/crack.ini
2750 %attr(755,root,root) %{extensionsdir}/crack.so
2751
2752 %files ctype
2753 %defattr(644,root,root,755)
2754 %doc ext/ctype/{CREDITS,README}
2755 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2756 %attr(755,root,root) %{extensionsdir}/ctype.so
2757
2758 %if %{with curl}
2759 %files curl
2760 %defattr(644,root,root,755)
2761 %doc ext/curl/CREDITS
2762 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2763 %attr(755,root,root) %{extensionsdir}/curl.so
2764 %endif
2765
2766 %files db
2767 %defattr(644,root,root,755)
2768 %doc ext/db/CREDITS
2769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/db.ini
2770 %attr(755,root,root) %{extensionsdir}/db.so
2771
2772 %files dba
2773 %defattr(644,root,root,755)
2774 %doc ext/dba/{CREDITS,README}
2775 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2776 %attr(755,root,root) %{extensionsdir}/dba.so
2777
2778 %files dbase
2779 %defattr(644,root,root,755)
2780 %doc ext/dbase/CREDITS
2781 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2782 %attr(755,root,root) %{extensionsdir}/dbase.so
2783
2784 %files dbx
2785 %defattr(644,root,root,755)
2786 %doc ext/dbx/{CREDITS,howto_extend_dbx.html}
2787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbx.ini
2788 %attr(755,root,root) %{extensionsdir}/dbx.so
2789
2790 %files dio
2791 %defattr(644,root,root,755)
2792 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dio.ini
2793 %attr(755,root,root) %{extensionsdir}/dio.so
2794
2795 %if %{with xml}
2796 %files domxml
2797 %defattr(644,root,root,755)
2798 %doc ext/domxml/{CREDITS,TODO}
2799 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/domxml.ini
2800 %attr(755,root,root) %{extensionsdir}/domxml.so
2801 %endif
2802
2803 %if %{with fdf}
2804 %files fdf
2805 %defattr(644,root,root,755)
2806 %doc ext/fdf/CREDITS
2807 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2808 %attr(755,root,root) %{extensionsdir}/fdf.so
2809 %endif
2810
2811 %files exif
2812 %defattr(644,root,root,755)
2813 %doc ext/exif/CREDITS
2814 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2815 %attr(755,root,root) %{extensionsdir}/exif.so
2816
2817 %files filepro
2818 %defattr(644,root,root,755)
2819 %doc ext/filepro/CREDITS
2820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/filepro.ini
2821 %attr(755,root,root) %{extensionsdir}/filepro.so
2822
2823 %if %{with fribidi}
2824 %files fribidi
2825 %defattr(644,root,root,755)
2826 %doc ext/fribidi/{CREDITS,README}
2827 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fribidi.ini
2828 %attr(755,root,root) %{extensionsdir}/fribidi.so
2829 %endif
2830
2831 %files ftp
2832 %defattr(644,root,root,755)
2833 %doc ext/ftp/CREDITS
2834 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2835 %attr(755,root,root) %{extensionsdir}/ftp.so
2836
2837 %files gd
2838 %defattr(644,root,root,755)
2839 %doc ext/gd/CREDITS
2840 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2841 %attr(755,root,root) %{extensionsdir}/gd.so
2842
2843 %files gettext
2844 %defattr(644,root,root,755)
2845 %doc ext/gettext/CREDITS
2846 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2847 %attr(755,root,root) %{extensionsdir}/gettext.so
2848
2849 %files gmp
2850 %defattr(644,root,root,755)
2851 %doc ext/gmp/{CREDITS,README,TODO}
2852 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2853 %attr(755,root,root) %{extensionsdir}/gmp.so
2854
2855 %files hyperwave
2856 %defattr(644,root,root,755)
2857 %doc ext/hyperwave/CREDITS
2858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/hyperwave.ini
2859 %attr(755,root,root) %{extensionsdir}/hyperwave.so
2860
2861 %files iconv
2862 %defattr(644,root,root,755)
2863 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2864 %attr(755,root,root) %{extensionsdir}/iconv.so
2865
2866 %if %{with imap}
2867 %files imap
2868 %defattr(644,root,root,755)
2869 %doc ext/imap/CREDITS
2870 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2871 %attr(755,root,root) %{extensionsdir}/imap.so
2872 %endif
2873
2874 %if %{with interbase}
2875 %files interbase
2876 %defattr(644,root,root,755)
2877 %doc ext/interbase/CREDITS
2878 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2879 %attr(755,root,root) %{extensionsdir}/interbase.so
2880 %endif
2881
2882 %if %{with java}
2883 %files java
2884 %defattr(644,root,root,755)
2885 %doc ext/java/{CREDITS,README}
2886 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/java.ini
2887 %attr(755,root,root) %{extensionsdir}/java.so
2888 %{extensionsdir}/php_java.jar
2889 %endif
2890
2891 %if %{with ldap}
2892 %files ldap
2893 %defattr(644,root,root,755)
2894 %doc ext/ldap/CREDITS
2895 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2896 %attr(755,root,root) %{extensionsdir}/ldap.so
2897 %endif
2898
2899 %files mbstring
2900 %defattr(644,root,root,755)
2901 %doc ext/mbstring/{CREDITS,README,README.libmbfl}
2902 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2903 %attr(755,root,root) %{extensionsdir}/mbstring.so
2904
2905 %files mcal
2906 %defattr(644,root,root,755)
2907 %doc ext/mcal/CREDITS
2908 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcal.ini
2909 %attr(755,root,root) %{extensionsdir}/mcal.so
2910
2911 %files mcrypt
2912 %defattr(644,root,root,755)
2913 %doc ext/mcrypt/{CREDITS,TODO}
2914 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2915 %attr(755,root,root) %{extensionsdir}/mcrypt.so
2916
2917 %if %{with mhash}
2918 %files mhash
2919 %defattr(644,root,root,755)
2920 %doc ext/mhash/CREDITS
2921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2922 %attr(755,root,root) %{extensionsdir}/mhash.so
2923 %endif
2924
2925 %files mime_magic
2926 %defattr(644,root,root,755)
2927 %doc ext/mime_magic/{CREDITS,TODO}
2928 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2929 %attr(755,root,root) %{extensionsdir}/mime_magic.so
2930
2931 %if %{with ming}
2932 %files ming
2933 %defattr(644,root,root,755)
2934 %doc ext/ming/CREDITS
2935 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2936 %attr(755,root,root) %{extensionsdir}/ming.so
2937 %endif
2938
2939 %if %{with mnogosearch}
2940 %files mnogosearch
2941 %defattr(644,root,root,755)
2942 %doc ext/mnogosearch/{CREDITS,README}
2943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mnogosearch.ini
2944 %attr(755,root,root) %{extensionsdir}/mnogosearch.so
2945 %endif
2946
2947 %if %{with msession}
2948 %files msession
2949 %defattr(644,root,root,755)
2950 %doc ext/msession/{CREDITS,README,msession-test.php}
2951 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/msession.ini
2952 %attr(755,root,root) %{extensionsdir}/msession.so
2953 %endif
2954
2955 %if %{with mssql}
2956 %files mssql
2957 %defattr(644,root,root,755)
2958 %doc ext/mssql/CREDITS
2959 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2960 %attr(755,root,root) %{extensionsdir}/mssql.so
2961 %endif
2962
2963 %files mysql
2964 %defattr(644,root,root,755)
2965 %doc ext/mysql/CREDITS
2966 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2967 %attr(755,root,root) %{extensionsdir}/mysql.so
2968
2969 %files ncurses
2970 %defattr(644,root,root,755)
2971 %doc ext/ncurses/CREDITS
2972 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2973 %attr(755,root,root) %{extensionsdir}/ncurses.so
2974
2975 %if %{with oci8}
2976 %files oci8
2977 %defattr(644,root,root,755)
2978 %doc ext/oci8/CREDITS
2979 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2980 %attr(755,root,root) %{extensionsdir}/oci8.so
2981 %endif
2982
2983 %if %{with odbc}
2984 %files odbc
2985 %defattr(644,root,root,755)
2986 %doc ext/odbc/CREDITS
2987 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2988 %attr(755,root,root) %{extensionsdir}/odbc.so
2989 %endif
2990
2991 %if %{with oracle}
2992 %files oracle
2993 %defattr(644,root,root,755)
2994 %doc ext/oracle/CREDITS
2995 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oracle.ini
2996 %attr(755,root,root) %{extensionsdir}/oracle.so
2997 %endif
2998
2999 %files overload
3000 %defattr(644,root,root,755)
3001 %doc ext/overload/{CREDITS,README}
3002 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/overload.ini
3003 %attr(755,root,root) %{extensionsdir}/overload.so
3004
3005 %files pcntl
3006 %defattr(644,root,root,755)
3007 %doc ext/pcntl/{CREDITS,README}
3008 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
3009 %attr(755,root,root) %{extensionsdir}/pcntl.so
3010
3011 %if %{with pcre}
3012 %files pcre
3013 %defattr(644,root,root,755)
3014 %doc ext/pcre/CREDITS
3015 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pcre.ini
3016 %attr(755,root,root) %{extensionsdir}/pcre.so
3017 %endif
3018
3019 %if %{with pdf}
3020 %files pdf
3021 %defattr(644,root,root,755)
3022 %doc ext/pdf/CREDITS
3023 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdf.ini
3024 %attr(755,root,root) %{extensionsdir}/pdf.so
3025 %endif
3026
3027 %if %{with pgsql}
3028 %files pgsql
3029 %defattr(644,root,root,755)
3030 %doc ext/pgsql/{CREDITS,README}
3031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
3032 %attr(755,root,root) %{extensionsdir}/pgsql.so
3033 %endif
3034
3035 %files posix
3036 %defattr(644,root,root,755)
3037 %doc ext/posix/CREDITS
3038 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
3039 %attr(755,root,root) %{extensionsdir}/posix.so
3040
3041 %if %{with pspell}
3042 %files pspell
3043 %defattr(644,root,root,755)
3044 %doc ext/overload/{CREDITS,README}
3045 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
3046 %attr(755,root,root) %{extensionsdir}/pspell.so
3047 %endif
3048
3049 %if %{with qtdom}
3050 %files qtdom
3051 %defattr(644,root,root,755)
3052 %doc ext/qtdom/CREDITS
3053 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/qtdom.ini
3054 %attr(755,root,root) %{extensionsdir}/qtdom.so
3055 %endif
3056
3057 %files readline
3058 %defattr(644,root,root,755)
3059 %doc ext/readline/{CREDITS,README.libedit}
3060 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
3061 %attr(755,root,root) %{extensionsdir}/readline.so
3062
3063 %if %{with recode}
3064 %files recode
3065 %defattr(644,root,root,755)
3066 %doc ext/recode/CREDITS
3067 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
3068 %attr(755,root,root) %{extensionsdir}/recode.so
3069 %endif
3070
3071 # session_mm doesn't work with shared session
3072 #%files session
3073 #%defattr(644,root,root,755)
3074 #%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/session.ini
3075 #%attr(755,root,root) %{extensionsdir}/session.so
3076
3077 %files shmop
3078 %defattr(644,root,root,755)
3079 %doc ext/shmop/{CREDITS,README}
3080 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
3081 %attr(755,root,root) %{extensionsdir}/shmop.so
3082
3083 %if %{with snmp}
3084 %files snmp
3085 %defattr(644,root,root,755)
3086 %doc ext/snmp/CREDITS
3087 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
3088 %attr(755,root,root) %{extensionsdir}/snmp.so
3089 %endif
3090
3091 %files sockets
3092 %defattr(644,root,root,755)
3093 %doc ext/sockets/CREDITS
3094 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
3095 %attr(755,root,root) %{extensionsdir}/sockets.so
3096
3097 %if %{with sybase}
3098 %files sybase
3099 %defattr(644,root,root,755)
3100 %doc ext/sybase/CREDITS
3101 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
3102 %attr(755,root,root) %{extensionsdir}/sybase.so
3103
3104 %files sybase-ct
3105 %defattr(644,root,root,755)
3106 %doc ext/sybase_ct/CREDITS
3107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
3108 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
3109 %endif
3110
3111 %files sysvmsg
3112 %defattr(644,root,root,755)
3113 %doc ext/sysvmsg/CREDITS
3114 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
3115 %attr(755,root,root) %{extensionsdir}/sysvmsg.so
3116
3117 %files sysvsem
3118 %defattr(644,root,root,755)
3119 %doc ext/sysvsem/CREDITS
3120 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
3121 %attr(755,root,root) %{extensionsdir}/sysvsem.so
3122
3123 %files sysvshm
3124 %defattr(644,root,root,755)
3125 %doc ext/sysvshm/CREDITS
3126 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
3127 %attr(755,root,root) %{extensionsdir}/sysvshm.so
3128
3129 %files tokenizer
3130 %defattr(644,root,root,755)
3131 %doc ext/tokenizer/{CREDITS,tokenizer.php}
3132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
3133 %attr(755,root,root) %{extensionsdir}/tokenizer.so
3134
3135 %if %{with wddx}
3136 %files wddx
3137 %defattr(644,root,root,755)
3138 %doc ext/wddx/CREDITS
3139 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
3140 %attr(755,root,root) %{extensionsdir}/wddx.so
3141 %endif
3142
3143 %if %{with xml}
3144 %files xml
3145 %defattr(644,root,root,755)
3146 %doc ext/xml/CREDITS
3147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
3148 %attr(755,root,root) %{extensionsdir}/xml.so
3149 %endif
3150
3151 %if %{with xmlrpc}
3152 %files xmlrpc
3153 %defattr(644,root,root,755)
3154 %doc ext/xmlrpc/CREDITS
3155 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
3156 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
3157 %endif
3158
3159 %if %{with xslt}
3160 %files xslt
3161 %defattr(644,root,root,755)
3162 %doc ext/xslt/{README.XSLT-BACKENDS,TODO}
3163 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xslt.ini
3164 %attr(755,root,root) %{extensionsdir}/xslt.so
3165 %endif
3166
3167 %if %{with yaz}
3168 %files yaz
3169 %defattr(644,root,root,755)
3170 %doc ext/yaz/{CREDITS,README}
3171 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/yaz.ini
3172 %attr(755,root,root) %{extensionsdir}/yaz.so
3173 %endif
3174
3175 %if %{with yp}
3176 %files yp
3177 %defattr(644,root,root,755)
3178 %doc ext/yp/CREDITS
3179 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/yp.ini
3180 %attr(755,root,root) %{extensionsdir}/yp.so
3181 %endif
3182
3183 %files zip
3184 %defattr(644,root,root,755)
3185 %doc ext/zip/CREDITS
3186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
3187 %attr(755,root,root) %{extensionsdir}/zip.so
3188
3189 %files zlib
3190 %defattr(644,root,root,755)
3191 %doc ext/zlib/CREDITS
3192 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
3193 %attr(755,root,root) %{extensionsdir}/zlib.so
This page took 0.239359 seconds and 3 git commands to generate.