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