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