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