]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- ini-search-path.patch resolved upstream
[packages/php.git] / php.spec
1 # TODO:
2 # - think of including support for:
3 #    - mcve,
4 #    - ovrimos,
5 #    - pfpro,
6 #   These extensions BuildRequires proprietary libraries...
7 # - deal with modules removed from php and not moved to PECL
8 #   (existing only in php4):
9 #   db, hyperwave, java, mcal, overload, qtdom
10 #   and removed from php 5.1:
11 #   cpdf, fam, yp, oracle
12 # - mime_magic can't handle new "string/*" entries in magic.mime
13 # - make additional headers added by mail patch configurable
14 # - apply -hardened patch by default ?
15 # - modularize session, standard (output from pure php -m)?
16 #
17 # Conditional build:
18 %bcond_with     db3             # use db3 packages instead of db (4.x) for Berkeley DB support
19 %bcond_with     fdf             # with FDF (PDF forms) module           (BR: proprietary lib)
20 %bcond_with     hardening       # build with hardening patch applied (http://www.hardened-php.net/)
21 %bcond_with     interbase_inst  # use InterBase install., not Firebird  (BR: proprietary libs)
22 %bcond_with     oci8            # with Oracle oci8 extension module     (BR: proprietary libs)
23 %bcond_without  curl            # without CURL extension module
24 %bcond_without  imap            # without IMAP extension module
25 %bcond_with     interbase       # with InterBase extension module
26 %bcond_without  ldap            # without LDAP extension module
27 %bcond_without  mhash           # without mhash extension module
28 %bcond_without  ming            # without ming extension module
29 %bcond_without  mm              # without mm support for session storage
30 %bcond_without  mssql           # without MS SQL extension module
31 %bcond_without  mysqli          # without mysqli support (Requires mysql > 4.1)
32 %bcond_without  mime_magic      # without mime-magic module
33 %bcond_without  odbc            # without ODBC extension module
34 %bcond_without  openssl         # without OpenSSL support and OpenSSL extension (module)
35 %bcond_without  pcre            # without PCRE extension module
36 %bcond_without  pgsql           # without PostgreSQL extension module
37 %bcond_without  pspell          # without pspell extension module
38 %bcond_without  recode          # without recode extension module
39 %bcond_without  snmp            # without SNMP extension module
40 %bcond_without  sqlite          # without SQLite extension module
41 %bcond_without  sybase          # without Sybase extension module
42 %bcond_without  sybase_ct       # without Sybase-CT extension module
43 %bcond_without  tidy            # without Tidy extension module
44 %bcond_without  wddx            # without WDDX extension module
45 %bcond_without  xmlrpc          # without XML-RPC extension module
46 %bcond_without  apache1         # disable building apache 1.3.x module
47 %bcond_without  apache2         # disable building apache 2.x module
48 %bcond_without  fcgi            # disable building FCGI SAPI
49 %bcond_without  zts             # disable experimental-zts
50 %bcond_with             versioning      # build with experimental versioning (to load php4/php5 into same apache)
51
52 %define apxs1           /usr/sbin/apxs1
53 %define apxs2           /usr/sbin/apxs
54
55 # some problems with apache 2.x
56 %if %{with apache2}
57 %undefine       with_mm
58 %endif
59
60 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
61 %undefine       with_interbase
62 %endif
63
64 %if %{without apache1} && %{without apache2}
65 ERROR: You need to select at least one Apache SAPI to build shared modules.
66 %endif
67
68 %define _rel 0.2
69 Summary:        PHP: Hypertext Preprocessor
70 Summary(fr):    Le langage de script embarque-HTML PHP
71 Summary(pl):    Jêzyk skryptowy PHP
72 Summary(pt_BR): A linguagem de script PHP
73 Summary(ru):    PHP ÷ÅÒÓÉÉ 5 - ÑÚÙË ÐÒÅÐÒÏÃÅÓÓÉÒÏ×ÁÎÉÑ HTML-ÆÁÊÌÏ×, ×ÙÐÏÌÎÑÅÍÙÊ ÎÁ ÓÅÒ×ÅÒÅ
74 Summary(uk):    PHP ÷ÅÒÓ¦§ 5 - ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
75 Name:           php
76 Version:        5.2.0
77 Release:        %{_rel}%{?with_hardening:hardened}
78 Epoch:          4
79 License:        PHP
80 Group:          Libraries
81 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.bz2
82 # Source0-md5:  e6029fafcee029edcfa2ceed7a005333
83
84 Source2:        zend.gif
85 Source3:        %{name}-mod_%{name}.conf
86 Source4:        %{name}-cgi-fcgi.ini
87 Source5:        %{name}-cgi.ini
88 Source6:        %{name}-apache.ini
89 Source7:        %{name}-cli.ini
90 Source8:        http://www.hardened-php.net/hardening-patch-5.0.4-0.3.0.patch.gz
91 # Source8-md5:  47a742fa9fab2826ad10c13a2376111a
92 Patch0:         %{name}-shared.patch
93 Patch1:         %{name}-pldlogo.patch
94 Patch2:         %{name}-mail.patch
95 Patch3:         %{name}-link-libs.patch
96 Patch4:         %{name}-libpq_fs_h_path.patch
97 Patch6:         %{name}-build_modules.patch
98 Patch7:         %{name}-sapi-ini-file.patch
99 Patch8:         %{name}-no-metaccld.patch
100 Patch9:         %{name}-reflection.patch
101 Patch10:        %{name}-ini.patch
102 Patch11:        %{name}-acam.patch
103 Patch14:        %{name}-allow-db31.patch
104 Patch15:        %{name}-threads-acfix.patch
105 Patch16:        %{name}-tsrmlsfetchgcc2.patch
106 Patch17:        %{name}-no_pear_install.patch
107 Patch18:        %{name}-zlib.patch
108 Patch19:        %{name}-sybase-fix.patch
109 Patch20:        %{name}-readline.patch
110 Patch21:        %{name}-nohttpd.patch
111 Patch23:        %{name}-gd_imagerotate_enable.patch
112 Patch24:        %{name}-uint32_t.patch
113 Patch26:        %{name}-dba-link.patch
114 Patch30:        %{name}-hardening-fix.patch
115 Patch31:        %{name}-both-apxs.patch
116 Patch32:        %{name}-builddir.patch
117 Patch33:        %{name}-zlib-for-getimagesize.patch
118 Patch35:        %{name}-versioning.patch
119 Patch36:        %{name}-linkflags-clean.patch
120 Patch38:        %{name}-amd64.patch
121 URL:            http://www.php.net/
122 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:        Firebird-devel >= 1.0.2.908-2}}
123 %{?with_pspell:BuildRequires:   aspell-devel >= 2:0.50.0}
124 BuildRequires:  autoconf >= 2.53
125 BuildRequires:  automake >= 1.4d
126 BuildRequires:  bison
127 BuildRequires:  bzip2-devel
128 %{?with_curl:BuildRequires:     curl-devel >= 7.12.0}
129 BuildRequires:  cyrus-sasl-devel
130 %{!?with_db3:BuildRequires:     db-devel >= 4.0}
131 %{?with_db3:BuildRequires:      db3-devel >= 3.1}
132 BuildRequires:  elfutils-devel
133 %if %{with xmlrpc}
134 BuildRequires:  expat-devel
135 %endif
136 %{?with_fcgi:BuildRequires:     fcgi-devel}
137 %{?with_fdf:BuildRequires:      fdftk-devel}
138 BuildRequires:  flex
139 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
140 BuildRequires:  freetds-devel
141 %endif
142 BuildRequires:  freetype-devel >= 2.0
143 BuildRequires:  gd-devel >= 2.0.28-4
144 BuildRequires:  gdbm-devel
145 BuildRequires:  gmp-devel
146 %{?with_imap:BuildRequires:     imap-devel >= 1:2001-0.BETA.200107022325.2}
147 BuildRequires:  libjpeg-devel
148 BuildRequires:  libltdl-devel >= 1.4
149 BuildRequires:  libmcrypt-devel >= 2.4.4
150 BuildRequires:  libpng-devel >= 1.0.8
151 BuildRequires:  libtiff-devel
152 BuildRequires:  libtool >= 1.4.3
153 BuildRequires:  libwrap-devel
154 BuildRequires:  libxml2-devel >= 2.5.10
155 BuildRequires:  libxslt-devel >= 1.1.0
156 %{?with_mhash:BuildRequires:    mhash-devel}
157 %{?with_ming:BuildRequires:     ming-devel >= 0.2a-11}
158 %{?with_mm:BuildRequires:       mm-devel >= 1.3.0}
159 BuildRequires:  mysql-devel >= 4.0.0
160 %{?with_mysqli:BuildRequires:   mysql-devel >= 4.1.0}
161 BuildRequires:  ncurses-ext-devel
162 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
163 %if %{with openssl} || %{with ldap}
164 BuildRequires:  openssl-devel >= 0.9.7d
165 %endif
166 %{?with_snmp:BuildRequires:     net-snmp-devel >= 5.0.7}
167 BuildRequires:  pam-devel
168 %{?with_pcre:BuildRequires:     pcre-devel >= 6.6}
169 %{?with_pgsql:BuildRequires:    postgresql-backend-devel >= 7.2}
170 %{?with_pgsql:BuildRequires:    postgresql-devel}
171 BuildRequires:  readline-devel
172 %{?with_recode:BuildRequires:   recode-devel >= 3.5d-3}
173 BuildRequires:  rpm-build >= 4.4.0
174 BuildRequires:  rpmbuild(macros) >= 1.238
175 %{?with_sqlite:BuildRequires:   sqlite-devel}
176 %{?with_sqlite:BuildRequires:   sqlite3-devel}
177 BuildRequires:  t1lib-devel
178 %{?with_tidy:BuildRequires:     tidy-devel}
179 %{?with_odbc:BuildRequires:     unixODBC-devel}
180 %{?with_xmlrpc:BuildRequires:   xmlrpc-epi-devel}
181 BuildRequires:  zlib-devel >= 1.0.9
182 %if %{with apache1}
183 BuildRequires:  apache1-devel
184 %endif
185 %if %{with apache2}
186 BuildRequires:  apache-devel >= 2.0.52-2
187 BuildRequires:  apr-devel >= 1:1.0.0
188 BuildRequires:  apr-util-devel >= 1:1.0.0
189 %endif
190 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
191
192 %define         _sysconfdir     /etc/php
193 %define         extensionsdir   %{_libdir}/php
194
195 # must be in sync with source. extra check ensuring that it is so is done in %%build
196 %define         php_api_version         20041225
197 %define         zend_module_api         20060613
198 %define         zend_extension_api      220060519
199 %define         zend_zts                        %{!?with_zts:0}%{?with_zts:1}
200 %define         php_debug                       %{!?debug:0}%{?debug:1}
201
202 %description
203 PHP is an HTML-embedded scripting language. PHP attempts to make it
204 easy for developers to write dynamically generated web pages. PHP also
205 offers built-in database integration for several commercial and
206 non-commercial database management systems, so writing a
207 database-enabled web page with PHP is fairly simple. The most common
208 use of PHP coding is probably as a replacement for CGI scripts. The
209 mod_php module enables the Apache web server to understand and process
210 the embedded PHP language in web pages. This package contains php
211 version %{version}. If you use applications which specifically rely on
212 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
213 module contained in the phpfi package. If you're just starting with
214 PHP, you should install this package. You'll also need to install the
215 Apache web server.
216
217 %description -l fr
218 PHP est un langage de script embarque dans le HTM. PHP essaye de
219 rendre simple aux developpeurs d'ecrire des pages web generees
220 dynamiquement. PHP incorpore egalement une integration avec plusieurs
221 systemes de gestion de bases de donnees commerciaux et
222 non-connerciaux, qui rent facile la creation de pages web liees avec
223 des bases de donnees. L'utilisation la plus commune de PHP est
224 probablement en remplacement de scripts CGI. Le module mod_php permet
225 au serveur web apache de comprendre et de traiter le langage PHP
226 integre dans des pages web. Ce package contient php version
227 %{version}. Si vous utilisez des applications qui utilisent
228 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
229 dans le package mod_php. Si vous debutez avec PHP, vous devriez
230 installer ce package. Vous aurez egalement besoin dinstaller le
231 serveur web Apache.
232
233 %description -l pl
234 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
235 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
236 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
237 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
238 zosta³a z jêzyków: C, Java i Perl.
239
240 %description -l pt_BR
241 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
242 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
243 com algumas características únicas, específicas ao PHP. O objetivo da
244 linguagem é permitir que desenvolvedores web escrevam páginas
245 dinamicamente geradas de forma rápida.
246
247 %description -l ru
248 PHP - ÜÔÏ ÑÚÙË ÎÁÐÉÓÁÎÉÑ ÓËÒÉÐÔÏ×, ×ÓÔÒÁÉ×ÁÅÍÙÈ × HTML-ËÏÄ. PHP
249 ÐÒÅÄÌÁÇÁÅÔ ÉÎÔÅÒÇÒÁÃÉÀ Ó ÍÎÏÖÅÓÔ×ÏÍ óõâä, ÐÏÜÔÏÍÕ ÎÁÐÉÓÁÎÉÅ ÓËÒÉÐÔÏ×
250 ÄÌÑ ÒÁÂÏÔÙ Ó ÂÁÚÁÍÉ ÄÁÎÎÙÈ ÏÔÎÏÓÉÔÅÌØÎÏ ÐÒÏÓÔÏ. îÁÉÂÏÌÅÅ ÐÏÐÕÌÑÒÎÏÅ
251 ÉÓÐÏÌØÚÏ×ÁÎÉÅ PHP - ÚÁÍÅÎÁ ÄÌÑ CGI ÓËÒÉÐÔÏ×.
252
253 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÁÍÏÄÏÓÔÁÔÏÞÎÕÀ (CGI) ×ÅÒÓÉÀ ÉÎÔÅÒÐÒÅÔÁÔÏÒÁ ÑÚÙËÁ.
254 ÷Ù ÄÏÌÖÎÙ ÔÁËÖÅ ÕÓÔÁÎÏ×ÉÔØ ÐÁËÅÔ %{name}-common. åÓÌÉ ×ÁÍ ÎÕÖÅÎ
255 ÉÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ËÁÞÅÓÔ×Å ÍÏÄÕÌÑ apache, ÕÓÔÁÎÏ×ÉÔÅ ÐÁËÅÔ
256 apache-php.
257
258 %description -l uk
259 PHP - ÃÅ ÍÏ×Á ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐÔ¦×, ÝÏ ×ÂÕÄÏ×ÕÀÔØÓÑ × HTML-ËÏÄ. PHP
260 ÐÒÏÐÏÎÕ¤ ¦ÎÔÅÇÒÁæÀ Ú ÂÁÇÁÔØÍÁ óõâä, ÔÏÍÕ ÎÁÐÉÓÁÎÎÑ ÓËÒÉÐԦנÄÌÑ
261 ÒÏÂÏÔÉ Ú ÂÁÚÁÍÉ ÄÁÎÉÈ ¤ ÄÏ×Ï̦ ÐÒÏÓÔÉÍ. îÁʦÌØÛ ÐÏÐÕÌÑÒÎÅ
262 ×ÉËÏÒÉÓÔÁÎÎÑ PHP - ÚÁͦÎÁ ÄÌÑ CGI ÓËÒÉÐÔ¦×.
263
264 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÁÍÏÄÏÓÔÁÔÎÀ (CGI) ×ÅÒÓ¦À ¦ÎÔÅÒÐÒÅÔÁÔÏÒÁ ÍÏ×É. ÷É
265 ÍÁ¤ÔÅ ÔÁËÏÖ ×ÓÔÁÎÏ×ÉÔÉ ÐÁËÅÔ %{name}-common. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÅÎ
266 ¦ÎÔÅÒÐÒÅÔÁÔÏÒ PHP × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache, ×ÓÔÁÎÏצÔØ ÐÁËÅÔ apache-php.
267
268 %package -n apache1-mod_php
269 Summary:        PHP DSO module for apache 1.3.x
270 Summary(pl):    Modu³ DSO (Dynamic Shared Object) php dla apache 1.3.x
271 Group:          Development/Languages/PHP
272 Requires(triggerpostun):        sed >= 4.0
273 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
274 Requires:       apache1(EAPI) >= 1.3.33-2
275 Requires:       apache1-mod_mime
276 Provides:       php = %{epoch}:%{version}-%{release}
277 Obsoletes:      apache-mod_php < 1:4.1.1
278 Obsoletes:      phpfi
279
280 %description -n apache1-mod_php
281 PHP as DSO module for apache 1.3.x.
282
283 %description -n apache1-mod_php -l pl
284 php jako modu³ DSO (Dynamic Shared Object) dla apache 1.3.x.
285
286 %package -n apache-mod_php
287 Summary:        PHP DSO module for apache 2.x
288 Summary(pl):    Modu³ DSO (Dynamic Shared Object) php dla apache 2.x
289 Group:          Development/Languages/PHP
290 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
291 Requires:       apache(modules-api) = %{apache_modules_api}
292 Requires:       apache-mod_mime
293 Provides:       php = %{epoch}:%{version}-%{release}
294 Obsoletes:      phpfi
295
296 %description -n apache-mod_php
297 PHP as DSO module for apache 2.x.
298
299 %description -n apache-mod_php -l pl
300 php jako modu³ DSO (Dynamic Shared Object) dla apache 2.x.
301
302 %package fcgi
303 Summary:        php as FastCGI program
304 Summary(pl):    php jako program FastCGI
305 Group:          Development/Languages/PHP
306 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
307 Provides:       php = %{epoch}:%{version}-%{release}
308
309 %description fcgi
310 php as FastCGI program.
311
312 %description fcgi -l pl
313 php jako program FastCGI.
314
315 %package cgi
316 Summary:        php as CGI program
317 Summary(pl):    php jako program CGI
318 Group:          Development/Languages/PHP
319 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
320
321 %description cgi
322 php as CGI program.
323
324 %description cgi -l pl
325 php jako program CGI.
326
327 %package cli
328 Summary:        php as CLI interpreter
329 Summary(pl):    php jako interpreter dzia³aj±cy z linii poleceñ
330 Group:          Development/Languages/PHP
331 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
332
333 %description cli
334 php as CLI interpreter.
335
336 %description cli -l pl
337 php jako interpreter dzia³aj±cy z linii poleceñ.
338
339 %package program
340 Summary:        /usr/bin/php symlink
341 Summary(pl):    Dowi±zanie symboliczne /usr/bin/php
342 Group:          Development/Languages/PHP
343 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
344 Obsoletes:      /usr/bin/php
345
346 %description program
347 Package providing /usr/bin/php symlink to PHP CLI.
348
349 %description program -l pl
350 Pakiet dostarczaj±cy dowi±zanie symboliczne /usr/bin/php do PHP CLI.
351
352 %package common
353 Summary:        Common files needed by both apache module and CGI
354 Summary(pl):    Wspólne pliki dla modu³u apache'a i programu CGI
355 Summary(ru):    òÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ php
356 Summary(uk):    â¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ ×ÉËÏÒÉÓÔÁÎÎÑ ÄÌÑ php
357 Group:          Libraries
358 # because of dlclose() bugs in glibc <= 2.3.4 causing SEGVs on exit
359 Requires:       glibc >= 6:2.3.5
360 Requires:       php-dirs
361 Provides:       %{name}-libxml = %{epoch}:%{version}-%{release}
362 Provides:       %{name}-overload = %{epoch}:%{version}-%{release}
363 Provides:       %{name}-session = %{epoch}:%{version}-%{release}
364 Provides:       %{name}-simplexml = %{epoch}:%{version}-%{release}
365 Provides:       %{name}-spl = %{epoch}:%{version}-%{release}
366 Provides:       %{name}-standard = %{epoch}:%{version}-%{release}
367 %{?with_pcre:Provides:  %{name}-pcre = %{epoch}:%{version}-%{release}}
368 Provides:       php(modules_api) = %{php_api_version}
369 Provides:       php(zend_extension_api) = %{zend_extension_api}
370 Provides:       php(zend_module_api) = %{zend_module_api}
371 Provides:       php5(debug) = %{php_debug}
372 Provides:       php5(thread-safety) = %{zend_zts}
373 Obsoletes:      php-pecl-domxml
374 Obsoletes:      php-session < 3:4.2.1-2
375 Obsoletes:      php-pcre < 4:5.2.0
376 # for the posttrans scriptlet, conflicts because in vserver enviroinment rpm package is not installed.
377 Conflicts:      rpm < 4.4.2-0.2
378
379 %description common
380 Common files needed by both apache module and CGI.
381
382 %description common -l pl
383 Wspólne pliki dla modu³u apacha i programu CGI.
384
385 %description common -l ru
386 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÏÂÝÉÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÎÙÈ ×ÁÒÉÁÎÔÏ× ÒÅÁÌÉÚÁÃÉÉ PHP
387 (ÓÁÍÏÄÏÓÔÁÔÏÞÎÏÊ É × ËÁÞÅÓÔ×Å ÍÏÄÕÌÑ apache).
388
389 %description common -l uk
390 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓЦÌØΦ ÆÁÊÌÉ ÄÌÑ Ò¦ÚÎÉÈ ×ÁÒ¦ÁÎԦנÒÅÁ̦ÚÁ槠PHP
391 (ÓÁÍÏÄÏÓÔÁÔÎØϧ ÔÁ × ÑËÏÓÔ¦ ÍÏÄÕÌÑ apache).
392
393 %package devel
394 Summary:        Files for PHP modules development
395 Summary(pl):    Pliki do kompilacji modu³ów PHP
396 Summary(pt_BR): Arquivos de desenvolvimento para PHP
397 Summary(ru):    ðÁËÅÔ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÒÁÓÛÉÒÅÎÉÊ PHP
398 Summary(uk):    ðÁËÅÔ ÒÏÚÒÏÂËÉ ÄÌÑ ÐÏÂÕÄÏ×É ÒÏÚÛÉÒÅÎØ PHP
399 Group:          Development/Languages/PHP
400 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
401 Requires:       autoconf
402 Requires:       automake
403 Requires:       libtool
404 Requires:       shtool
405 Obsoletes:      php-pear-devel
406 Obsoletes:      php4-devel
407
408 %description devel
409 The php-devel package lets you compile dynamic extensions to PHP.
410 Included here is the source for the PHP extensions. Instead of
411 recompiling the whole php binary to add support for, say, oracle,
412 install this package and use the new self-contained extensions
413 support. For more information, read the file
414 README.SELF-CONTAINED-EXTENSIONS.
415
416 %description devel -l pl
417 Ten pakiet zawiera pliki potrzebne do kompilacji modu³ów PHP. Zamiast
418 rekompilowaæ ca³e php aby dodaæ obs³ugê np. oracle, mo¿na przy u¿yciu
419 tego pakietu skompilowaæ samodzielne rozszerzenie. Wiêcej informacji o
420 samodzielnych rozszerzeniach mo¿na znale¼æ w pliku
421 README.SELF-CONTAINED-EXTENSIONS.
422
423 %description devel -l pt_BR
424 Este pacote contém arquivos usados no desenvolvimento de programas ou
425 módulos PHP.
426
427 %description devel -l ru
428 ðÁËÅÔ php-devel ÄÁÅÔ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÄÉÎÁÍÉÞÅÓËÉÅ ÒÁÓÛÉÒÅÎÉÑ
429 PHP. ðÁËÅÔ ×ËÌÀÞÁÅÔ ÉÓÈÏÄÎÙÊ ËÏÄ ÜÔÉÈ ÒÁÓÛÉÒÅÎÉÊ. ÷ÍÅÓÔÏ ÐÏ×ÔÏÒÎÏÊ
430 ËÏÍÐÉÌÑÃÉÉ ÂÉÎÁÒÎÏÇÏ ÆÁÊÌÁ php ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ, ÎÁÐÒÉÍÅÒ, ÐÏÄÄÅÒÖËÉ
431 oracle, ÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÐÁËÅÔ ÄÌÑ ËÏÍÐÉÌÉÒÏ×ÁÎÉÑ ÏÔÄÅÌØÎÙÈ ÒÁÓÛÉÒÅÎÉÊ.
432 ðÏÄÒÏÂÎÏÓÔÉ - × ÆÁÊÌÅ README.SELF-CONTAINED-EXTENSIONS.
433
434 %description devel -l uk
435 ðÁËÅÔ php-devel ÄÁ¤ ÍÏÖÌÉצÓÔØ ËÏÍЦÌÀ×ÁÔÉ ÄÉÎÁͦÞΦ ÒÏÚÛÉÒÅÎÎÑ PHP.
436 äÏ ÐÁËÅÔÕ ×ËÌÀÞÅÎÏ ×ÉȦÄÎÉÊ ËÏÄ ÄÌÑ ÒÏÚÛÉÒÅÎØ. úÁͦÓÔØ ÐÏ×ÔÏÒÎϧ
437 ËÏÍЦÌÑ槠¦ÎÁÒÎÏÇÏ ÆÁÊÌÕ php ÄÌÑ ÄÏÄÁÎÎÑ, ÎÁÐÒÉËÌÁÄ, Ð¦ÄÔÒÉÍËÉ
438 oracle, ×ÓÔÁÎÏצÔØ ÃÅÊ ÐÁËÅÔ ÄÌÑ ËÏÍЦÌÑ槠ÏËÒÅÍÉÈ ÒÏÚÛÉÒÅÎØ.
439 äÅÔÁÌØΦÛÁ ¦ÎÆÏÒÍÁæѠ- × ÆÁÊ̦ README.SELF-CONTAINED-EXTENSIONS.
440
441 %package bcmath
442 Summary:        bcmath extension module for PHP
443 Summary(pl):    Modu³ bcmath dla PHP
444 Group:          Libraries
445 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
446 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
447
448 %description bcmath
449 This is a dynamic shared object (DSO) for PHP that will add bc style
450 precision math functions support.
451
452 %description bcmath -l pl
453 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
454 matematycznych takich jak w programie bc.
455
456 %package bzip2
457 Summary:        Bzip2 extension module for PHP
458 Summary(pl):    Modu³ bzip2 dla PHP
459 Group:          Libraries
460 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
461 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
462
463 %description bzip2
464 This is a dynamic shared object (DSO) for PHP that will add bzip2
465 compression support to PHP.
466
467 %description bzip2 -l pl
468 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji bzip2.
469
470 %package calendar
471 Summary:        Calendar extension module for PHP
472 Summary(pl):    Modu³ funkcji kalendarza dla PHP
473 Group:          Libraries
474 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
475 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
476
477 %description calendar
478 This is a dynamic shared object (DSO) for PHP that will add calendar
479 support.
480
481 %description calendar -l pl
482 Modu³ PHP dodaj±cy wsparcie dla kalendarza.
483
484 %package ctype
485 Summary:        ctype extension module for PHP
486 Summary(pl):    Modu³ ctype dla PHP
487 Group:          Libraries
488 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
489 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
490
491 %description ctype
492 This is a dynamic shared object (DSO) for PHP that will add ctype
493 support.
494
495 %description ctype -l pl
496 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji ctype.
497
498 %package curl
499 Summary:        curl extension module for PHP
500 Summary(pl):    Modu³ curl dla PHP
501 Group:          Libraries
502 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
503 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
504
505 %description curl
506 This is a dynamic shared object (DSO) for PHP that will add curl
507 support.
508
509 %description curl -l pl
510 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
511
512 %package dba
513 Summary:        DBA extension module for PHP
514 Summary(pl):    Modu³ DBA dla PHP
515 Group:          Libraries
516 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
517 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
518
519 %description dba
520 This is a dynamic shared object (DSO) for PHP that will add flat-file
521 databases (DBA) support.
522
523 %description dba -l pl
524 Modu³ dla PHP dodaj±cy obs³ugê dla baz danych opartych na plikach
525 (DBA).
526
527 %package dbase
528 Summary:        DBase extension module for PHP
529 Summary(pl):    Modu³ DBase dla PHP
530 Group:          Libraries
531 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
532 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
533
534 %description dbase
535 This is a dynamic shared object (DSO) for PHP that will add DBase
536 support.
537
538 %description dbase -l pl
539 Modu³ PHP ze wsparciem dla DBase.
540
541 %package dom
542 Summary:        DOM extension module for PHP
543 Summary(pl):    Modu³ DOM dla PHP
544 Group:          Libraries
545 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
546 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
547 # it has some compatibility functions
548 Provides:       php-domxml = %{epoch}:%{version}-%{release}
549 Obsoletes:      php-domxml <= 3:4.3.8-1
550
551 %description dom
552 This is a dynamic shared object (DSO) for PHP that will add new DOM
553 support.
554
555 %description dom -l pl
556 Modu³ PHP dodaj±cy now± obs³ugê DOM.
557
558 %package exif
559 Summary:        exif extension module for PHP
560 Summary(pl):    Modu³ exif dla PHP
561 Group:          Libraries
562 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
563 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
564
565 %description exif
566 This is a dynamic shared object (DSO) for PHP that will add EXIF tags
567 support in image files.
568
569 %description exif -l pl
570 Modu³ PHP dodaj±cy obs³ugê znaczników EXIF w plikach obrazków.
571
572 %package fdf
573 Summary:        FDF extension module for PHP
574 Summary(pl):    Modu³ FDF dla PHP
575 Group:          Libraries
576 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
577 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
578
579 %description fdf
580 This PHP module adds support for PDF Forms through Adobe FDFTK
581 library.
582
583 %description fdf -l pl
584 Modu³ PHP dodaj±cy obs³ugê formularzy PDF poprzez bibliotekê Adobe
585 FDFTK.
586
587 %package ftp
588 Summary:        FTP extension module for PHP
589 Summary(pl):    Modu³ FTP dla PHP
590 Group:          Libraries
591 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
592 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
593
594 %description ftp
595 This is a dynamic shared object (DSO) for PHP that will add FTP
596 support.
597
598 %description ftp -l pl
599 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
600
601 %package gd
602 Summary:        GD extension module for PHP
603 Summary(pl):    Modu³ GD dla PHP
604 Group:          Libraries
605 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
606 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
607 Requires:       gd >= 2.0.28-4
608 Provides:       %{name}-gd(gif) = %{epoch}:%{version}-%{release}
609
610 %description gd
611 This is a dynamic shared object (DSO) for PHP that will add GD
612 support, allowing you to create and manipulate images with PHP.
613
614 %description gd -l pl
615 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD, pozwalaj±cej na
616 tworzenie i obróbkê obrazków.
617
618 %package gettext
619 Summary:        gettext extension module for PHP
620 Summary(pl):    Modu³ gettext dla PHP
621 Group:          Libraries
622 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
623 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
624
625 %description gettext
626 This is a dynamic shared object (DSO) for PHP that will add gettext
627 support.
628
629 %description gettext -l pl
630 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
631
632 %package gmp
633 Summary:        gmp extension module for PHP
634 Summary(pl):    Modu³ gmp dla PHP
635 Group:          Libraries
636 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
637 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
638
639 %description gmp
640 This is a dynamic shared object (DSO) for PHP that will add arbitrary
641 length number support with GNU MP library.
642
643 %description gmp -l pl
644 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki gmp do obliczeñ na
645 liczbach o dowolnej d³ugo¶ci.
646
647 %package iconv
648 Summary:        iconv extension module for PHP
649 Summary(pl):    Modu³ iconv dla PHP
650 Group:          Libraries
651 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
652 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
653
654 %description iconv
655 This is a dynamic shared object (DSO) for PHP that will add iconv
656 support.
657
658 %description iconv -l pl
659 Modu³ PHP dodaj±cy obs³ugê iconv.
660
661 %package imap
662 Summary:        IMAP extension module for PHP
663 Summary(pl):    Modu³ IMAP dla PHP
664 Summary(pt_BR): Um módulo para aplicações PHP que usam IMAP
665 Group:          Libraries
666 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
667 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
668
669 %description imap
670 This is a dynamic shared object (DSO) for PHP that will add IMAP
671 support.
672
673 %description imap -l pl
674 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
675
676 %description imap -l pt_BR
677 Um módulo para aplicações PHP que usam IMAP.
678
679 %package interbase
680 Summary:        InterBase/Firebird database module for PHP
681 Summary(pl):    Modu³ bazy danych InterBase/Firebird dla PHP
682 Group:          Libraries
683 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
684 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
685 %{?with_interbase_inst:Autoreq: false}
686
687 %description interbase
688 This is a dynamic shared object (DSO) for PHP that will add InterBase
689 and Firebird database support.
690
691 %description interbase -l pl
692 Modu³ PHP umo¿liwiaj±cy dostêp do baz danych InterBase i Firebird.
693
694 %package ldap
695 Summary:        LDAP extension module for PHP
696 Summary(pl):    Modu³ LDAP dla PHP
697 Summary(pt_BR): Um módulo para aplicações PHP que usam LDAP
698 Group:          Libraries
699 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
700 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
701
702 %description ldap
703 This is a dynamic shared object (DSO) for PHP that will add LDAP
704 support.
705
706 %description ldap -l pl
707 Modu³ PHP dodaj±cy obs³ugê LDAP.
708
709 %description ldap -l pt_BR
710 Um módulo para aplicações PHP que usam LDAP.
711
712 %package mbstring
713 Summary:        mbstring extension module for PHP
714 Summary(pl):    Modu³ mbstring dla PHP
715 Group:          Libraries
716 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
717 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
718
719 %description mbstring
720 This is a dynamic shared object (DSO) for PHP that will add multibyte
721 string support.
722
723 %description mbstring -l pl
724 Modu³ PHP dodaj±cy obs³ugê ci±gów znaków wielobajtowych.
725
726 %package mcrypt
727 Summary:        mcrypt extension module for PHP
728 Summary(pl):    Modu³ mcrypt dla PHP
729 Group:          Libraries
730 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
731 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
732
733 %description mcrypt
734 This is a dynamic shared object (DSO) for PHP that will add mcrypt
735 support.
736
737 %description mcrypt -l pl
738 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
739
740 %package mhash
741 Summary:        mhash extension module for PHP
742 Summary(pl):    Modu³ mhash dla PHP
743 Group:          Libraries
744 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
745 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
746
747 %description mhash
748 This is a dynamic shared object (DSO) for PHP that will add mhash
749 support.
750
751 %description mhash -l pl
752 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
753
754 %package mime_magic
755 Summary:        mime_magic extension module for PHP
756 Summary(pl):    Modu³ mime_magic dla PHP
757 Group:          Libraries
758 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
759 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
760 Requires:       /usr/share/file/magic.mime
761
762 %description mime_magic
763 This PHP module adds support for MIME type lookup via file magic
764 numbers using magic.mime database.
765
766 %description mime_magic -l pl
767 Modu³ PHP dodaj±cy obs³ugê wyszukiwania typów MIME wed³ug magicznych
768 znaczników plików z u¿yciem bazy danych magic.mime.
769
770 %package ming
771 Summary:        ming extension module for PHP
772 Summary(pl):    Modu³ ming dla PHP
773 Group:          Libraries
774 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
775 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
776
777 %description ming
778 This is a dynamic shared object (DSO) for PHP that will add ming
779 (Flash - .swf files) support.
780
781 %description ming -l pl
782 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
783 ming.
784
785 %package mssql
786 Summary:        MS SQL extension module for PHP
787 Summary(pl):    Modu³ MS SQL dla PHP
788 Group:          Libraries
789 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
790 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
791
792 %description mssql
793 This is a dynamic shared object (DSO) for PHP that will add MS SQL
794 databases support through FreeTDS library.
795
796 %description mssql -l pl
797 Modu³ PHP dodaj±cy obs³ugê baz danych MS SQL poprzez bibliotekê
798 FreeTDS.
799
800 %package mysql
801 Summary:        MySQL database module for PHP
802 Summary(pl):    Modu³ bazy danych MySQL dla PHP
803 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados MySQL
804 Group:          Libraries
805 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
806 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
807
808 %description mysql
809 This is a dynamic shared object (DSO) for PHP that will add MySQL
810 database support.
811
812 %description mysql -l pl
813 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
814
815 %description mysql -l pt_BR
816 Um módulo para aplicações PHP que usam bancos de dados MySQL.
817
818 %package mysqli
819 Summary:        MySQLi module for PHP
820 Summary(pl):    Modu³ MySQLi dla PHP
821 Group:          Libraries
822 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
823 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
824 Requires:       mysql-libs >= 4.1.0
825
826 %description mysqli
827 This is a dynamic shared object (DSO) for PHP that will add MySQLi
828 (Improved MySQL) support. The difference between it and mysql module
829 is that it provides access to functionality of MySQL 4.1 and above.
830
831 %description mysqli -l pl
832 Modu³ PHP umo¿liwiaj±cy udoskonalony dostêp do bazy danych MySQL.
833 Ró¿nic± miêdzy nim a modu³em mysql jest dostêp do funkcjonalno¶ci
834 MySQL w wersji 4.1 i nowszych.
835
836 %package ncurses
837 Summary:        ncurses module for PHP
838 Summary(pl):    Modu³ ncurses dla PHP
839 Group:          Libraries
840 Requires(post,preun):   %{name}-cli = %{epoch}:%{version}-%{release}
841 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
842
843 %description ncurses
844 This PHP module adds support for ncurses functions (only for cli and
845 cgi SAPIs).
846
847 %description ncurses -l pl
848 Modu³ PHP dodaj±cy obs³ugê funkcji ncurses (tylko do SAPI cli i cgi).
849
850 %package oci8
851 Summary:        Oracle 8+ database module for PHP
852 Summary(pl):    Modu³ bazy danych Oracle 8+ dla PHP
853 Group:          Libraries
854 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
855 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
856 Autoreq:        false
857
858 %description oci8
859 This is a dynamic shared object (DSO) for PHP that will add Oracle 7,
860 8, 9 and 10 database support through Oracle8 Call-Interface (OCI8).
861
862 %description oci8 -l pl
863 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7, 8, 9 i 10
864 poprzez interfejs Oracle8 Call-Interface (OCI8).
865
866 %package odbc
867 Summary:        ODBC extension module for PHP
868 Summary(pl):    Modu³ ODBC dla PHP
869 Summary(pt_BR): Um módulo para aplicações PHP que usam bases de dados ODBC
870 Group:          Libraries
871 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
872 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
873 Requires:       unixODBC >= 2.1.1-3
874
875 %description odbc
876 This is a dynamic shared object (DSO) for PHP that will add ODBC
877 support.
878
879 %description odbc -l pl
880 Modu³ PHP ze wsparciem dla ODBC.
881
882 %description odbc -l pt_BR
883 Um módulo para aplicações PHP que usam ODBC.
884
885 %package openssl
886 Summary:        OpenSSL extension module for PHP
887 Summary(pl):    Modu³ OpenSSL dla PHP
888 Group:          Libraries
889 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
890 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
891
892 %description openssl
893 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
894 support.
895
896 Warning: this is an experimental module.
897
898 %description openssl -l pl
899 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki OpenSSL.
900
901 Uwaga: to jest modu³ eksperymentalny.
902
903 %package pcntl
904 Summary:        Process Control extension module for PHP
905 Summary(pl):    Modu³ Process Control dla PHP
906 Group:          Libraries
907 Requires(post,preun):   %{name}-program = %{epoch}:%{version}-%{release}
908 Requires:       %{name}-program = %{epoch}:%{version}-%{release}
909
910 %description pcntl
911 This is a dynamic shared object (DSO) for PHP that will add process
912 spawning and control support. It supports functions like fork(),
913 waitpid(), signal() etc.
914
915 Warning: this is an experimental module. Also, don't use it in
916 webserver environment!
917
918 %description pcntl -l pl
919 Modu³ PHP umo¿liwiaj±cy tworzenie nowych procesów i kontrolê nad nimi.
920 Obs³uguje funkcje takie jak fork(), waitpid(), signal() i podobne.
921
922 Uwaga: to jest modu³ eksperymentalny. Ponadto nie jest przeznaczony do
923 u¿ywania z serwerem WWW - nie próbuj tego!
924
925 %package pdo
926 Summary:        PHP Data Objects (PDO)
927 Summary(pl):    Obs³uga PHP Data Objects (PDO)
928 Group:          Libraries
929 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
930 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
931 Obsoletes:      php-pecl-PDO
932
933 %description pdo
934 This is a dynamic shared object (DSO) for PHP that will add PDO
935 support.
936
937 %description pdo -l pl
938 Modu³ PHP dodaj±cy obs³ugê PDO (PHP Data Objects).
939
940 %package pdo-dblib
941 Summary:        PHP Data Objects (PDO) FreeTDS support
942 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± FreeTDS
943 Group:          Libraries
944 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
945 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
946 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
947
948 %description pdo-dblib
949 This is a dynamic shared object (DSO) for PHP that will add PDO
950 FreeTDS support.
951
952 %description pdo-dblib -l pl
953 Modu³ dla PHP dodaj±cy obs³ugê baz danych FreeTDS za po¶rednictwem
954 interfejsu PDO.
955
956 %package pdo-firebird
957 Summary:        PHP Data Objects (PDO) Firebird support
958 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± Firebirda
959 Group:          Libraries
960 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
961 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
962 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
963 Obsoletes:      php-pecl-PDO_FIREBIRD
964
965 %description pdo-firebird
966 This is a dynamic shared object (DSO) for PHP that will add PDO
967 Firebird support.
968
969 %description pdo-firebird -l pl
970 Modu³ dla PHP dodaj±cy obs³ugê baz danych Firebird za po¶rednictwem
971 interfejsu PDO.
972
973 %package pdo-mysql
974 Summary:        PHP Data Objects (PDO) MySQL support
975 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± MySQL-a
976 Group:          Libraries
977 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
978 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
979 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
980 Obsoletes:      php-pecl-PDO_MYSQL
981
982 %description pdo-mysql
983 This is a dynamic shared object (DSO) for PHP that will add PDO MySQL
984 support.
985
986 %description pdo-mysql -l pl
987 Modu³ dla PHP dodaj±cy obs³ugê baz danych MySQL za po¶rednictwem
988 interfejsu PDO.
989
990 %package pdo-oci
991 Summary:        PHP Data Objects (PDO) Oracle support
992 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± Oracle'a
993 Group:          Libraries
994 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
995 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
996 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
997 Obsoletes:      php-pecl-PDO_OCI
998
999 %description pdo-oci
1000 This is a dynamic shared object (DSO) for PHP that will add PDO Oracle
1001 support.
1002
1003 %description pdo-oci -l pl
1004 Modu³ dla PHP dodaj±cy obs³ugê baz danych Oracle za po¶rednictwem
1005 interfejsu PDO.
1006
1007 %package pdo-odbc
1008 Summary:        PHP Data Objects (PDO) ODBC support
1009 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± ODBC
1010 Group:          Libraries
1011 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1012 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1013 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1014 Obsoletes:      php-pecl-PDO_ODBC
1015
1016 %description pdo-odbc
1017 This is a dynamic shared object (DSO) for PHP that will add PDO ODBC
1018 support.
1019
1020 %description pdo-odbc -l pl
1021 Modu³ dla PHP dodaj±cy obs³ugê baz danych ODBC za po¶rednictwem
1022 interfejsu PDO.
1023
1024 %package pdo-pgsql
1025 Summary:        PHP Data Objects (PDO) PostgreSQL support
1026 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± PostgreSQL-a
1027 Group:          Libraries
1028 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1029 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1030 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1031 Obsoletes:      php-pecl-PDO_PGSQL
1032
1033 %description pdo-pgsql
1034 This is a dynamic shared object (DSO) for PHP that will add PDO
1035 PostgreSQL support.
1036
1037 %description pdo-pgsql -l pl
1038 Modu³ dla PHP dodaj±cy obs³ugê baz danych PostgreSQL za po¶rednictwem
1039 interfejsu PDO.
1040
1041 %package pdo-sqlite
1042 Summary:        PHP Data Objects (PDO) SQLite support
1043 Summary(pl):    Modu³ PHP Data Objects (PDO) z obs³ug± SQLite
1044 Group:          Libraries
1045 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1046 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1047 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1048 Obsoletes:      php-pecl-PDO_SQLITE
1049
1050 %description pdo-sqlite
1051 This is a dynamic shared object (DSO) for PHP that will add PDO SQLite
1052 support.
1053
1054 %description pdo-sqlite -l pl
1055 Modu³ dla PHP dodaj±cy obs³ugê baz danych SQLite za po¶rednictwem
1056 interfejsu PDO.
1057
1058 %package pgsql
1059 Summary:        PostgreSQL database module for PHP
1060 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP
1061 Group:          Libraries
1062 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1063 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1064
1065 %description pgsql
1066 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1067 database support.
1068
1069 %description pgsql -l pl
1070 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
1071
1072 %description pgsql -l pt_BR
1073 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1074
1075 %package posix
1076 Summary:        POSIX extension module for PHP
1077 Summary(pl):    Modu³ POSIX dla PHP
1078 Group:          Libraries
1079 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1080 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1081
1082 %description posix
1083 This is a dynamic shared object (DSO) for PHP that will add POSIX
1084 functions support to PHP.
1085
1086 %description posix -l pl
1087 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
1088
1089 %package pspell
1090 Summary:        pspell extension module for PHP
1091 Summary(pl):    Modu³ pspell dla PHP
1092 Group:          Libraries
1093 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1094 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1095
1096 %description pspell
1097 This is a dynamic shared object (DSO) for PHP that will add pspell
1098 support to PHP. It allows to check the spelling of a word and offer
1099 suggestions.
1100
1101 %description pspell -l pl
1102 Modu³ PHP umo¿liwiaj±cy korzystanie z pspella. Pozwala on na
1103 sprawdzanie pisowni s³owa i sugerowanie poprawek.
1104
1105 %package readline
1106 Summary:        readline extension module for PHP
1107 Summary(pl):    Modu³ readline dla PHP
1108 Group:          Libraries
1109 Requires(post,preun):   %{name}-cli = %{epoch}:%{version}-%{release}
1110 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1111
1112 %description readline
1113 This PHP module adds support for readline functions (only for cli and
1114 cgi SAPIs).
1115
1116 %description readline -l pl
1117 Modu³ PHP dodaj±cy obs³ugê funkcji readline (tylko do SAPI cli i cgi).
1118
1119 %package recode
1120 Summary:        recode extension module for PHP
1121 Summary(pl):    Modu³ recode dla PHP
1122 Group:          Libraries
1123 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1124 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1125 Requires:       recode >= 3.5d-3
1126
1127 %description recode
1128 This is a dynamic shared object (DSO) for PHP that will add recode
1129 support.
1130
1131 %description recode -l pl
1132 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
1133 bibliotekê recode).
1134
1135 %package session
1136 Summary:        session extension module for PHP
1137 Summary(pl):    Modu³ session dla PHP
1138 Group:          Libraries
1139 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1140 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1141
1142 %description session
1143 This is a dynamic shared object (DSO) for PHP that will add session
1144 support.
1145
1146 %description session -l pl
1147 Modu³ PHP dodaj±cy obs³ugê sesji.
1148
1149 %package shmop
1150 Summary:        Shared Memory Operations extension module for PHP
1151 Summary(pl):    Modu³ shmop dla PHP
1152 Group:          Libraries
1153 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1154 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1155
1156 %description shmop
1157 This is a dynamic shared object (DSO) for PHP that will add Shared
1158 Memory Operations support.
1159
1160 Warning: this is an experimental module.
1161
1162 %description shmop -l pl
1163 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
1164
1165 Uwaga: to jest modu³ eksperymentalny.
1166
1167 %package simplexml
1168 Summary:        Simple XML extension module for PHP
1169 Summary(pl):    Modu³ prostego rozszerzenia XML dla PHP
1170 Group:          Libraries
1171 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1172 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1173
1174 %description simplexml
1175 This is a dynamic shared object (DSO) for PHP that will add Simple XML
1176 support.
1177
1178 %description simplexml -l pl
1179 Modu³ PHP dodaj±cy obs³ugê prostego XML-a.
1180
1181 %package snmp
1182 Summary:        SNMP extension module for PHP
1183 Summary(pl):    Modu³ SNMP dla PHP
1184 Group:          Libraries
1185 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1186 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1187 Requires:       %{name}-sockets = %{epoch}:%{version}-%{release}
1188
1189 %description snmp
1190 This is a dynamic shared object (DSO) for PHP that will add SNMP
1191 support.
1192
1193 %description snmp -l pl
1194 Modu³ PHP dodaj±cy obs³ugê SNMP.
1195
1196 %package soap
1197 Summary:        soap extension module for PHP
1198 Summary(pl):    Modu³ soap dla PHP
1199 Group:          Libraries
1200 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1201 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1202
1203 %description soap
1204 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1205 support.
1206
1207 %description soap -l pl
1208 Modu³ PHP dodaj±cy obs³ugê SOAP/WSDL.
1209
1210 %package sockets
1211 Summary:        sockets extension module for PHP
1212 Summary(pl):    Modu³ socket dla PHP
1213 Group:          Libraries
1214 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1215 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1216
1217 %description sockets
1218 This is a dynamic shared object (DSO) for PHP that will add sockets
1219 support.
1220
1221 Warning: this is an experimental module.
1222
1223 %description sockets -l pl
1224 Modu³ PHP dodaj±cy obs³ugê gniazdek.
1225
1226 Uwaga: to jest modu³ eksperymentalny.
1227
1228 %package sqlite
1229 Summary:        SQLite extension module for PHP
1230 Summary(pl):    Modu³ SQLite dla PHP
1231 Group:          Libraries
1232 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1233 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1234 Requires:       %{name}-pdo = %{epoch}:%{version}-%{release}
1235
1236 %description sqlite
1237 SQLite is a C library that implements an embeddable SQL database
1238 engine. Programs that link with the SQLite library can have SQL
1239 database access without running a separate RDBMS process.
1240
1241 SQLite is not a client library used to connect to a big database
1242 server. SQLite is the server. The SQLite library reads and writes
1243 directly to and from the database files on disk.
1244
1245 %description sqlite -l pl
1246 SQLite jest napisan± w C bibliotek± implementuj±c± osadzalny silnik
1247 bazodanowy SQL. Program linkuj±cy siê z bibliotek± SQLite mo¿e mieæ
1248 dostêp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu
1249 RDBMS.
1250
1251 SQLite to nie klient baz danych - biblioteka nie ³±czy siê z serwerami
1252 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i
1253 zapisuje dane bezpo¶rednio z/do plików baz danych znajduj±cych siê na
1254 dysku.
1255
1256 %package sybase
1257 Summary:        Sybase DB extension module for PHP
1258 Summary(pl):    Modu³ Sybase DB dla PHP
1259 Group:          Libraries
1260 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1261 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1262 Obsoletes:      php-sybase-ct
1263
1264 %description sybase
1265 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1266 MS SQL databases support through SYBDB library. Currently Sybase
1267 module is not maintained. Using Sybase-CT module is recommended
1268 instead.
1269
1270 %description sybase -l pl
1271 Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
1272 bibliotekê SYBDB. W chwili obecnej modu³ Sybase nie jest wspierany.
1273 Zaleca siê u¿ywanie modu³u Sybase-CT.
1274
1275 %package sybase-ct
1276 Summary:        Sybase-CT extension module for PHP
1277 Summary(pl):    Modu³ Sybase-CT dla PHP
1278 Group:          Libraries
1279 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1280 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1281 Obsoletes:      php-sybase
1282
1283 %description sybase-ct
1284 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1285 MS SQL databases support through CT-lib.
1286
1287 %description sybase-ct -l pl
1288 Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
1289 CT-lib.
1290
1291 %package sysvmsg
1292 Summary:        SysV msg extension module for PHP
1293 Summary(pl):    Modu³ SysV msg dla PHP
1294 Group:          Libraries
1295 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1296 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1297
1298 %description sysvmsg
1299 This is a dynamic shared object (DSO) for PHP that will add SysV
1300 message queues support.
1301
1302 %description sysvmsg -l pl
1303 Modu³ PHP umo¿liwiaj±cy korzystanie z kolejek komunikatów SysV.
1304
1305 %package sysvsem
1306 Summary:        SysV sem extension module for PHP
1307 Summary(pl):    Modu³ SysV sem dla PHP
1308 Group:          Libraries
1309 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1310 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1311
1312 %description sysvsem
1313 This is a dynamic shared object (DSO) for PHP that will add SysV
1314 semaphores support.
1315
1316 %description sysvsem -l pl
1317 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
1318
1319 %package sysvshm
1320 Summary:        SysV shm extension module for PHP
1321 Summary(pl):    Modu³ SysV shm dla PHP
1322 Group:          Libraries
1323 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1324 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1325
1326 %description sysvshm
1327 This is a dynamic shared object (DSO) for PHP that will add SysV
1328 Shared Memory support.
1329
1330 %description sysvshm -l pl
1331 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
1332
1333 %package tidy
1334 Summary:        Tidy extension module for PHP
1335 Summary(pl):    Modu³ Tidy dla PHP
1336 Group:          Libraries
1337 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1338 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1339 Requires:       tidy
1340
1341 %description tidy
1342 This is a dynamic shared object (DSO) for PHP that will add Tidy
1343 support.
1344
1345 %description tidy -l pl
1346 Modu³ PHP umo¿liwiaj±cy korzystanie z tidy.
1347
1348 %package tokenizer
1349 Summary:        tokenizer extension module for PHP
1350 Summary(pl):    Modu³ rozszerzenia tokenizer dla PHP
1351 Group:          Libraries
1352 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1353 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1354
1355 %description tokenizer
1356 This is a dynamic shared object (DSO) for PHP that will add tokenizer
1357 support.
1358
1359 %description tokenizer -l pl
1360 Modu³ PHP dodaj±cy obs³ugê tokenizera do PHP.
1361
1362 %package wddx
1363 Summary:        wddx extension module for PHP
1364 Summary(pl):    Modu³ wddx dla PHP
1365 Group:          Libraries
1366 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1367 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1368 Requires:       %{name}-session = %{epoch}:%{version}-%{release}
1369 Requires:       %{name}-xml = %{epoch}:%{version}-%{release}
1370
1371 %description wddx
1372 This is a dynamic shared object (DSO) for PHP that will add wddx
1373 support.
1374
1375 %description wddx -l pl
1376 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
1377
1378 %package xml
1379 Summary:        XML extension module for PHP
1380 Summary(pl):    Modu³ XML dla PHP
1381 Group:          Libraries
1382 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1383 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1384
1385 %description xml
1386 This is a dynamic shared object (DSO) for PHP that will add XML
1387 support. This extension lets you create XML parsers and then define
1388 handlers for different XML events.
1389
1390 %description xml -l pl
1391 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
1392 zwi±zanych z tymi plikami. Pozwala on tworzyæ analizatory XML-a i
1393 nastêpnie definiowaæ procedury obs³ugi dla ró¿nych zdarzeñ XML.
1394
1395 %package xmlreader
1396 Summary:        XML Reader extension module for PHP
1397 Summary(pl):    Modu³ XML Reader dla PHP
1398 Group:          Libraries
1399 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1400 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1401 Requires:       %{name}-dom = %{epoch}:%{version}-%{release}
1402
1403 %description xmlreader
1404 This is a dynamic shared object (DSO) for PHP that will add XML Reader
1405 support. The XMLReader extension is an XML Pull parser. The reader
1406 acts as a cursor going forward on the document stream and stopping at
1407 each node on the way.
1408
1409 %description xmlreader -l pl
1410 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML w trybie Pull. Czytnik
1411 dzia³a jako kursor przechodz±cy przez strumieñ dokumentu i
1412 zatrzymuj±cy siê naka¿dym wê¼le po drodze.
1413
1414 %package xmlrpc
1415 Summary:        xmlrpc extension module for PHP
1416 Summary(pl):    Modu³ xmlrpc dla PHP
1417 Group:          Libraries
1418 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1419 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1420
1421 %description xmlrpc
1422 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1423 support.
1424
1425 Warning: this is an experimental module.
1426
1427 %description xmlrpc -l pl
1428 Modu³ PHP dodaj±cy obs³ugê XMLRPC.
1429
1430 Uwaga: to jest modu³ eksperymentalny.
1431
1432 %package xsl
1433 Summary:        xsl extension module for PHP
1434 Summary(pl):    Modu³ xsl dla PHP
1435 Group:          Libraries
1436 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1437 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1438 Requires:       libxslt >= 1.0.18
1439 # actually not true, functionality is similar, but API differs
1440 Obsoletes:      php-xslt <= 3:4.3.8-1
1441
1442 %description xsl
1443 This is a dynamic shared object (DSO) for PHP that will add new XSL
1444 support (using libxslt).
1445
1446 %description xsl -l pl
1447 Modu³ PHP dodaj±cy now± obs³ugê XSLT (przy u¿yciu libxslt).
1448
1449 %package zlib
1450 Summary:        Zlib extension module for PHP
1451 Summary(pl):    Modu³ zlib dla PHP
1452 Group:          Libraries
1453 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1454 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1455
1456 %description zlib
1457 This is a dynamic shared object (DSO) for PHP that will add zlib
1458 compression support to PHP.
1459
1460 %description zlib -l pl
1461 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji zlib.
1462
1463 %prep
1464 %setup -q
1465 %patch36 -p1
1466 %patch0 -p1
1467 %patch1 -p1
1468 %patch2 -p1
1469 %patch3 -p1
1470 %patch4 -p1
1471
1472 %patch6 -p1
1473 %patch7 -p1
1474 %patch8 -p1
1475 #%patch9 -p1 # TEST OR UPGRADE
1476 cp php.ini-dist php.ini
1477 %patch10 -p1
1478 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1479 # conditionally...
1480 %patch11 -p1
1481 %patch14 -p1
1482 %patch15 -p1
1483 %patch16 -p1
1484 %patch17 -p1
1485 %patch18 -p1
1486 %patch19 -p1
1487 %patch20 -p1
1488 %patch21 -p1
1489 #%patch23 -p1 # UPDATE?
1490 %patch24 -p1
1491 %patch26 -p1
1492
1493 %if %{with hardening}
1494 zcat %{SOURCE8} | patch -p1 || exit 1
1495 patch -p1 < %{PATCH30} || exit 1
1496 %endif
1497 %patch31 -p1
1498 %patch32 -p1
1499 %patch33 -p1
1500 %{?with_versioning:%patch35 -p1}
1501 %if "%{_lib}" == "lib64"
1502 %patch38 -p1
1503 %endif
1504
1505 # conflict seems to be resolved by recode patches
1506 rm -f ext/recode/config9.m4
1507
1508 # remove all bundled libraries not to link with them accidentally
1509 #rm -rf ext/sqlite/libsqlite
1510 #rm -rf ext/bcmath/libbcmath
1511 #rm -rf ext/date/lib
1512 #rm -rf ext/dba/libcdb
1513 #rm -rf ext/dba/libflatfile
1514 #rm -rf ext/dba/libinifile
1515 #rm -rf ext/gd/libgd
1516 #rm -rf ext/mbstring/libmbfl
1517 #rm -rf ext/mbstring/oniguruma
1518 rm -rf ext/pcre/pcrelib
1519 rm -rf ext/pdo_sqlite/sqlite
1520 #rm -rf ext/soap/interop
1521 rm -rf ext/xmlrpc/libxmlrpc
1522
1523 %build
1524 if API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h) && [ $API != %{php_api_version} ]; then
1525         echo "Set %%define php_api_version to $API and rerun."
1526         exit 1
1527 fi
1528
1529 if API=$(awk '/#define ZEND_MODULE_API_NO/{print $3}' Zend/zend_modules.h) && [ $API != %{zend_module_api} ]; then
1530         echo "Set %%define zend_module_api to $API and rerun."
1531         exit 1
1532 fi
1533
1534 if API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h) && [ $API != %{zend_extension_api} ]; then
1535         echo "Set %%define zend_extension_api to $API and rerun."
1536         exit 1
1537 fi
1538
1539 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
1540 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
1541         rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
1542         %{__libtoolize}
1543         %{__aclocal}
1544         ./buildconf --force
1545         touch _built-conf
1546 fi
1547 PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
1548
1549 sapis="
1550 %if %{with fcgi}
1551 fcgi
1552 %endif
1553 cgi cli
1554 %if %{with apache1}
1555 apxs1
1556 %endif
1557 %if %{with apache2}
1558 apxs2
1559 %endif
1560 "
1561 for sapi in $sapis; do
1562         [ -f Makefile.$sapi ] && continue # skip if already configured (for faster debugging purposes)
1563
1564         %configure \
1565         `
1566         case $sapi in
1567         cgi)
1568                 echo --enable-discard-path --enable-force-cgi-redirect
1569         ;;
1570         cli)
1571                 echo --disable-cgi
1572         ;;
1573         fcgi)
1574                 echo --enable-fastcgi --with-fastcgi=/usr --enable-force-cgi-redirect
1575         ;;
1576         apxs1)
1577                 ver=%(rpm -q --qf '%%{version}' apache1-apxs)
1578                 echo --with-apxs=%{apxs1} --with-apache-version=$ver
1579         ;;
1580         apxs2)
1581                 ver=%(rpm -q --qf '%%{version}' apache-apxs)
1582                 echo --with-apxs2=%{apxs2} --with-apache-version=$ver
1583         ;;
1584         esac
1585         ` \
1586 %if "%{!?configure_cache:0}%{?configure_cache}" == "0"
1587         --cache-file=config.cache \
1588 %endif
1589         --with-libdir=%{_lib} \
1590         --with-config-file-path=%{_sysconfdir} \
1591         --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
1592         --with-exec-dir=%{_bindir} \
1593         --%{!?debug:dis}%{?debug:en}able-debug \
1594         %{?with_zts:--enable-maintainer-zts} \
1595         --enable-inline-optimization \
1596         --enable-memory-limit \
1597         --enable-bcmath=shared \
1598         --enable-calendar=shared \
1599         --enable-ctype=shared \
1600         --enable-dba=shared \
1601         --with-inifile \
1602         --with-flatfile \
1603         --enable-dom=shared \
1604         --enable-exif=shared \
1605         --enable-ftp=shared \
1606         --enable-gd-native-ttf \
1607         --enable-gd-jus-conf \
1608         --enable-libxml \
1609         --enable-magic-quotes \
1610         --enable-mbstring=shared,all \
1611         --enable-mbregex \
1612         --enable-pcntl=shared \
1613         --enable-pdo=shared \
1614 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
1615         --with-pdo-dblib=shared \
1616 %endif
1617 %if %{with interbase} && %{without interbase_inst}
1618         --with-pdo-firebird=shared \
1619 %endif
1620         --with-pdo-mysql=shared \
1621         %{?with_oci8:--with-pdo-oci=shared} \
1622         %{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
1623         %{?with_pgsql:--with-pdo-pgsql=shared} \
1624         %{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
1625         --enable-posix=shared \
1626         --enable-reflection \
1627         --enable-session \
1628         --enable-shared \
1629         --enable-shmop=shared \
1630         --enable-simplexml \
1631         --enable-sysvmsg=shared \
1632         --enable-sysvsem=shared \
1633         --enable-sysvshm=shared \
1634         --enable-track-vars \
1635         --enable-trans-sid \
1636         --enable-safe-mode \
1637         --enable-soap=shared \
1638         --enable-sockets=shared \
1639         --enable-tokenizer=shared \
1640         --enable-ucd-snmp-hack \
1641         %{?with_wddx:--enable-wddx=shared} \
1642         --enable-xml=shared \
1643         --enable-xmlreader=shared \
1644         --with-bz2=shared \
1645         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1646         %{?with_db3:--with-db3}%{!?with_db3:--with-db4} \
1647         --enable-dbase=shared \
1648 %if %{with xmlrpc}
1649         --with-expat-dir=shared,/usr \
1650 %else
1651         --without-expat-dir \
1652 %endif
1653         %{?with_fdf:--with-fdftk=shared} \
1654         --with-iconv=shared \
1655         --with-freetype-dir=shared \
1656         --with-gettext=shared \
1657         --with-gd=shared,/usr \
1658         --with-gdbm \
1659         --with-gmp=shared \
1660         %{?with_imap:--with-imap=shared --with-imap-ssl} \
1661         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1662         --with-jpeg-dir=/usr \
1663         %{?with_ldap:--with-ldap=shared --with-ldap-sasl} \
1664         --with-mcrypt=shared \
1665         %{?with_mhash:--with-mhash=shared} \
1666         %{?with_mime_magic:--with-mime-magic=shared,/usr/share/file/magic.mime}%{!?with_mime_magic:--disable-mime-magic} \
1667         %{?with_ming:--with-ming=shared} \
1668         %{?with_mm:--with-mm} \
1669         %{?with_mssql:--with-mssql=shared} \
1670         --with-mysql=shared,/usr \
1671         --with-mysql-sock=/var/lib/mysql/mysql.sock \
1672         %{?with_mysqli:--with-mysqli=shared} \
1673         --with-ncurses=shared \
1674         %{?with_oci8:--with-oci8=shared} \
1675         %{?with_openssl:--with-openssl=shared} \
1676         --with-kerberos \
1677         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=/usr} \
1678         --with-pear=%{php_pear_dir} \
1679         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1680         --with-png-dir=/usr \
1681         %{?with_pspell:--with-pspell=shared} \
1682         --with-readline=shared \
1683         %{?with_recode:--with-recode=shared} \
1684         --with-regex=php \
1685         --without-sablot-js \
1686         %{?with_snmp:--with-snmp=shared} \
1687         %{?with_sybase:--with-sybase=shared,/usr} \
1688         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1689         %{?with_sqlite:--with-sqlite=shared,/usr --enable-sqlite-utf8} \
1690         --with-t1lib=shared \
1691         %{?with_tidy:--with-tidy=shared} \
1692         --with-tiff-dir=/usr \
1693         %{?with_odbc:--with-unixODBC=shared,/usr} \
1694         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
1695         --with-xsl=shared \
1696         --with-zlib=shared \
1697         --with-zlib-dir=shared,/usr
1698
1699         cp -f Makefile Makefile.$sapi
1700         cp -f main/php_config.h php_config.h.$sapi
1701 done
1702
1703 # must make this first, so modules can link against it.
1704 %{__make} libphp_common.la
1705
1706 %{__make} build-modules
1707
1708 # fix install paths, avoid evil rpaths
1709 #sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" libphp_common.la
1710
1711 %if %{with apache1}
1712 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache/libphp5.la -f Makefile.apxs1
1713 %endif
1714
1715 %if %{with apache2}
1716 %{__make} libtool-sapi LIBTOOL_SAPI=sapi/apache2handler/libphp5.la -f Makefile.apxs2
1717 %endif
1718
1719 # FCGI
1720 %if %{with fcgi}
1721 cp -af php_config.h.fcgi main/php_config.h
1722 %{__make} sapi/cgi/php -f Makefile.fcgi
1723 cp -r sapi/cgi sapi/fcgi
1724 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1725 %endif
1726
1727 # CGI
1728 cp -af php_config.h.cgi main/php_config.h
1729 %{__make} sapi/cgi/php -f Makefile.cgi
1730
1731 # CLI
1732 cp -af php_config.h.cli main/php_config.h
1733 %{__make} sapi/cli/php -f Makefile.cli
1734
1735 %install
1736 rm -rf $RPM_BUILD_ROOT
1737 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache{,1}},%{_sysconfdir}/{apache,cgi}} \
1738         $RPM_BUILD_ROOT/home/services/{httpd,apache}/icons \
1739         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1740         $RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/httpd.conf} \
1741         $RPM_BUILD_ROOT%{_mandir}/man1 \
1742
1743 # install the apache modules' files
1744 %{__make} install-headers install-build install-modules install-programs \
1745         INSTALL_ROOT=$RPM_BUILD_ROOT
1746
1747 # install apache1 DSO module
1748 %if %{with apache1}
1749 libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
1750 %endif
1751
1752 # install apache2 DSO module
1753 %if %{with apache2}
1754 libtool --silent --mode=install install sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
1755 %endif
1756
1757 libtool --silent --mode=install install libphp_common.la $RPM_BUILD_ROOT%{_libdir}
1758 # fix install paths, avoid evil rpaths
1759 sed -i -e "s|^libdir=.*|libdir='%{_libdir}'|" $RPM_BUILD_ROOT%{_libdir}/libphp_common.la
1760 # better solution?
1761 sed -i -e 's|libphp_common.la|$(libdir)/libphp_common.la|' $RPM_BUILD_ROOT%{_libdir}/php/build/acinclude.m4
1762
1763 # install CGI
1764 libtool --silent --mode=install install sapi/cgi/php $RPM_BUILD_ROOT%{_bindir}/php.cgi
1765
1766 # install FCGI
1767 %if %{with fcgi}
1768 libtool --silent --mode=install install sapi/fcgi/php $RPM_BUILD_ROOT%{_bindir}/php.fcgi
1769 %endif
1770
1771 # install CLI
1772 libtool --silent --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli
1773 install sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php.1
1774 echo ".so php.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.cli.1
1775
1776 # as of 5.0.5, phpextdist isn't installed by default
1777 install scripts/dev/phpextdist $RPM_BUILD_ROOT%{_bindir}
1778
1779 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
1780
1781 sed -e 's#%{_prefix}/lib/php#%{_libdir}/php#g' php.ini > $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1782 %if %{with fcgi}
1783 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi-fcgi.ini
1784 %endif
1785 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/php-cgi.ini
1786 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/php-cli.ini
1787
1788 %if %{with apache1}
1789 install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/apache/icons
1790 install %{SOURCE3} $RPM_BUILD_ROOT/etc/apache/conf.d/70_mod_php.conf
1791 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache.ini
1792 rm -f $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.la
1793 %endif
1794
1795 %if %{with apache2}
1796 install %{SOURCE2} php.gif $RPM_BUILD_ROOT/home/services/httpd/icons
1797 install %{SOURCE3} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
1798 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/php-apache2handler.ini
1799 rm -f $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.la
1800 %endif
1801
1802 cp -f Zend/LICENSE{,.Zend}
1803
1804 # Generate stub .ini files for each subpackage
1805 install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1806 for so in modules/*.so; do
1807         mod=$(basename $so .so)
1808         conf="%{_sysconfdir}/conf.d/${mod}.ini"
1809         # xml needs to be loaded before wddx
1810         [ "$mod" = "wddx" ] && conf="%{_sysconfdir}/conf.d/xml_${mod}.ini"
1811         cat > $RPM_BUILD_ROOT${conf} <<EOF
1812 ; Enable ${mod} extension module
1813 extension=${mod}.so
1814 EOF
1815 done
1816
1817 # per SAPI ini directories
1818 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cgi,cli,cgi-fcgi,apache,apache2handler}.d
1819
1820 # for CLI SAPI only
1821 mv $RPM_BUILD_ROOT%{_sysconfdir}/{conf.d/{ncurses,pcntl,readline}.ini,cli.d}
1822
1823 # use system automake and {lib,sh}tool
1824 ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_libdir}/php/build
1825 ln -snf %{_aclocaldir}/libtool.m4 $RPM_BUILD_ROOT%{_libdir}/php/build
1826 ln -snf %{_datadir}/libtool/ltmain.sh $RPM_BUILD_ROOT%{_libdir}/php/build
1827 ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
1828
1829 # as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
1830 # isn't installed by install-headers make target, we do it manually here.
1831 # this header file is required by e.g. filter PECL extension
1832 install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
1833
1834 %clean
1835 rm -rf $RPM_BUILD_ROOT
1836
1837 %post
1838 if [ "$1" = "1" ]; then
1839 %if %{with apache1}
1840         %service -q apache restart
1841 %endif
1842 %if %{with apache2}
1843         %service -q httpd restart
1844 %endif
1845 fi
1846
1847 %postun
1848 if [ "$1" = "0" ]; then
1849 %if %{with apache1}
1850         %service -q apache restart
1851 %endif
1852 %if %{with apache2}
1853         %service -q httpd restart
1854 %endif
1855 fi
1856
1857 %post -n apache1-mod_php
1858 if [ "$1" = "1" ]; then
1859         %service -q apache restart
1860 fi
1861
1862 %postun -n apache1-mod_php
1863 if [ "$1" = "0" ]; then
1864         %service -q apache restart
1865 fi
1866
1867 %post -n apache-mod_php
1868 if [ "$1" = "1" ]; then
1869         %service -q httpd restart
1870 fi
1871
1872 %postun -n apache-mod_php
1873 if [ "$1" = "0" ]; then
1874         %service -q httpd restart
1875 fi
1876
1877 # so tired of typing... so decided to create macros
1878 # macro called at extension post scriptlet
1879 %define extension_post \
1880 if [ "$1" = "1" ]; then \
1881         [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
1882         [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
1883 fi
1884
1885 # macro called at extension postun scriptlet
1886 %define extension_postun \
1887 if [ "$1" = "0" ]; then \
1888         [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
1889         [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
1890 fi
1891
1892 %post   common -p /sbin/ldconfig
1893 %postun common -p /sbin/ldconfig
1894
1895 %posttrans common
1896 # minimizing apache restarts logics. we restart webserver:
1897 #
1898 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1899 # 2. first install of extension (post: $1 = 1)
1900 # 2. uninstall of extension (postun: $1 == 0)
1901 #
1902 # the strict internal deps between extensions (and apache modules) and
1903 # common package are very important for all this to work.
1904
1905 # restart webserver at the end of transaction
1906 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
1907 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
1908
1909 %if %{with apache1}
1910 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
1911 sed -i -e '
1912         /^AddType application\/x-httpd-php \.php/s,^,#,
1913         /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
1914 ' /etc/apache/apache.conf
1915 %service -q apache restart
1916 %endif
1917
1918 %if %{with apache2}
1919 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
1920 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
1921 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
1922         cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
1923         mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
1924 fi
1925 %endif
1926
1927 %post bcmath
1928 %extension_post
1929
1930 %postun bcmath
1931 %extension_postun
1932
1933 %post bzip2
1934 %extension_post
1935
1936 %postun bzip2
1937 %extension_postun
1938
1939 %post calendar
1940 %extension_post
1941
1942 %postun calendar
1943 %extension_postun
1944
1945 %post ctype
1946 %extension_post
1947
1948 %postun ctype
1949 %extension_postun
1950
1951 %post curl
1952 %extension_post
1953
1954 %postun curl
1955 %extension_postun
1956
1957 %post dba
1958 %extension_post
1959
1960 %postun dba
1961 %extension_postun
1962
1963 %post dbase
1964 %extension_post
1965
1966 %postun dbase
1967 %extension_postun
1968
1969 %post dom
1970 %extension_post
1971
1972 %postun dom
1973 %extension_postun
1974
1975 %post exif
1976 %extension_post
1977
1978 %postun exif
1979 %extension_postun
1980
1981 %post fdf
1982 %extension_post
1983
1984 %postun fdf
1985 %extension_postun
1986
1987 %post ftp
1988 %extension_post
1989
1990 %postun ftp
1991 %extension_postun
1992
1993 %post gd
1994 %extension_post
1995
1996 %postun gd
1997 %extension_postun
1998
1999 %post gettext
2000 %extension_post
2001
2002 %postun gettext
2003 %extension_postun
2004
2005 %post gmp
2006 %extension_post
2007
2008 %postun gmp
2009 %extension_postun
2010
2011 %post iconv
2012 %extension_post
2013
2014 %postun iconv
2015 %extension_postun
2016
2017 %post imap
2018 %extension_post
2019
2020 %postun imap
2021 %extension_postun
2022
2023 %post interbase
2024 %extension_post
2025
2026 %postun interbase
2027 %extension_postun
2028
2029 %post ldap
2030 %extension_post
2031
2032 %postun ldap
2033 %extension_postun
2034
2035 %post mbstring
2036 %extension_post
2037
2038 %postun mbstring
2039 %extension_postun
2040
2041 %post mcrypt
2042 %extension_post
2043
2044 %postun mcrypt
2045 %extension_postun
2046
2047 %post mhash
2048 %extension_post
2049
2050 %postun mhash
2051 %extension_postun
2052
2053 %post mime_magic
2054 %extension_post
2055
2056 %postun mime_magic
2057 %extension_postun
2058
2059 %post ming
2060 %extension_post
2061
2062 %postun ming
2063 %extension_postun
2064
2065 %post mssql
2066 %extension_post
2067
2068 %postun mssql
2069 %extension_postun
2070
2071 %post mysql
2072 %extension_post
2073
2074 %postun mysql
2075 %extension_postun
2076
2077 %post mysqli
2078 %extension_post
2079
2080 %postun mysqli
2081 %extension_postun
2082
2083 %post oci8
2084 %extension_post
2085
2086 %postun oci8
2087 %extension_postun
2088
2089 %post odbc
2090 %extension_post
2091
2092 %postun odbc
2093 %extension_postun
2094
2095 %post openssl
2096 %extension_post
2097
2098 %postun openssl
2099 %extension_postun
2100
2101 %post pdo-dblib
2102 %extension_post
2103
2104 %postun pdo-dblib
2105 %extension_postun
2106
2107 %post pdo-firebird
2108 %extension_post
2109
2110 %postun pdo-firebird
2111 %extension_postun
2112
2113 %post pdo-mysql
2114 %extension_post
2115
2116 %postun pdo-mysql
2117 %extension_postun
2118
2119 %post pdo-odbc
2120 %extension_post
2121
2122 %postun pdo-odbc
2123 %extension_postun
2124
2125 %post pdo-pgsql
2126 %extension_post
2127
2128 %postun pdo-pgsql
2129 %extension_postun
2130
2131 %post pdo-sqlite
2132 %extension_post
2133
2134 %postun pdo-sqlite
2135 %extension_postun
2136
2137 %post pgsql
2138 %extension_post
2139
2140 %postun pgsql
2141 %extension_postun
2142
2143 %post posix
2144 %extension_post
2145
2146 %postun posix
2147 %extension_postun
2148
2149 %post pspell
2150 %extension_post
2151
2152 %postun pspell
2153 %extension_postun
2154
2155 %post recode
2156 %extension_post
2157
2158 %postun recode
2159 %extension_postun
2160
2161 %post session
2162 %extension_post
2163
2164 %postun session
2165 %extension_postun
2166
2167 %post shmop
2168 %extension_post
2169
2170 %postun shmop
2171 %extension_postun
2172
2173 %post snmp
2174 %extension_post
2175
2176 %postun snmp
2177 %extension_postun
2178
2179 %post soap
2180 %extension_post
2181
2182 %postun soap
2183 %extension_postun
2184
2185 %post sockets
2186 %extension_post
2187
2188 %postun sockets
2189 %extension_postun
2190
2191 %post sqlite
2192 %extension_post
2193
2194 %postun sqlite
2195 %extension_postun
2196
2197 %post sybase
2198 %extension_post
2199
2200 %postun sybase
2201 %extension_postun
2202
2203 %post sybase-ct
2204 %extension_post
2205
2206 %postun sybase-ct
2207 %extension_postun
2208
2209 %post sysvmsg
2210 %extension_post
2211
2212 %postun sysvmsg
2213 %extension_postun
2214
2215 %post sysvsem
2216 %extension_post
2217
2218 %postun sysvsem
2219 %extension_postun
2220
2221 %post sysvshm
2222 %extension_post
2223
2224 %postun sysvshm
2225 %extension_postun
2226
2227 %post tidy
2228 %extension_post
2229
2230 %postun tidy
2231 %extension_postun
2232
2233 %post tokenizer
2234 %extension_post
2235
2236 %postun tokenizer
2237 %extension_postun
2238
2239 %post wddx
2240 %extension_post
2241
2242 %postun wddx
2243 %extension_postun
2244
2245 %post xml
2246 %extension_post
2247
2248 %postun xml
2249 %extension_postun
2250
2251 %post xmlreader
2252 %extension_post
2253
2254 %postun xmlreader
2255 %extension_postun
2256
2257 %post xmlrpc
2258 %extension_post
2259
2260 %postun xmlrpc
2261 %extension_postun
2262
2263 %post xsl
2264 %extension_post
2265
2266 %postun xsl
2267 %extension_postun
2268
2269 %post zlib
2270 %extension_post
2271
2272 %postun zlib
2273 %extension_postun
2274
2275 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2276 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2277
2278 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2279 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2280
2281 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2282 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2283
2284 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2285 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2286
2287 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2288 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2289
2290 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2291 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2292
2293 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
2294 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2295
2296 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2297 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2298
2299 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2300 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2301
2302 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2303 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2304
2305 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2306 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2307
2308 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2309 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2310
2311 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2312 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2313
2314 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2315 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2316
2317 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2318 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2319
2320 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2321 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2322
2323 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2324 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2325
2326 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2327 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2328
2329 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2330 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2331
2332 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2333 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2334
2335 %triggerun mhash -- %{name}-mhash < 4:5.0.4-9.1
2336 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2337
2338 %triggerun mime_magic -- %{name}-mime_magic < 4:5.0.4-9.1
2339 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2340
2341 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
2342 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{_sysconfdir}/php.ini
2343
2344 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2345 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2346
2347 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2348 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2349
2350 %triggerun ncurses -- %{name}-ncurses < 4:5.1.2-9.5
2351 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2352         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2353 fi
2354 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2355         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2356 fi
2357
2358 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2359 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2360
2361 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2362 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2363
2364 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2365 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2366
2367 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2368 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2369
2370 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2371 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2372         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2373 fi
2374 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2375         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2376 fi
2377
2378 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2379 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2380
2381 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2382 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2383
2384 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2386
2387 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2388 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2389         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2390 fi
2391 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2392         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2393 fi
2394
2395 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2396 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2397
2398 %triggerun session -- %{name}-session < 4:5.0.4-9.1
2399 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*session\.so/d' %{_sysconfdir}/php.ini
2400
2401 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2402 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2403
2404 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2405 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2406
2407 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2408 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2409
2410 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2411 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2412
2413 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2414 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2415
2416 %triggerun sybase -- %{name}-sybase < 4:5.0.4-9.1
2417 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2418
2419 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2420 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2421
2422 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2423 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2424
2425 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2426 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2427
2428 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2429 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2430
2431 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2432 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2433
2434 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2435 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2436
2437 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2438 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2439
2440 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2441 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2442
2443 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2444 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2445
2446 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2447 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2448
2449 %if %{with apache1}
2450 %files -n apache1-mod_php
2451 %defattr(644,root,root,755)
2452 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2453 %dir %{_sysconfdir}/apache.d
2454 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2455 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2456 /home/services/apache/icons/*
2457 %endif
2458
2459 %if %{with apache2}
2460 %files -n apache-mod_php
2461 %defattr(644,root,root,755)
2462 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/httpd.conf/*_mod_php.conf
2463 %dir %{_sysconfdir}/apache2handler.d
2464 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2465 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2466 /home/services/httpd/icons/*
2467 %endif
2468
2469 %if %{with fcgi}
2470 %files fcgi
2471 %defattr(644,root,root,755)
2472 %doc sapi/cgi/README.FastCGI
2473 %dir %{_sysconfdir}/cgi-fcgi.d
2474 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2475 %attr(755,root,root) %{_bindir}/php.fcgi
2476 %endif
2477
2478 %files cgi
2479 %defattr(644,root,root,755)
2480 %dir %{_sysconfdir}/cgi.d
2481 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2482 %attr(755,root,root) %{_bindir}/php.cgi
2483
2484 %files cli
2485 %defattr(644,root,root,755)
2486 %dir %{_sysconfdir}/cli.d
2487 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2488 %attr(755,root,root) %{_bindir}/php.cli
2489 %{_mandir}/man1/php.1*
2490 %{_mandir}/man1/php.cli.1*
2491
2492 %files program
2493 %defattr(644,root,root,755)
2494 %attr(755,root,root) %{_bindir}/php
2495
2496 %files common
2497 %defattr(644,root,root,755)
2498 %doc php.ini-*
2499 %doc CREDITS Zend/ZEND_CHANGES
2500 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2501
2502 %dir %{_sysconfdir}
2503 %dir %{_sysconfdir}/conf.d
2504 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2505 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2506 %dir %{extensionsdir}
2507
2508 # session_mm doesn't work with shared session
2509 #%files session
2510 #%defattr(644,root,root,755)
2511 #%attr(755,root,root) %{extensionsdir}/session.so
2512 %doc ext/session/mod_files.sh
2513
2514 %files devel
2515 %defattr(644,root,root,755)
2516 %doc README.UNIX-BUILD-SYSTEM
2517 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2518 %doc CODING_STANDARDS
2519 %attr(755,root,root) %{_bindir}/phpextdist
2520 %attr(755,root,root) %{_bindir}/phpize
2521 %attr(755,root,root) %{_bindir}/php-config
2522 %attr(755,root,root) %{_libdir}/libphp_common.so
2523 %{_libdir}/libphp_common.la
2524 %{_includedir}/php
2525 %{_libdir}/php/build
2526 %{_mandir}/man1/*
2527
2528 %files bcmath
2529 %defattr(644,root,root,755)
2530 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2531 %attr(755,root,root) %{extensionsdir}/bcmath.so
2532
2533 %files bzip2
2534 %defattr(644,root,root,755)
2535 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2536 %attr(755,root,root) %{extensionsdir}/bz2.so
2537
2538 %files calendar
2539 %defattr(644,root,root,755)
2540 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2541 %attr(755,root,root) %{extensionsdir}/calendar.so
2542
2543 %files ctype
2544 %defattr(644,root,root,755)
2545 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2546 %attr(755,root,root) %{extensionsdir}/ctype.so
2547
2548 %if %{with curl}
2549 %files curl
2550 %defattr(644,root,root,755)
2551 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2552 %attr(755,root,root) %{extensionsdir}/curl.so
2553 %endif
2554
2555 %files dba
2556 %defattr(644,root,root,755)
2557 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2558 %attr(755,root,root) %{extensionsdir}/dba.so
2559
2560 %files dbase
2561 %defattr(644,root,root,755)
2562 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2563 %attr(755,root,root) %{extensionsdir}/dbase.so
2564
2565 %files dom
2566 %defattr(644,root,root,755)
2567 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2568 %attr(755,root,root) %{extensionsdir}/dom.so
2569
2570 %if %{with fdf}
2571 %files fdf
2572 %defattr(644,root,root,755)
2573 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2574 %attr(755,root,root) %{extensionsdir}/fdf.so
2575 %endif
2576
2577 %files exif
2578 %defattr(644,root,root,755)
2579 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2580 %attr(755,root,root) %{extensionsdir}/exif.so
2581
2582 %files ftp
2583 %defattr(644,root,root,755)
2584 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2585 %attr(755,root,root) %{extensionsdir}/ftp.so
2586
2587 %files gd
2588 %defattr(644,root,root,755)
2589 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2590 %attr(755,root,root) %{extensionsdir}/gd.so
2591
2592 %files gettext
2593 %defattr(644,root,root,755)
2594 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2595 %attr(755,root,root) %{extensionsdir}/gettext.so
2596
2597 %files gmp
2598 %defattr(644,root,root,755)
2599 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2600 %attr(755,root,root) %{extensionsdir}/gmp.so
2601
2602 %files iconv
2603 %defattr(644,root,root,755)
2604 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2605 %attr(755,root,root) %{extensionsdir}/iconv.so
2606
2607 %if %{with imap}
2608 %files imap
2609 %defattr(644,root,root,755)
2610 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2611 %attr(755,root,root) %{extensionsdir}/imap.so
2612 %endif
2613
2614 %if %{with interbase}
2615 %files interbase
2616 %defattr(644,root,root,755)
2617 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2618 %attr(755,root,root) %{extensionsdir}/interbase.so
2619 %endif
2620
2621 %if %{with ldap}
2622 %files ldap
2623 %defattr(644,root,root,755)
2624 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2625 %attr(755,root,root) %{extensionsdir}/ldap.so
2626 %endif
2627
2628 %files mbstring
2629 %defattr(644,root,root,755)
2630 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2631 %attr(755,root,root) %{extensionsdir}/mbstring.so
2632
2633 %files mcrypt
2634 %defattr(644,root,root,755)
2635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2636 %attr(755,root,root) %{extensionsdir}/mcrypt.so
2637
2638 %if %{with mhash}
2639 %files mhash
2640 %defattr(644,root,root,755)
2641 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2642 %attr(755,root,root) %{extensionsdir}/mhash.so
2643 %endif
2644
2645 %if %{with mime_magic}
2646 %files mime_magic
2647 %defattr(644,root,root,755)
2648 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2649 %attr(755,root,root) %{extensionsdir}/mime_magic.so
2650 %endif
2651
2652 %if %{with ming}
2653 %files ming
2654 %defattr(644,root,root,755)
2655 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2656 %attr(755,root,root) %{extensionsdir}/ming.so
2657 %endif
2658
2659 %if %{with mssql}
2660 %files mssql
2661 %defattr(644,root,root,755)
2662 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2663 %attr(755,root,root) %{extensionsdir}/mssql.so
2664 %endif
2665
2666 %files mysql
2667 %defattr(644,root,root,755)
2668 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2669 %attr(755,root,root) %{extensionsdir}/mysql.so
2670
2671 %if %{with mysqli}
2672 %files mysqli
2673 %defattr(644,root,root,755)
2674 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2675 %attr(755,root,root) %{extensionsdir}/mysqli.so
2676 %endif
2677
2678 %files ncurses
2679 %defattr(644,root,root,755)
2680 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2681 %attr(755,root,root) %{extensionsdir}/ncurses.so
2682
2683 %if %{with oci8}
2684 %files oci8
2685 %defattr(644,root,root,755)
2686 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2687 %attr(755,root,root) %{extensionsdir}/oci8.so
2688 %endif
2689
2690 %if %{with odbc}
2691 %files odbc
2692 %defattr(644,root,root,755)
2693 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2694 %attr(755,root,root) %{extensionsdir}/odbc.so
2695 %endif
2696
2697 %if %{with openssl}
2698 %files openssl
2699 %defattr(644,root,root,755)
2700 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2701 %attr(755,root,root) %{extensionsdir}/openssl.so
2702 %endif
2703
2704 %files pcntl
2705 %defattr(644,root,root,755)
2706 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2707 %attr(755,root,root) %{extensionsdir}/pcntl.so
2708
2709 %files pdo
2710 %defattr(644,root,root,755)
2711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2712 %attr(755,root,root) %{extensionsdir}/pdo.so
2713
2714 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2715 %files pdo-dblib
2716 %defattr(644,root,root,755)
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2718 %attr(755,root,root) %{extensionsdir}/pdo_dblib.so
2719 %endif
2720
2721 %if %{with interbase} && %{without interbase_inst}
2722 %files pdo-firebird
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2725 %attr(755,root,root) %{extensionsdir}/pdo_firebird.so
2726 %endif
2727
2728 %files pdo-mysql
2729 %defattr(644,root,root,755)
2730 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2731 %attr(755,root,root) %{extensionsdir}/pdo_mysql.so
2732
2733 %if %{with oci8}
2734 %files pdo-oci
2735 %defattr(644,root,root,755)
2736 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2737 %attr(755,root,root) %{extensionsdir}/pdo_oci.so
2738 %endif
2739
2740 %if %{with odbc}
2741 %files pdo-odbc
2742 %defattr(644,root,root,755)
2743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2744 %attr(755,root,root) %{extensionsdir}/pdo_odbc.so
2745 %endif
2746
2747 %if %{with pgsql}
2748 %files pdo-pgsql
2749 %defattr(644,root,root,755)
2750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2751 %attr(755,root,root) %{extensionsdir}/pdo_pgsql.so
2752 %endif
2753
2754 %if %{with sqlite}
2755 %files pdo-sqlite
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2758 %attr(755,root,root) %{extensionsdir}/pdo_sqlite.so
2759 %endif
2760
2761 %if %{with pgsql}
2762 %files pgsql
2763 %defattr(644,root,root,755)
2764 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2765 %attr(755,root,root) %{extensionsdir}/pgsql.so
2766 %endif
2767
2768 %files posix
2769 %defattr(644,root,root,755)
2770 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2771 %attr(755,root,root) %{extensionsdir}/posix.so
2772
2773 %if %{with pspell}
2774 %files pspell
2775 %defattr(644,root,root,755)
2776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2777 %attr(755,root,root) %{extensionsdir}/pspell.so
2778 %endif
2779
2780 %files readline
2781 %defattr(644,root,root,755)
2782 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2783 %attr(755,root,root) %{extensionsdir}/readline.so
2784
2785 %if %{with recode}
2786 %files recode
2787 %defattr(644,root,root,755)
2788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2789 %attr(755,root,root) %{extensionsdir}/recode.so
2790 %endif
2791
2792 %if 0
2793 # simplexml is needed by spl, and spl can't be built shared as of now (5.1.0RC3)
2794 %files simplexml
2795 %defattr(644,root,root,755)
2796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2797 %attr(755,root,root) %{extensionsdir}/simplexml.so
2798 %endif
2799
2800 %files shmop
2801 %defattr(644,root,root,755)
2802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2803 %attr(755,root,root) %{extensionsdir}/shmop.so
2804
2805 %if %{with snmp}
2806 %files snmp
2807 %defattr(644,root,root,755)
2808 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2809 %attr(755,root,root) %{extensionsdir}/snmp.so
2810 %endif
2811
2812 %files soap
2813 %defattr(644,root,root,755)
2814 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2815 %attr(755,root,root) %{extensionsdir}/soap.so
2816
2817 %files sockets
2818 %defattr(644,root,root,755)
2819 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2820 %attr(755,root,root) %{extensionsdir}/sockets.so
2821
2822 %if %{with sqlite}
2823 %files sqlite
2824 %defattr(644,root,root,755)
2825 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2826 %attr(755,root,root) %{extensionsdir}/sqlite.so
2827 %endif
2828
2829 %if %{with sybase}
2830 %files sybase
2831 %defattr(644,root,root,755)
2832 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2833 %attr(755,root,root) %{extensionsdir}/sybase.so
2834 %endif
2835
2836 %if %{with sybase_ct}
2837 %files sybase-ct
2838 %defattr(644,root,root,755)
2839 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2840 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
2841 %endif
2842
2843 %files sysvmsg
2844 %defattr(644,root,root,755)
2845 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2846 %attr(755,root,root) %{extensionsdir}/sysvmsg.so
2847
2848 %files sysvsem
2849 %defattr(644,root,root,755)
2850 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2851 %attr(755,root,root) %{extensionsdir}/sysvsem.so
2852
2853 %files sysvshm
2854 %defattr(644,root,root,755)
2855 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2856 %attr(755,root,root) %{extensionsdir}/sysvshm.so
2857
2858 %if %{with tidy}
2859 %files tidy
2860 %defattr(644,root,root,755)
2861 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2862 %attr(755,root,root) %{extensionsdir}/tidy.so
2863 %endif
2864
2865 %files tokenizer
2866 %defattr(644,root,root,755)
2867 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2868 %attr(755,root,root) %{extensionsdir}/tokenizer.so
2869
2870 %if %{with wddx}
2871 %files wddx
2872 %defattr(644,root,root,755)
2873 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2874 %attr(755,root,root) %{extensionsdir}/wddx.so
2875 %endif
2876
2877 %files xml
2878 %defattr(644,root,root,755)
2879 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2880 %attr(755,root,root) %{extensionsdir}/xml.so
2881
2882 %files xmlreader
2883 %defattr(644,root,root,755)
2884 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2885 %attr(755,root,root) %{extensionsdir}/xmlreader.so
2886
2887 %if %{with xmlrpc}
2888 %files xmlrpc
2889 %defattr(644,root,root,755)
2890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2891 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
2892 %endif
2893
2894 %files xsl
2895 %defattr(644,root,root,755)
2896 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
2897 %attr(755,root,root) %{extensionsdir}/xsl.so
2898
2899 %files zlib
2900 %defattr(644,root,root,755)
2901 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
2902 %attr(755,root,root) %{extensionsdir}/zlib.so
This page took 0.2488 seconds and 4 git commands to generate.