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