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