]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- don't use %{without ...}, it may not work after inverting bcond
[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 !%{with apache1} && !%{with 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} && !%{with 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 -n apache1-mod_php
1847 if [ "$1" = "1" ]; then
1848         %service -q apache restart
1849 fi
1850
1851 %postun -n apache1-mod_php
1852 if [ "$1" = "0" ]; then
1853         %service -q apache restart
1854 fi
1855
1856 %post -n apache-mod_php
1857 if [ "$1" = "1" ]; then
1858         %service -q httpd restart
1859 fi
1860
1861 %postun -n apache-mod_php
1862 if [ "$1" = "0" ]; then
1863         %service -q httpd restart
1864 fi
1865
1866 # so tired of typing... so decided to create macros
1867 # macro called at extension post scriptlet
1868 %define extension_post \
1869 if [ "$1" = "1" ]; then \
1870         [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
1871         [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
1872 fi
1873
1874 # macro called at extension postun scriptlet
1875 %define extension_postun \
1876 if [ "$1" = "0" ]; then \
1877         [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart \
1878         [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart \
1879 fi
1880
1881 %post   common -p /sbin/ldconfig
1882 %postun common -p /sbin/ldconfig
1883
1884 %posttrans common
1885 # minimizing apache restarts logics. we restart webserver:
1886 #
1887 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1888 # 2. first install of extension (post: $1 = 1)
1889 # 2. uninstall of extension (postun: $1 == 0)
1890 #
1891 # the strict internal deps between extensions (and apache modules) and
1892 # common package are very important for all this to work.
1893
1894 # restart webserver at the end of transaction
1895 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
1896 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
1897
1898 %if %{with apache1}
1899 %triggerpostun -n apache1-mod_php -- php < 4:5.0.4-9.11
1900 sed -i -e '
1901         /^AddType application\/x-httpd-php \.php/s,^,#,
1902         /^\(Add\|Load\)Module.*php5\.\(so\|c\)/d
1903 ' /etc/apache/apache.conf
1904 %service -q apache restart
1905 %endif
1906
1907 %if %{with apache2}
1908 %triggerpostun -n apache-mod_php -- php < 4:5.0.4-7.1, php < 4:5.0.4-7.1
1909 # for fixed php-SAPI.ini, the poor php-apache.ini was never read for apache2
1910 if [ -f %{_sysconfdir}/php-apache.ini.rpmsave ]; then
1911         cp -f %{_sysconfdir}/php-apache2handler.ini{,.rpmnew}
1912         mv -f %{_sysconfdir}/php-apache.ini.rpmsave %{_sysconfdir}/php-apache2handler.ini
1913 fi
1914 %endif
1915
1916 %post bcmath
1917 %extension_post
1918
1919 %postun bcmath
1920 %extension_postun
1921
1922 %post bzip2
1923 %extension_post
1924
1925 %postun bzip2
1926 %extension_postun
1927
1928 %post calendar
1929 %extension_post
1930
1931 %postun calendar
1932 %extension_postun
1933
1934 %post ctype
1935 %extension_post
1936
1937 %postun ctype
1938 %extension_postun
1939
1940 %post curl
1941 %extension_post
1942
1943 %postun curl
1944 %extension_postun
1945
1946 %post dba
1947 %extension_post
1948
1949 %postun dba
1950 %extension_postun
1951
1952 %post dbase
1953 %extension_post
1954
1955 %postun dbase
1956 %extension_postun
1957
1958 %post dom
1959 %extension_post
1960
1961 %postun dom
1962 %extension_postun
1963
1964 %post exif
1965 %extension_post
1966
1967 %postun exif
1968 %extension_postun
1969
1970 %post fdf
1971 %extension_post
1972
1973 %postun fdf
1974 %extension_postun
1975
1976 %post ftp
1977 %extension_post
1978
1979 %postun ftp
1980 %extension_postun
1981
1982 %post gd
1983 %extension_post
1984
1985 %postun gd
1986 %extension_postun
1987
1988 %post gettext
1989 %extension_post
1990
1991 %postun gettext
1992 %extension_postun
1993
1994 %post gmp
1995 %extension_post
1996
1997 %postun gmp
1998 %extension_postun
1999
2000 %post iconv
2001 %extension_post
2002
2003 %postun iconv
2004 %extension_postun
2005
2006 %post imap
2007 %extension_post
2008
2009 %postun imap
2010 %extension_postun
2011
2012 %post interbase
2013 %extension_post
2014
2015 %postun interbase
2016 %extension_postun
2017
2018 %post ldap
2019 %extension_post
2020
2021 %postun ldap
2022 %extension_postun
2023
2024 %post mbstring
2025 %extension_post
2026
2027 %postun mbstring
2028 %extension_postun
2029
2030 %post mcrypt
2031 %extension_post
2032
2033 %postun mcrypt
2034 %extension_postun
2035
2036 %post mhash
2037 %extension_post
2038
2039 %postun mhash
2040 %extension_postun
2041
2042 %post mime_magic
2043 %extension_post
2044
2045 %postun mime_magic
2046 %extension_postun
2047
2048 %post ming
2049 %extension_post
2050
2051 %postun ming
2052 %extension_postun
2053
2054 %post mssql
2055 %extension_post
2056
2057 %postun mssql
2058 %extension_postun
2059
2060 %post mysql
2061 %extension_post
2062
2063 %postun mysql
2064 %extension_postun
2065
2066 %post mysqli
2067 %extension_post
2068
2069 %postun mysqli
2070 %extension_postun
2071
2072 %post oci8
2073 %extension_post
2074
2075 %postun oci8
2076 %extension_postun
2077
2078 %post odbc
2079 %extension_post
2080
2081 %postun odbc
2082 %extension_postun
2083
2084 %post openssl
2085 %extension_post
2086
2087 %postun openssl
2088 %extension_postun
2089
2090 %post pdo-dblib
2091 %extension_post
2092
2093 %postun pdo-dblib
2094 %extension_postun
2095
2096 %post pdo-firebird
2097 %extension_post
2098
2099 %postun pdo-firebird
2100 %extension_postun
2101
2102 %post pdo-mysql
2103 %extension_post
2104
2105 %postun pdo-mysql
2106 %extension_postun
2107
2108 %post pdo-odbc
2109 %extension_post
2110
2111 %postun pdo-odbc
2112 %extension_postun
2113
2114 %post pdo-pgsql
2115 %extension_post
2116
2117 %postun pdo-pgsql
2118 %extension_postun
2119
2120 %post pdo-sqlite
2121 %extension_post
2122
2123 %postun pdo-sqlite
2124 %extension_postun
2125
2126 %post pgsql
2127 %extension_post
2128
2129 %postun pgsql
2130 %extension_postun
2131
2132 %post posix
2133 %extension_post
2134
2135 %postun posix
2136 %extension_postun
2137
2138 %post pspell
2139 %extension_post
2140
2141 %postun pspell
2142 %extension_postun
2143
2144 %post recode
2145 %extension_post
2146
2147 %postun recode
2148 %extension_postun
2149
2150 %post shmop
2151 %extension_post
2152
2153 %postun shmop
2154 %extension_postun
2155
2156 %post snmp
2157 %extension_post
2158
2159 %postun snmp
2160 %extension_postun
2161
2162 %post soap
2163 %extension_post
2164
2165 %postun soap
2166 %extension_postun
2167
2168 %post sockets
2169 %extension_post
2170
2171 %postun sockets
2172 %extension_postun
2173
2174 %post sqlite
2175 %extension_post
2176
2177 %postun sqlite
2178 %extension_postun
2179
2180 %post sybase
2181 %extension_post
2182
2183 %postun sybase
2184 %extension_postun
2185
2186 %post sybase-ct
2187 %extension_post
2188
2189 %postun sybase-ct
2190 %extension_postun
2191
2192 %post sysvmsg
2193 %extension_post
2194
2195 %postun sysvmsg
2196 %extension_postun
2197
2198 %post sysvsem
2199 %extension_post
2200
2201 %postun sysvsem
2202 %extension_postun
2203
2204 %post sysvshm
2205 %extension_post
2206
2207 %postun sysvshm
2208 %extension_postun
2209
2210 %post tidy
2211 %extension_post
2212
2213 %postun tidy
2214 %extension_postun
2215
2216 %post tokenizer
2217 %extension_post
2218
2219 %postun tokenizer
2220 %extension_postun
2221
2222 %post wddx
2223 %extension_post
2224
2225 %postun wddx
2226 %extension_postun
2227
2228 %post xml
2229 %extension_post
2230
2231 %postun xml
2232 %extension_postun
2233
2234 %post xmlreader
2235 %extension_post
2236
2237 %postun xmlreader
2238 %extension_postun
2239
2240 %post xmlrpc
2241 %extension_post
2242
2243 %postun xmlrpc
2244 %extension_postun
2245
2246 %post xsl
2247 %extension_post
2248
2249 %postun xsl
2250 %extension_postun
2251
2252 %post zip
2253 %extension_post
2254
2255 %postun zip
2256 %extension_postun
2257
2258 %post zlib
2259 %extension_post
2260
2261 %postun zlib
2262 %extension_postun
2263
2264 %triggerun bcmath -- %{name}-bcmath < 4:5.0.4-9.1
2265 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bcmath\.so/d' %{_sysconfdir}/php.ini
2266
2267 %triggerun bzip2 -- %{name}-bzip2 < 4:5.0.4-9.1
2268 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*bzip2\.so/d' %{_sysconfdir}/php.ini
2269
2270 %triggerun calendar -- %{name}-calendar < 4:5.0.4-9.1
2271 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*calendar\.so/d' %{_sysconfdir}/php.ini
2272
2273 %triggerun ctype -- %{name}-ctype < 4:5.0.4-9.1
2274 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ctype\.so/d' %{_sysconfdir}/php.ini
2275
2276 %triggerun curl -- %{name}-curl < 4:5.0.4-9.1
2277 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*curl\.so/d' %{_sysconfdir}/php.ini
2278
2279 %triggerun dba -- %{name}-dba < 4:5.0.4-9.1
2280 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dba\.so/d' %{_sysconfdir}/php.ini
2281
2282 %triggerun dbase -- %{name}-dbase < 4:5.0.4-9.1
2283 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dbase\.so/d' %{_sysconfdir}/php.ini
2284
2285 %triggerun dom -- %{name}-dom < 4:5.0.4-9.1
2286 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*dom\.so/d' %{_sysconfdir}/php.ini
2287
2288 %triggerun exif -- %{name}-exif < 4:5.0.4-9.1
2289 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
2290
2291 %triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
2292 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
2293
2294 %triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
2295 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
2296
2297 %triggerun gd -- %{name}-gd < 4:5.0.4-9.1
2298 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gd\.so/d' %{_sysconfdir}/php.ini
2299
2300 %triggerun gettext -- %{name}-gettext < 4:5.0.4-9.1
2301 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gettext\.so/d' %{_sysconfdir}/php.ini
2302
2303 %triggerun gmp -- %{name}-gmp < 4:5.0.4-9.1
2304 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*gmp\.so/d' %{_sysconfdir}/php.ini
2305
2306 %triggerun iconv -- %{name}-iconv < 4:5.0.4-9.1
2307 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*iconv\.so/d' %{_sysconfdir}/php.ini
2308
2309 %triggerun imap -- %{name}-imap < 4:5.0.4-9.1
2310 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*imap\.so/d' %{_sysconfdir}/php.ini
2311
2312 %triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
2313 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
2314
2315 %triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
2316 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
2317
2318 %triggerun mbstring -- %{name}-mbstring < 4:5.0.4-9.1
2319 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mbstring\.so/d' %{_sysconfdir}/php.ini
2320
2321 %triggerun mcrypt -- %{name}-mcrypt < 4:5.0.4-9.1
2322 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mcrypt\.so/d' %{_sysconfdir}/php.ini
2323
2324 %triggerun mhash -- %{name}-mhash < 4:5.0.4-9.1
2325 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mhash\.so/d' %{_sysconfdir}/php.ini
2326
2327 %triggerun mime_magic -- %{name}-mime_magic < 4:5.0.4-9.1
2328 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mime_magic\.so/d' %{_sysconfdir}/php.ini
2329
2330 %triggerun ming -- %{name}-ming < 4:5.0.4-9.1
2331 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ming\.so/d' %{_sysconfdir}/php.ini
2332
2333 %triggerun mssql -- %{name}-mssql < 4:5.0.4-9.1
2334 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mssql\.so/d' %{_sysconfdir}/php.ini
2335
2336 %triggerun mysql -- %{name}-mysql < 4:5.0.4-9.1
2337 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysql\.so/d' %{_sysconfdir}/php.ini
2338
2339 %triggerun ncurses -- %{name}-ncurses < 4:5.1.2-9.5
2340 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2341         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cgi.ini
2342 fi
2343 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2344         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ncurses\.so/d' %{_sysconfdir}/php-cli.ini
2345 fi
2346
2347 %triggerun mysqli -- %{name}-mysqli < 4:5.0.4-9.1
2348 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*mysqli\.so/d' %{_sysconfdir}/php.ini
2349
2350 %triggerun oci8 -- %{name}-oci8 < 4:5.0.4-9.1
2351 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*oci8\.so/d' %{_sysconfdir}/php.ini
2352
2353 %triggerun odbc -- %{name}-odbc < 4:5.0.4-9.1
2354 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*odbc\.so/d' %{_sysconfdir}/php.ini
2355
2356 %triggerun openssl -- %{name}-openssl < 4:5.0.4-9.1
2357 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*openssl\.so/d' %{_sysconfdir}/php.ini
2358
2359 %triggerun pcntl -- %{name}-pcntl < 4:5.1.2-9.5
2360 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2361         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cgi.ini
2362 fi
2363 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2364         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pcntl\.so/d' %{_sysconfdir}/php-cli.ini
2365 fi
2366
2367 %triggerun pgsql -- %{name}-pgsql < 4:5.0.4-9.1
2368 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pgsql\.so/d' %{_sysconfdir}/php.ini
2369
2370 %triggerun posix -- %{name}-posix < 4:5.0.4-9.1
2371 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*posix\.so/d' %{_sysconfdir}/php.ini
2372
2373 %triggerun pspell -- %{name}-pspell < 4:5.0.4-9.1
2374 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*pspell\.so/d' %{_sysconfdir}/php.ini
2375
2376 %triggerun readline -- %{name}-readline < 4:5.1.2-9.5
2377 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2378         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cgi.ini
2379 fi
2380 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2381         %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*readline\.so/d' %{_sysconfdir}/php-cli.ini
2382 fi
2383
2384 %triggerun recode -- %{name}-recode < 4:5.0.4-9.1
2385 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*recode\.so/d' %{_sysconfdir}/php.ini
2386
2387 %triggerun shmop -- %{name}-shmop < 4:5.0.4-9.1
2388 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*shmop\.so/d' %{_sysconfdir}/php.ini
2389
2390 %triggerun snmp -- %{name}-snmp < 4:5.0.4-9.1
2391 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*snmp\.so/d' %{_sysconfdir}/php.ini
2392
2393 %triggerun soap -- %{name}-soap < 4:5.0.4-9.1
2394 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*soap\.so/d' %{_sysconfdir}/php.ini
2395
2396 %triggerun sockets -- %{name}-sockets < 4:5.0.4-9.1
2397 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sockets\.so/d' %{_sysconfdir}/php.ini
2398
2399 %triggerun sqlite -- %{name}-sqlite < 4:5.0.4-9.1
2400 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sqlite\.so/d' %{_sysconfdir}/php.ini
2401
2402 %triggerun sybase -- %{name}-sybase < 4:5.0.4-9.1
2403 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase\.so/d' %{_sysconfdir}/php.ini
2404
2405 %triggerun sybase-ct -- %{name}-sybase-ct < 4:5.0.4-9.1
2406 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sybase-ct\.so/d' %{_sysconfdir}/php.ini
2407
2408 %triggerun sysvmsg -- %{name}-sysvmsg < 4:5.0.4-9.1
2409 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvmsg\.so/d' %{_sysconfdir}/php.ini
2410
2411 %triggerun sysvsem -- %{name}-sysvsem < 4:5.0.4-9.1
2412 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvsem\.so/d' %{_sysconfdir}/php.ini
2413
2414 %triggerun sysvshm -- %{name}-sysvshm < 4:5.0.4-9.1
2415 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*sysvshm\.so/d' %{_sysconfdir}/php.ini
2416
2417 %triggerun tidy -- %{name}-tidy < 4:5.0.4-9.1
2418 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*tidy\.so/d' %{_sysconfdir}/php.ini
2419
2420 %triggerun wddx -- %{name}-wddx < 4:5.0.4-9.1
2421 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*wddx\.so/d' %{_sysconfdir}/php.ini
2422
2423 %triggerun xml -- %{name}-xml < 4:5.0.4-9.1
2424 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xml\.so/d' %{_sysconfdir}/php.ini
2425
2426 %triggerun xmlrpc -- %{name}-xmlrpc < 4:5.0.4-9.1
2427 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xmlrpc\.so/d' %{_sysconfdir}/php.ini
2428
2429 %triggerun xsl -- %{name}-xsl < 4:5.0.4-9.1
2430 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*xsl\.so/d' %{_sysconfdir}/php.ini
2431
2432 %triggerun zlib -- %{name}-zlib < 4:5.0.4-9.1
2433 %{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*zlib\.so/d' %{_sysconfdir}/php.ini
2434
2435 %if %{with apache1}
2436 %files -n apache1-mod_php
2437 %defattr(644,root,root,755)
2438 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/apache/conf.d/*_mod_php.conf
2439 %dir %{_sysconfdir}/apache.d
2440 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
2441 %attr(755,root,root) %{_libdir}/apache1/libphp5.so
2442 /home/services/apache/icons/*
2443 %endif
2444
2445 %if %{with apache2}
2446 %files -n apache-mod_php
2447 %defattr(644,root,root,755)
2448 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/httpd/httpd.conf/*_mod_php.conf
2449 %dir %{_sysconfdir}/apache2handler.d
2450 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
2451 %attr(755,root,root) %{_libdir}/apache/libphp5.so
2452 /home/services/httpd/icons/*
2453 %endif
2454
2455 %if %{with fcgi}
2456 %files fcgi
2457 %defattr(644,root,root,755)
2458 %doc sapi/cgi/README.FastCGI
2459 %dir %{_sysconfdir}/cgi-fcgi.d
2460 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi-fcgi.ini
2461 %attr(755,root,root) %{_bindir}/php.fcgi
2462 %endif
2463
2464 %files cgi
2465 %defattr(644,root,root,755)
2466 %dir %{_sysconfdir}/cgi.d
2467 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cgi.ini
2468 %attr(755,root,root) %{_bindir}/php.cgi
2469
2470 %files cli
2471 %defattr(644,root,root,755)
2472 %dir %{_sysconfdir}/cli.d
2473 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-cli.ini
2474 %attr(755,root,root) %{_bindir}/php.cli
2475 %{_mandir}/man1/php.1*
2476 %{_mandir}/man1/php.cli.1*
2477
2478 %files program
2479 %defattr(644,root,root,755)
2480 %attr(755,root,root) %{_bindir}/php
2481
2482 %files common
2483 %defattr(644,root,root,755)
2484 %doc php.ini-*
2485 %doc CREDITS Zend/ZEND_CHANGES
2486 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2487
2488 %dir %{_sysconfdir}
2489 %dir %{_sysconfdir}/conf.d
2490 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php.ini
2491 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2492 %dir %{extensionsdir}
2493
2494 %doc ext/session/mod_files.sh
2495
2496 %files devel
2497 %defattr(644,root,root,755)
2498 %doc README.UNIX-BUILD-SYSTEM
2499 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2500 %doc CODING_STANDARDS
2501 %attr(755,root,root) %{_bindir}/phpize
2502 %attr(755,root,root) %{_bindir}/php-config
2503 %attr(755,root,root) %{_libdir}/libphp_common.so
2504 %{_libdir}/libphp_common.la
2505 %{_includedir}/php
2506 %{_libdir}/php/build
2507 %{_mandir}/man1/*
2508
2509 %files bcmath
2510 %defattr(644,root,root,755)
2511 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bcmath.ini
2512 %attr(755,root,root) %{extensionsdir}/bcmath.so
2513
2514 %files bzip2
2515 %defattr(644,root,root,755)
2516 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/bz2.ini
2517 %attr(755,root,root) %{extensionsdir}/bz2.so
2518
2519 %files calendar
2520 %defattr(644,root,root,755)
2521 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/calendar.ini
2522 %attr(755,root,root) %{extensionsdir}/calendar.so
2523
2524 %files ctype
2525 %defattr(644,root,root,755)
2526 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ctype.ini
2527 %attr(755,root,root) %{extensionsdir}/ctype.so
2528
2529 %if %{with curl}
2530 %files curl
2531 %defattr(644,root,root,755)
2532 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/curl.ini
2533 %attr(755,root,root) %{extensionsdir}/curl.so
2534 %endif
2535
2536 %files dba
2537 %defattr(644,root,root,755)
2538 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dba.ini
2539 %attr(755,root,root) %{extensionsdir}/dba.so
2540
2541 %files dbase
2542 %defattr(644,root,root,755)
2543 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dbase.ini
2544 %attr(755,root,root) %{extensionsdir}/dbase.so
2545
2546 %files dom
2547 %defattr(644,root,root,755)
2548 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
2549 %attr(755,root,root) %{extensionsdir}/dom.so
2550
2551 %if %{with fdf}
2552 %files fdf
2553 %defattr(644,root,root,755)
2554 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
2555 %attr(755,root,root) %{extensionsdir}/fdf.so
2556 %endif
2557
2558 %files exif
2559 %defattr(644,root,root,755)
2560 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
2561 %attr(755,root,root) %{extensionsdir}/exif.so
2562
2563 %files ftp
2564 %defattr(644,root,root,755)
2565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
2566 %attr(755,root,root) %{extensionsdir}/ftp.so
2567
2568 %files gd
2569 %defattr(644,root,root,755)
2570 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gd.ini
2571 %attr(755,root,root) %{extensionsdir}/gd.so
2572
2573 %files gettext
2574 %defattr(644,root,root,755)
2575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gettext.ini
2576 %attr(755,root,root) %{extensionsdir}/gettext.so
2577
2578 %files gmp
2579 %defattr(644,root,root,755)
2580 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/gmp.ini
2581 %attr(755,root,root) %{extensionsdir}/gmp.so
2582
2583 %files iconv
2584 %defattr(644,root,root,755)
2585 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/iconv.ini
2586 %attr(755,root,root) %{extensionsdir}/iconv.so
2587
2588 %if %{with imap}
2589 %files imap
2590 %defattr(644,root,root,755)
2591 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/imap.ini
2592 %attr(755,root,root) %{extensionsdir}/imap.so
2593 %endif
2594
2595 %if %{with interbase}
2596 %files interbase
2597 %defattr(644,root,root,755)
2598 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/interbase.ini
2599 %attr(755,root,root) %{extensionsdir}/interbase.so
2600 %endif
2601
2602 %if %{with ldap}
2603 %files ldap
2604 %defattr(644,root,root,755)
2605 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ldap.ini
2606 %attr(755,root,root) %{extensionsdir}/ldap.so
2607 %endif
2608
2609 %files mbstring
2610 %defattr(644,root,root,755)
2611 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mbstring.ini
2612 %attr(755,root,root) %{extensionsdir}/mbstring.so
2613
2614 %files mcrypt
2615 %defattr(644,root,root,755)
2616 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mcrypt.ini
2617 %attr(755,root,root) %{extensionsdir}/mcrypt.so
2618
2619 %if %{with mhash}
2620 %files mhash
2621 %defattr(644,root,root,755)
2622 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mhash.ini
2623 %attr(755,root,root) %{extensionsdir}/mhash.so
2624 %endif
2625
2626 %if %{with mime_magic}
2627 %files mime_magic
2628 %defattr(644,root,root,755)
2629 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mime_magic.ini
2630 %attr(755,root,root) %{extensionsdir}/mime_magic.so
2631 %endif
2632
2633 %if %{with ming}
2634 %files ming
2635 %defattr(644,root,root,755)
2636 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ming.ini
2637 %attr(755,root,root) %{extensionsdir}/ming.so
2638 %endif
2639
2640 %if %{with mssql}
2641 %files mssql
2642 %defattr(644,root,root,755)
2643 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mssql.ini
2644 %attr(755,root,root) %{extensionsdir}/mssql.so
2645 %endif
2646
2647 %files mysql
2648 %defattr(644,root,root,755)
2649 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
2650 %attr(755,root,root) %{extensionsdir}/mysql.so
2651
2652 %if %{with mysqli}
2653 %files mysqli
2654 %defattr(644,root,root,755)
2655 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysqli.ini
2656 %attr(755,root,root) %{extensionsdir}/mysqli.so
2657 %endif
2658
2659 %files ncurses
2660 %defattr(644,root,root,755)
2661 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/ncurses.ini
2662 %attr(755,root,root) %{extensionsdir}/ncurses.so
2663
2664 %if %{with oci8}
2665 %files oci8
2666 %defattr(644,root,root,755)
2667 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/oci8.ini
2668 %attr(755,root,root) %{extensionsdir}/oci8.so
2669 %endif
2670
2671 %if %{with odbc}
2672 %files odbc
2673 %defattr(644,root,root,755)
2674 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/odbc.ini
2675 %attr(755,root,root) %{extensionsdir}/odbc.so
2676 %endif
2677
2678 %if %{with openssl}
2679 %files openssl
2680 %defattr(644,root,root,755)
2681 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/openssl.ini
2682 %attr(755,root,root) %{extensionsdir}/openssl.so
2683 %endif
2684
2685 %files pcntl
2686 %defattr(644,root,root,755)
2687 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/pcntl.ini
2688 %attr(755,root,root) %{extensionsdir}/pcntl.so
2689
2690 %files pdo
2691 %defattr(644,root,root,755)
2692 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo.ini
2693 %attr(755,root,root) %{extensionsdir}/pdo.so
2694
2695 %if %{with mssql} || %{with sybase} || %{with sybase_ct}
2696 %files pdo-dblib
2697 %defattr(644,root,root,755)
2698 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_dblib.ini
2699 %attr(755,root,root) %{extensionsdir}/pdo_dblib.so
2700 %endif
2701
2702 %if %{with interbase} && !%{with interbase_inst}
2703 %files pdo-firebird
2704 %defattr(644,root,root,755)
2705 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_firebird.ini
2706 %attr(755,root,root) %{extensionsdir}/pdo_firebird.so
2707 %endif
2708
2709 %files pdo-mysql
2710 %defattr(644,root,root,755)
2711 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_mysql.ini
2712 %attr(755,root,root) %{extensionsdir}/pdo_mysql.so
2713
2714 %if %{with oci8}
2715 %files pdo-oci
2716 %defattr(644,root,root,755)
2717 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_oci.ini
2718 %attr(755,root,root) %{extensionsdir}/pdo_oci.so
2719 %endif
2720
2721 %if %{with odbc}
2722 %files pdo-odbc
2723 %defattr(644,root,root,755)
2724 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_odbc.ini
2725 %attr(755,root,root) %{extensionsdir}/pdo_odbc.so
2726 %endif
2727
2728 %if %{with pgsql}
2729 %files pdo-pgsql
2730 %defattr(644,root,root,755)
2731 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_pgsql.ini
2732 %attr(755,root,root) %{extensionsdir}/pdo_pgsql.so
2733 %endif
2734
2735 %if %{with sqlite}
2736 %files pdo-sqlite
2737 %defattr(644,root,root,755)
2738 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pdo_sqlite.ini
2739 %attr(755,root,root) %{extensionsdir}/pdo_sqlite.so
2740 %endif
2741
2742 %if %{with pgsql}
2743 %files pgsql
2744 %defattr(644,root,root,755)
2745 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pgsql.ini
2746 %attr(755,root,root) %{extensionsdir}/pgsql.so
2747 %endif
2748
2749 %files posix
2750 %defattr(644,root,root,755)
2751 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/posix.ini
2752 %attr(755,root,root) %{extensionsdir}/posix.so
2753
2754 %if %{with pspell}
2755 %files pspell
2756 %defattr(644,root,root,755)
2757 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/pspell.ini
2758 %attr(755,root,root) %{extensionsdir}/pspell.so
2759 %endif
2760
2761 %files readline
2762 %defattr(644,root,root,755)
2763 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cli.d/readline.ini
2764 %attr(755,root,root) %{extensionsdir}/readline.so
2765
2766 %if %{with recode}
2767 %files recode
2768 %defattr(644,root,root,755)
2769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/recode.ini
2770 %attr(755,root,root) %{extensionsdir}/recode.so
2771 %endif
2772
2773 %if 0
2774 # simplexml is needed by spl, and spl can't be built shared as of now (5.1.0RC3)
2775 %files simplexml
2776 %defattr(644,root,root,755)
2777 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
2778 %attr(755,root,root) %{extensionsdir}/simplexml.so
2779 %endif
2780
2781 %files shmop
2782 %defattr(644,root,root,755)
2783 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
2784 %attr(755,root,root) %{extensionsdir}/shmop.so
2785
2786 %if %{with snmp}
2787 %files snmp
2788 %defattr(644,root,root,755)
2789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/snmp.ini
2790 %attr(755,root,root) %{extensionsdir}/snmp.so
2791 %endif
2792
2793 %files soap
2794 %defattr(644,root,root,755)
2795 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/soap.ini
2796 %attr(755,root,root) %{extensionsdir}/soap.so
2797
2798 %files sockets
2799 %defattr(644,root,root,755)
2800 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sockets.ini
2801 %attr(755,root,root) %{extensionsdir}/sockets.so
2802
2803 %if %{with sqlite}
2804 %files sqlite
2805 %defattr(644,root,root,755)
2806 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sqlite.ini
2807 %attr(755,root,root) %{extensionsdir}/sqlite.so
2808 %endif
2809
2810 %if %{with sybase}
2811 %files sybase
2812 %defattr(644,root,root,755)
2813 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase.ini
2814 %attr(755,root,root) %{extensionsdir}/sybase.so
2815 %endif
2816
2817 %if %{with sybase_ct}
2818 %files sybase-ct
2819 %defattr(644,root,root,755)
2820 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sybase_ct.ini
2821 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
2822 %endif
2823
2824 %files sysvmsg
2825 %defattr(644,root,root,755)
2826 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvmsg.ini
2827 %attr(755,root,root) %{extensionsdir}/sysvmsg.so
2828
2829 %files sysvsem
2830 %defattr(644,root,root,755)
2831 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvsem.ini
2832 %attr(755,root,root) %{extensionsdir}/sysvsem.so
2833
2834 %files sysvshm
2835 %defattr(644,root,root,755)
2836 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/sysvshm.ini
2837 %attr(755,root,root) %{extensionsdir}/sysvshm.so
2838
2839 %if %{with tidy}
2840 %files tidy
2841 %defattr(644,root,root,755)
2842 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tidy.ini
2843 %attr(755,root,root) %{extensionsdir}/tidy.so
2844 %endif
2845
2846 %files tokenizer
2847 %defattr(644,root,root,755)
2848 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/tokenizer.ini
2849 %attr(755,root,root) %{extensionsdir}/tokenizer.so
2850
2851 %if %{with wddx}
2852 %files wddx
2853 %defattr(644,root,root,755)
2854 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*wddx.ini
2855 %attr(755,root,root) %{extensionsdir}/wddx.so
2856 %endif
2857
2858 %files xml
2859 %defattr(644,root,root,755)
2860 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xml.ini
2861 %attr(755,root,root) %{extensionsdir}/xml.so
2862
2863 %files xmlreader
2864 %defattr(644,root,root,755)
2865 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlreader.ini
2866 %attr(755,root,root) %{extensionsdir}/xmlreader.so
2867
2868 %if %{with xmlrpc}
2869 %files xmlrpc
2870 %defattr(644,root,root,755)
2871 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xmlrpc.ini
2872 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
2873 %endif
2874
2875 %files xsl
2876 %defattr(644,root,root,755)
2877 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/xsl.ini
2878 %attr(755,root,root) %{extensionsdir}/xsl.so
2879
2880 %files zip
2881 %defattr(644,root,root,755)
2882 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zip.ini
2883 %attr(755,root,root) %{extensionsdir}/zip.so
2884
2885 %files zlib
2886 %defattr(644,root,root,755)
2887 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/zlib.ini
2888 %attr(755,root,root) %{extensionsdir}/zlib.so
This page took 0.219209 seconds and 4 git commands to generate.