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