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