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