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