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