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