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