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