]> git.pld-linux.org Git - packages/php.git/blob - php.spec
c804cc3556310020d25b032678243ea5756197d7
[packages/php.git] / php.spec
1 #
2 # TODO:
3 # - php-shared is SERIOUSLY broken. Try compiling with --enable-versioning.
4 # - think of including support for:
5 #    - mcve,
6 #    - ovrimos,
7 #    - pfpro,
8 #    - ircg,
9 #   These extensions BuildRequires proprietary libraries...
10 # - deal with modules removed from php and not moved to PECL
11 #   (existing only in php4):
12 #   db, hyperwave, java, mcal, overload, qtdom
13 # - 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 # it has some compatibility functions
539 Provides:       php-domxml = %{epoch}:%{version}-%{release}
540 Obsoletes:      php-domxml <= 3:4.3.8-1
541
542 %description dom
543 This is a dynamic shared object (DSO) for PHP that will add new DOM
544 support.
545
546 %description dom -l pl
547 Modu³ PHP dodaj±cy now± obs³ugê DOM.
548
549 %package exif
550 Summary:        exif extension module for PHP
551 Summary(pl):    Modu³ exif dla PHP
552 Group:          Libraries
553 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
554 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
555
556 %description exif
557 This is a dynamic shared object (DSO) for PHP that will add EXIF
558 tags support in image files.
559
560 %description exif -l pl
561 Modu³ PHP dodaj±cy obs³ugê znaczników EXIF w plikach obrazków.
562
563 %package fam
564 Summary:        FAM (File Alteration Monitor) module for PHP
565 Summary(pl):    Modu³ FAM (File Alteration Monitor) dla PHP
566 Group:          Libraries
567 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
568 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
569
570 %description fam
571 This PHP module adds support for FAM (File Alteration Monitor).
572 FAM monitors files and directories, notifying interested applications
573 of changes.
574
575 %description fam -l pl
576 Modu³ PHP dodaj±cy obs³ugê dla FAM (File Alteration Monitor).
577 FAM monitoruje pliki oraz katalogi, informuj±c zainteresowane aplikacje
578 o zmianach.
579
580 %package fdf
581 Summary:        FDF extension module for PHP
582 Summary(pl):    Modu³ FDF dla PHP
583 Group:          Libraries
584 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
585 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
586
587 %description fdf
588 This PHP module adds support for PDF Forms through Adobe FDFTK
589 library.
590
591 %description fdf -l pl
592 Modu³ PHP dodaj±cy obs³ugê formularzy PDF poprzez bibliotekê Adobe
593 FDFTK.
594
595 %package filepro
596 Summary:        filePro extension module for PHP
597 Summary(pl):    Modu³ filePro dla PHP
598 Group:          Libraries
599 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
600 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
601
602 %description filepro
603 This is a dynamic shared object (DSO) for PHP that will add support
604 for read-only access to filePro databases.
605
606 %description filepro -l pl
607 Modu³ PHP dodaj±cy mo¿liwo¶æ dostêpu (tylko do odczytu) do baz danych
608 filePro.
609
610 %package ftp
611 Summary:        FTP extension module for PHP
612 Summary(pl):    Modu³ FTP dla PHP
613 Group:          Libraries
614 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
615 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
616
617 %description ftp
618 This is a dynamic shared object (DSO) for PHP that will add FTP
619 support.
620
621 %description ftp -l pl
622 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
623
624 %package gd
625 Summary:        GD extension module for PHP
626 Summary(pl):    Modu³ GD dla PHP
627 Group:          Libraries
628 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
629 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
630 Requires:       gd >= 2.0.28-4
631 Provides:       %{name}-gd(gif) = %{epoch}:%{version}-%{release}
632
633 %description gd
634 This is a dynamic shared object (DSO) for PHP that will add GD
635 support, allowing you to create and manipulate images with PHP.
636
637 %description gd -l pl
638 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD, pozwalaj±cej na
639 tworzenie i obróbkê obrazków.
640
641 %package gettext
642 Summary:        gettext extension module for PHP
643 Summary(pl):    Modu³ gettext dla PHP
644 Group:          Libraries
645 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
646 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
647
648 %description gettext
649 This is a dynamic shared object (DSO) for PHP that will add gettext
650 support.
651
652 %description gettext -l pl
653 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
654
655 %package gmp
656 Summary:        gmp extension module for PHP
657 Summary(pl):    Modu³ gmp dla PHP
658 Group:          Libraries
659 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
660 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
661
662 %description gmp
663 This is a dynamic shared object (DSO) for PHP that will add arbitrary
664 length number support with GNU MP library.
665
666 %description gmp -l pl
667 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki gmp do obliczeñ na
668 liczbach o dowolnej d³ugo¶ci.
669
670 %package hwapi
671 Summary:        Hyperwave API extension module for PHP
672 Summary(pl):    Modu³ API Hyperwave dla PHP
673 Group:          Libraries
674 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
675 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
676
677 %description hwapi
678 This is a dynamic shared object (DSO) for PHP that will add official
679 Hyperwave API support.
680
681 %description hwapi -l pl
682 Modu³ PHP dodaj±cy obs³ugê Hyperwave.
683
684 %package iconv
685 Summary:        iconv extension module for PHP
686 Summary(pl):    Modu³ iconv dla PHP
687 Group:          Libraries
688 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
689 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
690
691 %description iconv
692 This is a dynamic shared object (DSO) for PHP that will add iconv
693 support.
694
695 %description iconv -l pl
696 Modu³ PHP dodaj±cy obs³ugê iconv.
697
698 %package imap
699 Summary:        IMAP extension module for PHP
700 Summary(pl):    Modu³ IMAP dla PHP
701 Summary(pt_BR): Um módulo para aplicações PHP que usam IMAP
702 Group:          Libraries
703 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
704 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
705
706 %description imap
707 This is a dynamic shared object (DSO) for PHP that will add IMAP
708 support.
709
710 %description imap -l pl
711 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
712
713 %description imap -l pt_BR
714 Um módulo para aplicações PHP que usam IMAP.
715
716 %package interbase
717 Summary:        InterBase/Firebird database module for PHP
718 Summary(pl):    Modu³ bazy danych InterBase/Firebird dla PHP
719 Group:          Libraries
720 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
721 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
722 %{?with_interbase_inst:Autoreq: false}
723
724 %description interbase
725 This is a dynamic shared object (DSO) for PHP that will add InterBase
726 and Firebird database support.
727
728 %description interbase -l pl
729 Modu³ PHP umo¿liwiaj±cy dostêp do baz danych InterBase i Firebird.
730
731 %package ldap
732 Summary:        LDAP extension module for PHP
733 Summary(pl):    Modu³ LDAP dla PHP
734 Summary(pt_BR): Um módulo para aplicações PHP que usam LDAP
735 Group:          Libraries
736 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
737 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
738
739 %description ldap
740 This is a dynamic shared object (DSO) for PHP that will add LDAP
741 support.
742
743 %description ldap -l pl
744 Modu³ PHP dodaj±cy obs³ugê LDAP.
745
746 %description ldap -l pt_BR
747 Um módulo para aplicações PHP que usam LDAP.
748
749 %package mbstring
750 Summary:        mbstring extension module for PHP
751 Summary(pl):    Modu³ mbstring dla PHP
752 Group:          Libraries
753 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
754 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
755
756 %description mbstring
757 This is a dynamic shared object (DSO) for PHP that will add multibyte
758 string support.
759
760 %description mbstring -l pl
761 Modu³ PHP dodaj±cy obs³ugê ci±gów znaków wielobajtowych.
762
763 %package mcrypt
764 Summary:        mcrypt extension module for PHP
765 Summary(pl):    Modu³ mcrypt dla PHP
766 Group:          Libraries
767 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
768 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
769
770 %description mcrypt
771 This is a dynamic shared object (DSO) for PHP that will add mcrypt
772 support.
773
774 %description mcrypt -l pl
775 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
776
777 %package mhash
778 Summary:        mhash extension module for PHP
779 Summary(pl):    Modu³ mhash dla PHP
780 Group:          Libraries
781 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
782 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
783
784 %description mhash
785 This is a dynamic shared object (DSO) for PHP that will add mhash
786 support.
787
788 %description mhash -l pl
789 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
790
791 %package mime_magic
792 Summary:        mime_magic extension module for PHP
793 Summary(pl):    Modu³ mime_magic dla PHP
794 Group:          Libraries
795 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
796 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
797 Requires:       /usr/share/file/magic.mime
798
799 %description mime_magic
800 This PHP module adds support for MIME type lookup via file magic
801 numbers using magic.mime database.
802
803 %description mime_magic -l pl
804 Modu³ PHP dodaj±cy obs³ugê wyszukiwania typów MIME wed³ug magicznych
805 znaczników plików z u¿yciem bazy danych magic.mime.
806
807 %package ming
808 Summary:        ming extension module for PHP
809 Summary(pl):    Modu³ ming dla PHP
810 Group:          Libraries
811 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
812 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
813
814 %description ming
815 This is a dynamic shared object (DSO) for PHP that will add ming
816 (Flash - .swf files) support.
817
818 %description ming -l pl
819 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
820 ming.
821
822 %package mnogosearch
823 Summary:        mnoGoSearch extension module for PHP
824 Summary(pl):    Modu³ mnoGoSearch dla PHP
825 Group:          Libraries
826 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
827 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
828
829 %description mnogosearch
830 This is a dynamic shared object (DSO) for PHP that will allow you to
831 access mnoGoSearch free search engine.
832
833 %description mnogosearch -l pl
834 Modu³ PHP dodaj±cy pozwalaj±cy na dostêp do wolnodostêpnego silnika
835 wyszukiwarki mnoGoSearch.
836
837 %package msession
838 Summary:        msession extension module for PHP
839 Summary(pl):    Modu³ msession dla PHP
840 Group:          Libraries
841 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
842 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
843
844 %description msession
845 This is a dynamic shared object (DSO) for PHP that will allow you to
846 use msession. msession is a high speed session daemon which can run
847 either locally or remotely. It is designed to provide consistent
848 session management for a PHP web farm.
849
850 %description msession -l pl
851 Modu³ PHP dodaj±cy umo¿liwiaj±cy korzystanie z demona msession. Jest
852 to demon szybkiej obs³ugi sesji, który mo¿e dzia³aæ lokalnie lub na
853 innej maszynie. S³u¿y do zapewniania spójnej obs³ugi sesji dla farmy
854 serwerów.
855
856 %package mssql
857 Summary:        MS SQL extension module for PHP
858 Summary(pl):    Modu³ MS SQL dla PHP
859 Group:          Libraries
860 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
861 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
862
863 %description mssql
864 This is a dynamic shared object (DSO) for PHP that will add MS SQL
865 databases support through FreeTDS library.
866
867 %description mssql -l pl
868 Modu³ PHP dodaj±cy obs³ugê baz danych MS SQL poprzez bibliotekê FreeTDS.
869
870 %package mysql
871 Summary:        MySQL database module for PHP
872 Summary(pl):    Modu³ bazy danych MySQL dla PHP
873 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados MySQL
874 Group:          Libraries
875 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
876 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
877
878 %description mysql
879 This is a dynamic shared object (DSO) for PHP that will add MySQL
880 database support.
881
882 %description mysql -l pl
883 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
884
885 %description mysql -l pt_BR
886 Um módulo para aplicações PHP que usam bancos de dados MySQL.
887
888 %package mysqli
889 Summary:        MySQLi module for PHP
890 Group:          Libraries
891 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
892 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
893 Requires:       mysql-libs >= 4.1.0
894
895 %description mysqli
896 This is a dynamic shared object (DSO) for PHP that will add MySQLi
897 (Improved MySQL) support. The difference between it and mysql module
898 is that it provides access to functionality of MySQL 4.1 and above.
899
900 %description mysqli -l pl
901 Modu³ PHP umo¿liwiaj±cy udoskonalony dostêp do bazy danych MySQL.
902 Ró¿nic± miêdzy nim a modu³em mysql jest dostêp do funkcjonalno¶ci
903 MySQL 4.1 i wy¿ej.
904
905 %package ncurses
906 Summary:        ncurses module for PHP
907 Summary(pl):    Modu³ ncurses dla PHP
908 Group:          Libraries
909 Requires(post,preun):   %{name}-cli = %{epoch}:%{version}-%{release}
910 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
911
912 %description ncurses
913 This PHP module adds support for ncurses functions (only for cli and
914 cgi SAPIs).
915
916 %description ncurses -l pl
917 Modu³ PHP dodaj±cy obs³ugê funkcji ncurses (tylko do SAPI cli i cgi).
918
919 %package oci8
920 Summary:        Oracle 8 database module for PHP
921 Summary(pl):    Modu³ bazy danych Oracle 8 dla PHP
922 Group:          Libraries
923 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
924 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
925 Autoreq:        false
926
927 %description oci8
928 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
929 and Oracle 8 database support through Oracle8 Call-Interface (OCI8).
930
931 %description oci8 -l pl
932 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7 i Oracle 8
933 poprzez interfejs Oracle8 Call-Interface (OCI8).
934
935 %package odbc
936 Summary:        ODBC extension module for PHP
937 Summary(pl):    Modu³ ODBC dla PHP
938 Summary(pt_BR): Um módulo para aplicações PHP que usam bases de dados ODBC
939 Group:          Libraries
940 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
941 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
942 Requires:       unixODBC >= 2.1.1-3
943
944 %description odbc
945 This is a dynamic shared object (DSO) for PHP that will add ODBC
946 support.
947
948 %description odbc -l pl
949 Modu³ PHP ze wsparciem dla ODBC.
950
951 %description odbc -l pt_BR
952 Um módulo para aplicações PHP que usam ODBC.
953
954 %package openssl
955 Summary:        OpenSSL extension module for PHP
956 Summary(pl):    Modu³ OpenSSL dla PHP
957 Group:          Libraries
958 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
959 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
960
961 %description openssl
962 This is a dynamic shared object (DSO) for PHP that will add OpenSSL
963 support.
964
965 Warning: this is an experimental module.
966
967 %description openssl -l pl
968 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki OpenSSL.
969
970 Uwaga: to jest modu³ eksperymentalny.
971
972 %package oracle
973 Summary:        Oracle 7 database module for PHP
974 Summary(pl):    Modu³ bazy danych Oracle 7 dla PHP
975 Group:          Libraries
976 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
977 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
978 Autoreq:        false
979
980 %description oracle
981 This is a dynamic shared object (DSO) for PHP that will add Oracle 7
982 database support.
983
984 %description oracle -l pl
985 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
986
987 %package pcntl
988 Summary:        Process Control extension module for PHP
989 Summary(pl):    Modu³ Process Control dla PHP
990 Group:          Libraries
991 Requires(post,preun):   %{name}-program = %{epoch}:%{version}-%{release}
992 Requires:       %{name}-program = %{epoch}:%{version}-%{release}
993
994 %description pcntl
995 This is a dynamic shared object (DSO) for PHP that will add process
996 spawning and control support. It supports functions like fork(),
997 waitpid(), signal() etc.
998
999 Warning: this is an experimental module. Also, don't use it in
1000 webserver environment!
1001
1002 %description pcntl -l pl
1003 Modu³ PHP umo¿liwiaj±cy tworzenie nowych procesów i kontrolê nad nimi.
1004 Obs³uguje funkcje takie jak fork(), waitpid(), signal() i podobne.
1005
1006 Uwaga: to jest modu³ eksperymentalny. Ponadto nie jest przeznaczony do
1007 u¿ywania z serwerem WWW - nie próbuj tego!
1008
1009 %package pcre
1010 Summary:        PCRE extension module for PHP
1011 Summary(pl):    Modu³ PCRE dla PHP
1012 Group:          Libraries
1013 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1014 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1015
1016 %description pcre
1017 This is a dynamic shared object (DSO) for PHP that will add Perl
1018 Compatible Regular Expression support.
1019
1020 %description pcre -l pl
1021 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
1022 (Perl Compatible Regular Expressions)
1023
1024 %package pgsql
1025 Summary:        PostgreSQL database module for PHP
1026 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP
1027 Group:          Libraries
1028 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1029 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1030
1031 %description pgsql
1032 This is a dynamic shared object (DSO) for PHP that will add PostgreSQL
1033 database support.
1034
1035 %description pgsql -l pl
1036 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
1037
1038 %description pgsql -l pt_BR
1039 Um módulo para aplicações PHP que usam bancos de dados postgresql.
1040
1041 %package posix
1042 Summary:        POSIX extension module for PHP
1043 Summary(pl):    Modu³ POSIX dla PHP
1044 Group:          Libraries
1045 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1046 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1047
1048 %description posix
1049 This is a dynamic shared object (DSO) for PHP that will add POSIX
1050 functions support to PHP.
1051
1052 %description posix -l pl
1053 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
1054
1055 %package pspell
1056 Summary:        pspell extension module for PHP
1057 Summary(pl):    Modu³ pspell dla PHP
1058 Group:          Libraries
1059 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1060 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1061
1062 %description pspell
1063 This is a dynamic shared object (DSO) for PHP that will add pspell
1064 support to PHP. It allows to check the spelling of a word and offer
1065 suggestions.
1066
1067 %description pspell -l pl
1068 Modu³ PHP umo¿liwiaj±cy korzystanie z pspella. Pozwala on na
1069 sprawdzanie pisowni s³owa i sugerowanie poprawek.
1070
1071 %package readline
1072 Summary:        readline extension module for PHP
1073 Summary(pl):    Modu³ readline dla PHP
1074 Group:          Libraries
1075 Requires(post,preun):   %{name}-cli = %{epoch}:%{version}-%{release}
1076 Requires:       %{name}-cli = %{epoch}:%{version}-%{release}
1077
1078 %description readline
1079 This PHP module adds support for readline functions (only for cli and
1080 cgi SAPIs).
1081
1082 %description readline -l pl
1083 Modu³ PHP dodaj±cy obs³ugê funkcji readline (tylko do SAPI cli i cgi).
1084
1085 %package recode
1086 Summary:        recode extension module for PHP
1087 Summary(pl):    Modu³ recode dla PHP
1088 Group:          Libraries
1089 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1090 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1091 Requires:       recode >= 3.5d-3
1092
1093 %description recode
1094 This is a dynamic shared object (DSO) for PHP that will add recode
1095 support.
1096
1097 %description recode -l pl
1098 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
1099 bibliotekê recode).
1100
1101 %package session
1102 Summary:        session extension module for PHP
1103 Summary(pl):    Modu³ session dla PHP
1104 Group:          Libraries
1105 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1106 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1107
1108 %description session
1109 This is a dynamic shared object (DSO) for PHP that will add session
1110 support.
1111
1112 %description session -l pl
1113 Modu³ PHP dodaj±cy obs³ugê sesji.
1114
1115 %package shmop
1116 Summary:        Shared Memory Operations extension module for PHP
1117 Summary(pl):    Modu³ shmop dla PHP
1118 Group:          Libraries
1119 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1120 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1121
1122 %description shmop
1123 This is a dynamic shared object (DSO) for PHP that will add Shared
1124 Memory Operations support.
1125
1126 Warning: this is an experimental module.
1127
1128 %description shmop -l pl
1129 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
1130
1131 Uwaga: to jest modu³ eksperymentalny.
1132
1133 %package snmp
1134 Summary:        SNMP extension module for PHP
1135 Summary(pl):    Modu³ SNMP dla PHP
1136 Group:          Libraries
1137 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1138 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1139
1140 %description snmp
1141 This is a dynamic shared object (DSO) for PHP that will add SNMP
1142 support.
1143
1144 %description snmp -l pl
1145 Modu³ PHP dodaj±cy obs³ugê SNMP.
1146
1147 %package soap
1148 Summary:        soap extension module for PHP
1149 Summary(pl):    Modu³ soap dla PHP
1150 Group:          Libraries
1151 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1152 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1153
1154 %description soap
1155 This is a dynamic shared object (DSO) for PHP that will add SOAP/WSDL
1156 support.
1157
1158 %description soap -l pl
1159 Modu³ PHP dodaj±cy obs³ugê SOAP/WSDL.
1160
1161 %package sockets
1162 Summary:        sockets extension module for PHP
1163 Summary(pl):    Modu³ socket dla PHP
1164 Group:          Libraries
1165 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1166 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1167
1168 %description sockets
1169 This is a dynamic shared object (DSO) for PHP that will add sockets
1170 support.
1171
1172 Warning: this is an experimental module.
1173
1174 %description sockets -l pl
1175 Modu³ PHP dodaj±cy obs³ugê gniazdek.
1176
1177 Uwaga: to jest modu³ eksperymentalny.
1178
1179 %package sqlite
1180 Summary:        SQLite extension module for PHP
1181 Summary(pl):    Modu³ SQLite dla PHP
1182 Group:          Libraries
1183 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1184 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1185
1186 %description sqlite
1187 SQLite is a C library that implements an embeddable SQL database engine.
1188 Programs that link with the SQLite library can have SQL database access
1189 without running a separate RDBMS process.
1190
1191 SQLite is not a client library used to connect to a big database server.
1192 SQLite is the server. The SQLite library reads and writes directly to
1193 and from the database files on disk.
1194
1195 %description sqlite -l pl
1196 SQLite jest napisan± w C bibliotek± implementuj±c± osadzalny silnik
1197 bazodanowy SQL. Program linkuj±cy siê z bibliotek± SQLite mo¿e mieæ
1198 dostêp do bazy SQL bez potrzeby uruchamiania dodatkowego procesu RDBMS.
1199
1200 SQLite to nie klient baz danych - biblioteka nie ³±czy siê z serwerami
1201 baz danych. SQLite sam jest serwerem. Biblioteka SQLite czyta i zapisuje
1202 dane bezpo¶rednio z/do plików baz danych znajduj±cych siê na dysku.
1203
1204 %package sybase
1205 Summary:        Sybase DB extension module for PHP
1206 Summary(pl):    Modu³ Sybase DB dla PHP
1207 Group:          Libraries
1208 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1209 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1210 Obsoletes:      php-sybase-ct
1211
1212 %description sybase
1213 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1214 MS SQL databases support through SYBDB library. Currently Sybase module
1215 is not maintained. Using Sybase-CT module is recommended instead.
1216
1217 %description sybase -l pl
1218 Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
1219 bibliotekê SYBDB. W chwili obecnej modu³ Sybase nie jest wspierany.
1220 Zaleca siê u¿ywanie modu³u Sybase-CT.
1221
1222 %package sybase-ct
1223 Summary:        Sybase-CT extension module for PHP
1224 Summary(pl):    Modu³ Sybase-CT dla PHP
1225 Group:          Libraries
1226 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1227 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1228 Obsoletes:      php-sybase
1229
1230 %description sybase-ct
1231 This is a dynamic shared object (DSO) for PHP that will add Sybase and
1232 MS SQL databases support through CT-lib.
1233
1234 %description sybase-ct -l pl
1235 Modu³ PHP dodaj±cy obs³ugê baz danych Sybase oraz MS SQL poprzez
1236 CT-lib.
1237
1238 %package sysvmsg
1239 Summary:        SysV msg extension module for PHP
1240 Summary(pl):    Modu³ SysV msg dla PHP
1241 Group:          Libraries
1242 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1243 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1244
1245 %description sysvmsg
1246 This is a dynamic shared object (DSO) for PHP that will add SysV
1247 message queues support.
1248
1249 %description sysvmsg -l pl
1250 Modu³ PHP umo¿liwiaj±cy korzystanie z kolejek komunikatów SysV.
1251
1252 %package sysvsem
1253 Summary:        SysV sem extension module for PHP
1254 Summary(pl):    Modu³ SysV sem dla PHP
1255 Group:          Libraries
1256 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1257 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1258
1259 %description sysvsem
1260 This is a dynamic shared object (DSO) for PHP that will add SysV
1261 semaphores support.
1262
1263 %description sysvsem -l pl
1264 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
1265
1266 %package sysvshm
1267 Summary:        SysV shm extension module for PHP
1268 Summary(pl):    Modu³ SysV shm dla PHP
1269 Group:          Libraries
1270 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1271 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1272
1273 %description sysvshm
1274 This is a dynamic shared object (DSO) for PHP that will add SysV
1275 Shared Memory support.
1276
1277 %description sysvshm -l pl
1278 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
1279
1280 %package tidy
1281 Summary:        Tidy extension module for PHP
1282 Summary(pl):    Modu³ Tidy dla PHP
1283 Group:          Libraries
1284 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1285 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1286
1287 %description tidy
1288 This is a dynamic shared object (DSO) for PHP that will add Tidy
1289 support.
1290
1291 %description tidy -l pl
1292 Modu³ PHP dodaj±cy umo¿liwiaj±cy korzystanie z tidy.
1293
1294 %package wddx
1295 Summary:        wddx extension module for PHP
1296 Summary(pl):    Modu³ wddx dla PHP
1297 Group:          Libraries
1298 PreReq:         %{name}-session = %{epoch}:%{version}-%{release}
1299 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1300 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1301
1302 %description wddx
1303 This is a dynamic shared object (DSO) for PHP that will add wddx
1304 support.
1305
1306 %description wddx -l pl
1307 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
1308
1309 %package xml
1310 Summary:        XML extension module for PHP
1311 Summary(pl):    Modu³ XML dla PHP
1312 Group:          Libraries
1313 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1314 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1315
1316 %description xml
1317 This is a dynamic shared object (DSO) for PHP that will add XML
1318 support. This extension lets you create XML parsers and then define
1319 handlers for different XML events.
1320
1321 %description xml -l pl
1322 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
1323 zwi±zanych z tymi plikami. Pozwala on tworzyæ analizatory XML-a i
1324 nastêpnie definiowaæ procedury obs³ugi dla ró¿nych zdarzeñ XML.
1325
1326 %package xmlrpc
1327 Summary:        xmlrpc extension module for PHP
1328 Summary(pl):    Modu³ xmlrpc dla PHP
1329 Group:          Libraries
1330 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1331 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1332
1333 %description xmlrpc
1334 This is a dynamic shared object (DSO) for PHP that will add XMLRPC
1335 support.
1336
1337 Warning: this is an experimental module.
1338
1339 %description xmlrpc -l pl
1340 Modu³ PHP dodaj±cy obs³ugê XMLRPC.
1341
1342 Uwaga: to jest modu³ eksperymentalny.
1343
1344 %package xsl
1345 Summary:        xsl extension module for PHP
1346 Summary(pl):    Modu³ xsl dla PHP
1347 Group:          Libraries
1348 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1349 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1350 Requires:       libxslt >= 1.0.18
1351 # Maybe it would be nice to add it here?
1352 #Provides:      php-xslt
1353 # actually not true, functionality is similar, but API differs
1354 Obsoletes:      php-xslt <= 3:4.3.8-1
1355
1356 %description xsl
1357 This is a dynamic shared object (DSO) for PHP that will add new XSL
1358 support (using libxslt).
1359
1360 %description xsl -l pl
1361 Modu³ PHP dodaj±cy now± obs³ugê XSLT (przy u¿yciu libxslt).
1362
1363 %package yp
1364 Summary:        NIS (yp) extension module for PHP
1365 Summary(pl):    Modu³ NIS (yp) dla PHP
1366 Group:          Libraries
1367 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1368 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1369
1370 %description yp
1371 This is a dynamic shared object (DSO) for PHP that will add NIS
1372 (Yellow Pages) support.
1373
1374 %description yp -l pl
1375 Modu³ PHP dodaj±cy wsparcie dla NIS (Yellow Pages).
1376
1377 %package zlib
1378 Summary:        Zlib extension module for PHP
1379 Summary(pl):    Modu³ zlib dla PHP
1380 Group:          Libraries
1381 Requires(post,preun):   %{name}-common = %{epoch}:%{version}-%{release}
1382 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
1383
1384 %description zlib
1385 This is a dynamic shared object (DSO) for PHP that will add zlib
1386 compression support to PHP.
1387
1388 %description zlib -l pl
1389 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji zlib.
1390
1391 %prep
1392 %setup -q -n %{name}-%{version}%{_suf}
1393 # this patch is broken by design, breaks --enable-versioning for example
1394 %patch0 -p1
1395 %patch1 -p1
1396 %patch2 -p1
1397 %patch3 -p1
1398 %patch4 -p1
1399 %patch5 -p1
1400 %patch6 -p1
1401 %patch7 -p1
1402 %patch8 -p1
1403 %patch9 -p1
1404 %patch10 -p1
1405 cp php.ini-dist php.ini
1406 %patch11 -p1
1407 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
1408 # conditionally...
1409 %patch12 -p1
1410 %patch13 -p1
1411 %patch14 -p1
1412 %patch15 -p1
1413 %patch16 -p1
1414 %patch17 -p1
1415 %patch18 -p1
1416 %patch19 -p1
1417 %patch20 -p1
1418 %patch21 -p1
1419 %patch22 -p1
1420 %ifarch amd64
1421 %patch23 -p1
1422 %endif
1423 %patch24 -p1
1424 %patch25 -p1
1425 %patch26 -p1
1426 %patch27 -p1
1427 %patch28 -p1
1428
1429 %{?with_hardened:zcat %{SOURCE9} | patch -p1}
1430
1431 # conflict seems to be resolved by recode patches
1432 rm -f ext/recode/config9.m4
1433
1434 # fix lib path in phpize
1435 cd scripts/
1436 sed -i -e 's,lib/php,%{_lib}/php,' phpize.in
1437 cd ..
1438
1439 # new apr
1440 sed -i -e 's#apr-config#apr-1-config#g' sapi/apache*/*.m4
1441
1442 %build
1443 %if %{_apache2}
1444 CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include `%{_bindir}/apr-1-config --includes` `%{_bindir}/apu-1-config --includes`"
1445 %else
1446 CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include"
1447 %endif
1448 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
1449 ./buildconf --force
1450 %{__libtoolize}
1451 %{__aclocal}
1452 %{__autoconf}
1453 PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
1454 for i in fcgi cgi cli apxs ; do
1455 %configure \
1456         `[ $i = cgi ] && echo --enable-discard-path` \
1457         `[ $i = cli ] && echo --disable-cgi` \
1458         `[ $i = fcgi ] && echo --enable-fastcgi --with-fastcgi=/usr` \
1459 %if %{_apache2}
1460         `[ $i = apxs ] && echo --with-apxs2=%{apxs}` \
1461         --enable-maintainer-zts \
1462 %else
1463         `[ $i = apxs ] && echo --with-apxs=%{apxs}` \
1464 %endif
1465         --with-config-file-path=%{_sysconfdir} \
1466         --with-exec-dir=%{_bindir} \
1467         --%{!?debug:dis}%{?debug:en}able-debug \
1468         --enable-memory-limit \
1469         --enable-bcmath=shared \
1470         --enable-calendar=shared \
1471         --enable-ctype=shared \
1472         --enable-dba=shared \
1473         --enable-dbx=shared \
1474         --enable-dio=shared \
1475         --enable-dom=shared \
1476         --enable-exif=shared \
1477         --enable-filepro=shared \
1478         --enable-ftp=shared \
1479         --enable-gd-native-ttf \
1480         --enable-gd-jus-conf \
1481         --enable-magic-quotes \
1482         --enable-mbstring=shared,all \
1483         --enable-mbregex \
1484         --enable-pcntl=shared \
1485         --enable-posix=shared \
1486         --enable-session \
1487         --enable-shared \
1488         --enable-shmop=shared \
1489         --enable-sysvmsg=shared \
1490         --enable-sysvsem=shared \
1491         --enable-sysvshm=shared \
1492         --enable-track-vars \
1493         --enable-trans-sid \
1494         --enable-safe-mode \
1495         --enable-sockets=shared \
1496         --enable-ucd-snmp-hack \
1497         %{?with_wddx:--enable-wddx=shared} \
1498         --enable-xml=shared \
1499         --enable-yp=shared \
1500         --enable-soap=shared \
1501         --with-bz2=shared \
1502         %{?with_cpdf:--with-cpdflib=shared} \
1503         %{!?with_curl:--without-curl}%{?with_curl:--with-curl=shared} \
1504         %{?with_db3:--with-db3}%{!?with_db3:--with-db4} \
1505         --with-dbase=shared \
1506 %if %{with wddx} || %{with xmlrpc}
1507         --with-expat-dir=shared,/usr \
1508 %else
1509         --without-expat-dir \
1510 %endif
1511         %{?with_fdf:--with-fdftk=shared} \
1512         --with-iconv=shared \
1513         %{?with_fam:--with-fam=shared} \
1514         --with-filepro=shared \
1515         --with-freetype-dir=shared \
1516         --with-gettext=shared \
1517         --with-gd=shared,/usr \
1518         --with-gdbm \
1519         --with-gmp=shared \
1520         %{?with_hwapi:--with-hwapi=shared} \
1521         %{?with_imap:--with-imap=shared --with-imap-ssl} \
1522         %{?with_interbase:--with-interbase=shared%{!?with_interbase_inst:,/usr}} \
1523         --with-jpeg-dir=/usr \
1524         %{?with_ldap:--with-ldap=shared} \
1525         --with-mcrypt=shared \
1526         %{?with_mhash:--with-mhash=shared} \
1527         --with-mime-magic=shared,/usr/share/file/magic.mime \
1528         %{?with_ming:--with-ming=shared} \
1529         %{?with_mm:--with-mm} \
1530         %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
1531         %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
1532         %{?with_mssql:--with-mssql=shared} \
1533         --with-mysql=shared,/usr \
1534         --with-mysql-sock=/var/lib/mysql/mysql.sock \
1535         %{?with_mysqli:--with-mysqli=shared} \
1536         --with-ncurses=shared \
1537         %{?with_oci8:--with-oci8=shared} \
1538         %{?with_openssl:--with-openssl=shared} \
1539         %{?with_oracle:--with-oracle=shared} \
1540         %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared} \
1541         --with-pear=%{php_pear_dir} \
1542         %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
1543         --with-png-dir=/usr \
1544         %{?with_pspell:--with-pspell=shared} \
1545         --with-readline=shared \
1546         %{?with_recode:--with-recode=shared} \
1547         --with-regex=php \
1548         --without-sablot-js \
1549         %{?with_snmp:--with-snmp=shared} \
1550         %{?with_sybase:--with-sybase=shared,/usr} \
1551         %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
1552         %{?with_sqlite:--with-sqlite=shared,/usr} \
1553         --with-t1lib=shared \
1554         %{?with_tidy:--with-tidy=shared} \
1555         --with-tiff-dir=/usr \
1556         %{?with_odbc:--with-unixODBC=shared} \
1557         %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
1558         --with-xsl=shared \
1559         --with-zlib=shared \
1560         --with-zlib-dir=shared,/usr
1561
1562 cp -f Makefile Makefile.$i
1563 # left for debugging purposes
1564 cp -f main/php_config.h php_config.h.$i
1565 done
1566
1567 # for now session_mm doesn't work with shared session module...
1568 # --enable-session=shared
1569 # %{!?with_mm:--with-mm=shared,no}%{?with_mm:--with-mm=shared}
1570
1571 %{__make}
1572
1573 # fix install paths, avoid evil rpaths
1574 %{__perl} -pi -e "s|^libdir=.*|libdir='%{_libdir}'|" libphp_common.la
1575 %{__perl} -pi -e "s|^libdir=.*|libdir='%{apachelib}'|" libphp5.la
1576 %{__perl} -pi -e 's|^(relink_command=.* -rpath )[^ ]*/libs |$1%{apachelib} |' libphp5.la
1577
1578 # for fcgi: -DDISCARD_PATH=0 -DENABLE_PATHINFO_CHECK=1 -DFORCE_CGI_REDIRECT=0
1579 # -DHAVE_FILENO_PROTO=1 -DHAVE_FPOS=1 -DHAVE_LIBNSL=1(die) -DHAVE_SYS_PARAM_H=1
1580 # -DPHP_FASTCGI=1 -DPHP_FCGI_STATIC=1 -DPHP_WRITE_STDOUT=1
1581
1582 %{__make} sapi/cgi/php -f Makefile.fcgi \
1583         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"
1584 cp -r sapi/cgi sapi/fcgi
1585 rm -rf sapi/cgi/.libs sapi/cgi/*.lo
1586
1587 # notes:
1588 # -DENABLE_CHROOT_FUNC=1 (cgi,fcgi) is used in ext/standard/dir.c (libphp_common)
1589 # -DPHP_WRITE_STDOUT is used also for cli, but not set by its config.m4
1590
1591 %{__make} sapi/cgi/php -f Makefile.cgi \
1592         CFLAGS_CLEAN="%{rpmcflags} -DDISCARD_PATH=1 -DENABLE_PATHINFO_CHECK=1 -DFORCE_CGI_REDIRECT=0 -DPHP_WRITE_STDOUT=1"
1593
1594 %install
1595 rm -rf $RPM_BUILD_ROOT
1596 install -d $RPM_BUILD_ROOT{%{_libdir}/php,%{apachelib},%{_sysconfdir}/{apache,cgi}} \
1597         $RPM_BUILD_ROOT%{httpdir}/icons \
1598         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1599         $RPM_BUILD_ROOT/var/run/php \
1600 %if %{_apache2}
1601         $RPM_BUILD_ROOT/etc/httpd/httpd.conf
1602 %else
1603         $RPM_BUILD_ROOT/etc/apache/apache.conf
1604 %endif
1605
1606 %{__make} install \
1607         INSTALL_ROOT=$RPM_BUILD_ROOT \
1608         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" \
1609         INSTALL_CLI="\$(LIBTOOL) --mode=install install sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php.cli"
1610
1611 # TODO:
1612 # Why make install doesn't install libphp5.so ?
1613 install libs/libphp5.so $RPM_BUILD_ROOT%{apachelib}
1614
1615 ln -sf php.cli $RPM_BUILD_ROOT%{_bindir}/php
1616
1617 install php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1618 install %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}
1619 install %{SOURCE2} php.gif $RPM_BUILD_ROOT%{httpdir}/icons
1620 install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
1621 %if %{_apache2}
1622 install %{SOURCE4} $RPM_BUILD_ROOT/etc/httpd/httpd.conf/70_mod_php.conf
1623 %endif
1624
1625 install %{SOURCE1} .
1626
1627 cp -f Zend/LICENSE{,.Zend}
1628
1629 rm -f $RPM_BUILD_ROOT%{apachelib}/libphp5.la
1630
1631 %clean
1632 rm -rf $RPM_BUILD_ROOT
1633
1634 %post
1635 %if ! %{_apache2}
1636 %{__perl} -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
1637         /etc/apache/apache.conf
1638 %{apxs} -e -a -n php5 %{_pkglibdir}/libphp5.so 1>&2
1639 if [ -f /var/lock/subsys/apache ]; then
1640         /etc/rc.d/init.d/apache restart 1>&2
1641 fi
1642 %else
1643 if [ -f /var/lock/subsys/httpd ]; then
1644         /etc/rc.d/init.d/httpd restart 1>&2
1645 fi
1646 %endif
1647
1648 %if %{_apache2}
1649 %postun
1650 if [ "$1" = "0" ]; then
1651         if [ -f /var/lock/subsys/httpd ]; then
1652                 /etc/rc.d/init.d/httpd restart 1>&2
1653         fi
1654 fi
1655 %else
1656 %preun
1657 if [ "$1" = "0" ]; then
1658         %{apxs} -e -A -n php5 %{_pkglibdir}/libphp5.so 1>&2
1659         %{__perl} -pi -e \
1660                 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
1661                 /etc/apache/apache.conf
1662         if [ -f /var/lock/subsys/apache ]; then
1663                 /etc/rc.d/init.d/apache restart 1>&2
1664         fi
1665 fi
1666 %endif
1667
1668 %post   common -p /sbin/ldconfig
1669 %postun common -p /sbin/ldconfig
1670
1671 %post bcmath
1672 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
1673
1674 %preun bcmath
1675 if [ "$1" = "0" ]; then
1676         %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
1677 fi
1678
1679 %post bzip2
1680 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1681
1682 %preun bzip2
1683 if [ "$1" = "0" ]; then
1684         %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1685 fi
1686
1687 %post calendar
1688 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
1689
1690 %preun calendar
1691 if [ "$1" = "0" ]; then
1692         %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1693 fi
1694
1695 %post cpdf
1696 %{_sbindir}/php-module-install install cpdf %{_sysconfdir}/php.ini
1697
1698 %preun cpdf
1699 if [ "$1" = "0" ]; then
1700         %{_sbindir}/php-module-install remove cpdf %{_sysconfdir}/php.ini
1701 fi
1702
1703 %post ctype
1704 %{_sbindir}/php-module-install install ctype %{_sysconfdir}/php.ini
1705
1706 %preun ctype
1707 if [ "$1" = "0" ]; then
1708         %{_sbindir}/php-module-install remove ctype %{_sysconfdir}/php.ini
1709 fi
1710
1711 %post curl
1712 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1713
1714 %preun curl
1715 if [ "$1" = "0" ]; then
1716         %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1717 fi
1718
1719 %post dba
1720 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1721
1722 %preun dba
1723 if [ "$1" = "0" ]; then
1724         %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1725 fi
1726
1727 %post dbase
1728 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1729
1730 %preun dbase
1731 if [ "$1" = "0" ]; then
1732         %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1733 fi
1734
1735 %post dbx
1736 %{_sbindir}/php-module-install install dbx %{_sysconfdir}/php.ini
1737
1738 %preun dbx
1739 if [ "$1" = "0" ]; then
1740         %{_sbindir}/php-module-install remove dbx %{_sysconfdir}/php.ini
1741 fi
1742
1743 %post dio
1744 %{_sbindir}/php-module-install install dio %{_sysconfdir}/php.ini
1745
1746 %preun dio
1747 if [ "$1" = "0" ]; then
1748         %{_sbindir}/php-module-install remove dio %{_sysconfdir}/php.ini
1749 fi
1750
1751 %post dom
1752 %{_sbindir}/php-module-install install dom %{_sysconfdir}/php.ini
1753
1754 %preun dom
1755 if [ "$1" = "0" ]; then
1756         %{_sbindir}/php-module-install remove dom %{_sysconfdir}/php.ini
1757 fi
1758
1759 %post exif
1760 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1761
1762 %preun exif
1763 if [ "$1" = "0" ]; then
1764         %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1765 fi
1766
1767 %post fam
1768 %{_sbindir}/php-module-install install fam %{_sysconfdir}/php.ini
1769
1770 %preun fam
1771 if [ "$1" = "0" ]; then
1772         %{_sbindir}/php-module-install remove fam %{_sysconfdir}/php.ini
1773 fi
1774
1775 %post fdf
1776 %{_sbindir}/php-module-install install fdf %{_sysconfdir}/php.ini
1777
1778 %preun fdf
1779 if [ "$1" = "0" ]; then
1780         %{_sbindir}/php-module-install remove fdf %{_sysconfdir}/php.ini
1781 fi
1782
1783 %post filepro
1784 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1785
1786 %preun filepro
1787 if [ "$1" = "0" ]; then
1788         %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1789 fi
1790
1791 %post ftp
1792 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1793
1794 %preun ftp
1795 if [ "$1" = "0" ]; then
1796         %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1797 fi
1798
1799 %post gd
1800 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1801
1802 %preun gd
1803 if [ "$1" = "0" ]; then
1804         %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1805 fi
1806
1807 %post gettext
1808 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1809
1810 %preun gettext
1811 if [ "$1" = "0" ]; then
1812         %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1813 fi
1814
1815 %post gmp
1816 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1817
1818 %preun gmp
1819 if [ "$1" = "0" ]; then
1820         %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1821 fi
1822
1823 %post hwapi
1824 %{_sbindir}/php-module-install install hwapi %{_sysconfdir}/php.ini
1825
1826 %preun hwapi
1827 if [ "$1" = "0" ]; then
1828         %{_sbindir}/php-module-install remove hwapi %{_sysconfdir}/php.ini
1829 fi
1830
1831 %post iconv
1832 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1833
1834 %preun iconv
1835 if [ "$1" = "0" ]; then
1836         %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1837 fi
1838
1839 %post imap
1840 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1841
1842 %preun imap
1843 if [ "$1" = "0" ]; then
1844         %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1845 fi
1846
1847 %post interbase
1848 %{_sbindir}/php-module-install install interbase %{_sysconfdir}/php.ini
1849
1850 %preun interbase
1851 if [ "$1" = "0" ]; then
1852         %{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
1853 fi
1854
1855 %post ldap
1856 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1857
1858 %preun ldap
1859 if [ "$1" = "0" ]; then
1860         %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1861 fi
1862
1863 %post mbstring
1864 %{_sbindir}/php-module-install install mbstring %{_sysconfdir}/php.ini
1865
1866 %preun mbstring
1867 if [ "$1" = "0" ]; then
1868         %{_sbindir}/php-module-install remove mbstring %{_sysconfdir}/php.ini
1869 fi
1870
1871 %post mcrypt
1872 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1873
1874 %preun mcrypt
1875 if [ "$1" = "0" ]; then
1876         %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1877 fi
1878
1879 %post mhash
1880 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1881
1882 %preun mhash
1883 if [ "$1" = "0" ]; then
1884         %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1885 fi
1886
1887 %post mime_magic
1888 %{_sbindir}/php-module-install install mime_magic %{_sysconfdir}/php.ini
1889
1890 %preun mime_magic
1891 if [ "$1" = "0" ]; then
1892         %{_sbindir}/php-module-install remove mime_magic %{_sysconfdir}/php.ini
1893 fi
1894
1895 %post ming
1896 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1897
1898 %preun ming
1899 if [ "$1" = "0" ]; then
1900         %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1901 fi
1902
1903 %post mnogosearch
1904 %{_sbindir}/php-module-install install mnogosearch %{_sysconfdir}/php.ini
1905
1906 %preun mnogosearch
1907 if [ "$1" = "0" ]; then
1908         %{_sbindir}/php-module-install remove mnogosearch %{_sysconfdir}/php.ini
1909 fi
1910
1911 %post msession
1912 %{_sbindir}/php-module-install install msession %{_sysconfdir}/php.ini
1913
1914 %preun msession
1915 if [ "$1" = "0" ]; then
1916         %{_sbindir}/php-module-install remove msession %{_sysconfdir}/php.ini
1917 fi
1918
1919 %post mssql
1920 %{_sbindir}/php-module-install install mssql %{_sysconfdir}/php.ini
1921
1922 %preun mssql
1923 if [ "$1" = "0" ]; then
1924         %{_sbindir}/php-module-install remove mssql %{_sysconfdir}/php.ini
1925 fi
1926
1927 %post mysql
1928 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1929
1930 %preun mysql
1931 if [ "$1" = "0" ]; then
1932         %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1933 fi
1934
1935 %post mysqli
1936 %{_sbindir}/php-module-install install mysqli %{_sysconfdir}/php.ini
1937
1938 %preun mysqli
1939 if [ "$1" = "0" ]; then
1940         %{_sbindir}/php-module-install remove mysqli %{_sysconfdir}/php.ini
1941 fi
1942
1943 %post ncurses
1944 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
1945 %{_sbindir}/php-module-install install ncurses %{_sysconfdir}/php-cgi.ini
1946 fi
1947 if [ -f %{_sysconfdir}/php-cli.ini ]; then
1948 %{_sbindir}/php-module-install install ncurses %{_sysconfdir}/php-cli.ini
1949 fi
1950
1951 %preun ncurses
1952 if [ "$1" = "0" ]; then
1953         if [ -f %{_sysconfdir}/php-cgi.ini ]; then
1954         %{_sbindir}/php-module-install remove ncurses %{_sysconfdir}/php-cgi.ini
1955         fi
1956         if [ -f %{_sysconfdir}/php-cli.ini ]; then
1957         %{_sbindir}/php-module-install remove ncurses %{_sysconfdir}/php-cli.ini
1958         fi
1959 fi
1960
1961 %post oci8
1962 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1963
1964 %preun oci8
1965 if [ "$1" = "0" ]; then
1966         %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1967 fi
1968
1969 %post odbc
1970 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1971
1972 %preun odbc
1973 if [ "$1" = "0" ]; then
1974         %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1975 fi
1976
1977 %post openssl
1978 %{_sbindir}/php-module-install install openssl %{_sysconfdir}/php.ini
1979
1980 %preun openssl
1981 if [ "$1" = "0" ]; then
1982         %{_sbindir}/php-module-install remove openssl %{_sysconfdir}/php.ini
1983 fi
1984
1985 %post oracle
1986 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1987
1988 %preun oracle
1989 if [ "$1" = "0" ]; then
1990         %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1991 fi
1992
1993 %post pcntl
1994 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
1995 %{_sbindir}/php-module-install install pcntl %{_sysconfdir}/php-cgi.ini
1996 fi
1997 if [ -f %{_sysconfdir}/php-cli.ini ]; then
1998 %{_sbindir}/php-module-install install pcntl %{_sysconfdir}/php-cli.ini
1999 fi
2000
2001 %preun pcntl
2002 if [ "$1" = "0" ]; then
2003         if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2004         %{_sbindir}/php-module-install remove pcntl %{_sysconfdir}/php-cgi.ini
2005         fi
2006         if [ -f %{_sysconfdir}/php-cli.ini ]; then
2007         %{_sbindir}/php-module-install remove pcntl %{_sysconfdir}/php-cli.ini
2008         fi
2009 fi
2010
2011 %post pcre
2012 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
2013
2014 %preun pcre
2015 if [ "$1" = "0" ]; then
2016         %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
2017 fi
2018
2019 %post pgsql
2020 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
2021
2022 %preun pgsql
2023 if [ "$1" = "0" ]; then
2024         %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
2025 fi
2026
2027 %post posix
2028 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
2029
2030 %preun posix
2031 if [ "$1" = "0" ]; then
2032         %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
2033 fi
2034
2035 %post pspell
2036 %{_sbindir}/php-module-install install pspell %{_sysconfdir}/php.ini
2037
2038 %preun pspell
2039 if [ "$1" = "0" ]; then
2040         %{_sbindir}/php-module-install remove pspell %{_sysconfdir}/php.ini
2041 fi
2042
2043 %post readline
2044 if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2045 %{_sbindir}/php-module-install install readline %{_sysconfdir}/php-cgi.ini
2046 fi
2047 if [ -f %{_sysconfdir}/php-cli.ini ]; then
2048 %{_sbindir}/php-module-install install readline %{_sysconfdir}/php-cli.ini
2049 fi
2050
2051 %preun readline
2052 if [ "$1" = "0" ]; then
2053         if [ -f %{_sysconfdir}/php-cgi.ini ]; then
2054         %{_sbindir}/php-module-install remove readline %{_sysconfdir}/php-cgi.ini
2055         fi
2056         if [ -f %{_sysconfdir}/php-cli.ini ]; then
2057         %{_sbindir}/php-module-install remove readline %{_sysconfdir}/php-cli.ini
2058         fi
2059 fi
2060
2061 %post recode
2062 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
2063
2064 %preun recode
2065 if [ "$1" = "0" ]; then
2066         %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
2067 fi
2068
2069 %post session
2070 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
2071
2072 %preun session
2073 if [ "$1" = "0" ]; then
2074         %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
2075 fi
2076
2077 %post shmop
2078 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
2079
2080 %preun shmop
2081 if [ "$1" = "0" ]; then
2082         %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
2083 fi
2084
2085 %post snmp
2086 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
2087
2088 %preun snmp
2089 if [ "$1" = "0" ]; then
2090         %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
2091 fi
2092
2093 %post soap
2094 %{_sbindir}/php-module-install install soap %{_sysconfdir}/php.ini
2095
2096 %preun soap
2097 if [ "$1" = "0" ]; then
2098         %{_sbindir}/php-module-install remove soap %{_sysconfdir}/php.ini
2099 fi
2100
2101 %post sockets
2102 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
2103
2104 %preun sockets
2105 if [ "$1" = "0" ]; then
2106         %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
2107 fi
2108
2109 %post sqlite
2110 %{_sbindir}/php-module-install install sqlite %{_sysconfdir}/php.ini
2111
2112 %preun sqlite
2113 if [ "$1" = "0" ]; then
2114         %{_sbindir}/php-module-install remove sqlite %{_sysconfdir}/php.ini
2115 fi
2116
2117 %post sybase
2118 %{_sbindir}/php-module-install install sybase %{_sysconfdir}/php.ini
2119
2120 %preun sybase
2121 if [ "$1" = "0" ]; then
2122         %{_sbindir}/php-module-install remove sybase %{_sysconfdir}/php.ini
2123 fi
2124
2125 %post sybase-ct
2126 %{_sbindir}/php-module-install install sybase_ct %{_sysconfdir}/php.ini
2127
2128 %preun sybase-ct
2129 if [ "$1" = "0" ]; then
2130         %{_sbindir}/php-module-install remove sybase_ct %{_sysconfdir}/php.ini
2131 fi
2132
2133 %post sysvmsg
2134 %{_sbindir}/php-module-install install sysvmsg %{_sysconfdir}/php.ini
2135
2136 %preun sysvmsg
2137 if [ "$1" = "0" ]; then
2138         %{_sbindir}/php-module-install remove sysvmsg %{_sysconfdir}/php.ini
2139 fi
2140
2141 %post sysvsem
2142 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
2143
2144 %preun sysvsem
2145 if [ "$1" = "0" ]; then
2146         %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
2147 fi
2148
2149 %post sysvshm
2150 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
2151
2152 %preun sysvshm
2153 if [ "$1" = "0" ]; then
2154         %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
2155 fi
2156
2157 %post wddx
2158 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
2159
2160 %preun wddx
2161 if [ "$1" = "0" ]; then
2162         %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
2163 fi
2164
2165 %post xml
2166 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
2167
2168 %preun xml
2169 if [ "$1" = "0" ]; then
2170         %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
2171 fi
2172
2173 %post xmlrpc
2174 %{_sbindir}/php-module-install install xmlrpc %{_sysconfdir}/php.ini
2175
2176 %preun xmlrpc
2177 if [ "$1" = "0" ]; then
2178         %{_sbindir}/php-module-install remove xmlrpc %{_sysconfdir}/php.ini
2179 fi
2180
2181 %post xsl
2182 %{_sbindir}/php-module-install install xsl %{_sysconfdir}/php.ini
2183
2184 %preun xsl
2185 if [ "$1" = "0" ]; then
2186         %{_sbindir}/php-module-install remove xsl %{_sysconfdir}/php.ini
2187 fi
2188
2189 %post yp
2190 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
2191
2192 %preun yp
2193 if [ "$1" = "0" ]; then
2194         %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
2195 fi
2196
2197 %post zlib
2198 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
2199
2200 %preun zlib
2201 if [ "$1" = "0" ]; then
2202         %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
2203 fi
2204
2205 %files
2206 %defattr(644,root,root,755)
2207 %if %{_apache2}
2208 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/httpd/httpd.conf/*_mod_php.conf
2209 %endif
2210 %attr(755,root,root) %{apachelib}/libphp5.so
2211 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-apache.ini
2212
2213 %files fcgi
2214 %defattr(644,root,root,755)
2215 %attr(755,root,root) %{_bindir}/php.fcgi
2216 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cgi-fcgi.ini
2217
2218 %files cgi
2219 %defattr(644,root,root,755)
2220 %attr(755,root,root) %{_bindir}/php.cgi
2221 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cgi.ini
2222
2223 %files cli
2224 %defattr(644,root,root,755)
2225 %attr(755,root,root) %{_bindir}/php.cli
2226 %attr(755,root,root) %{_bindir}/php
2227 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php-cli.ini
2228 %{_mandir}/man1/php.1*
2229
2230 %files common
2231 %defattr(644,root,root,755)
2232 %doc php.ini-*
2233 %doc CODING_STANDARDS CREDITS Zend/ZEND_CHANGES
2234 %doc LICENSE Zend/LICENSE.Zend EXTENSIONS NEWS TODO*
2235 %doc README.EXT_SKEL README.SELF-CONTAINED-EXTENSIONS
2236
2237 %dir %{_sysconfdir}
2238 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
2239 %attr(770,root,http) %dir %verify(not group mode) /var/run/php
2240 %{httpdir}/icons/*
2241 %attr(755,root,root) %{_sbindir}/*
2242 %attr(755,root,root) %{_libdir}/libphp_common-*.so
2243 %dir %{extensionsdir}
2244
2245 %files devel
2246 %defattr(644,root,root,755)
2247 %attr(755,root,root) %{_bindir}/phpextdist
2248 %attr(755,root,root) %{_bindir}/phpize
2249 %attr(755,root,root) %{_bindir}/php-config
2250 %attr(755,root,root) %{_libdir}/libphp_common.so
2251 %{_libdir}/libphp_common.la
2252 %{_includedir}/php
2253 %{_libdir}/php/build
2254
2255 %files bcmath
2256 %defattr(644,root,root,755)
2257 %attr(755,root,root) %{extensionsdir}/bcmath.so
2258
2259 %files bzip2
2260 %defattr(644,root,root,755)
2261 %attr(755,root,root) %{extensionsdir}/bz2.so
2262
2263 %files calendar
2264 %defattr(644,root,root,755)
2265 %attr(755,root,root) %{extensionsdir}/calendar.so
2266
2267 %if %{with cpdf}
2268 %files cpdf
2269 %defattr(644,root,root,755)
2270 %attr(755,root,root) %{extensionsdir}/cpdf.so
2271 %endif
2272
2273 %files ctype
2274 %defattr(644,root,root,755)
2275 %attr(755,root,root) %{extensionsdir}/ctype.so
2276
2277 %if %{with curl}
2278 %files curl
2279 %defattr(644,root,root,755)
2280 %attr(755,root,root) %{extensionsdir}/curl.so
2281 %endif
2282
2283 %files dba
2284 %defattr(644,root,root,755)
2285 %attr(755,root,root) %{extensionsdir}/dba.so
2286
2287 %files dbase
2288 %defattr(644,root,root,755)
2289 %attr(755,root,root) %{extensionsdir}/dbase.so
2290
2291 %files dbx
2292 %defattr(644,root,root,755)
2293 %attr(755,root,root) %{extensionsdir}/dbx.so
2294
2295 %files dio
2296 %defattr(644,root,root,755)
2297 %attr(755,root,root) %{extensionsdir}/dio.so
2298
2299 %files dom
2300 %defattr(644,root,root,755)
2301 %attr(755,root,root) %{extensionsdir}/dom.so
2302
2303 %if %{with fam}
2304 %files fam
2305 %defattr(644,root,root,755)
2306 %attr(755,root,root) %{extensionsdir}/fam.so
2307 %endif
2308
2309 %if %{with fdf}
2310 %files fdf
2311 %defattr(644,root,root,755)
2312 %attr(755,root,root) %{extensionsdir}/fdf.so
2313 %endif
2314
2315 %files exif
2316 %defattr(644,root,root,755)
2317 %attr(755,root,root) %{extensionsdir}/exif.so
2318
2319 %files filepro
2320 %defattr(644,root,root,755)
2321 %attr(755,root,root) %{extensionsdir}/filepro.so
2322
2323 %files ftp
2324 %defattr(644,root,root,755)
2325 %attr(755,root,root) %{extensionsdir}/ftp.so
2326
2327 %files gd
2328 %defattr(644,root,root,755)
2329 %attr(755,root,root) %{extensionsdir}/gd.so
2330
2331 %files gettext
2332 %defattr(644,root,root,755)
2333 %attr(755,root,root) %{extensionsdir}/gettext.so
2334
2335 %files gmp
2336 %defattr(644,root,root,755)
2337 %attr(755,root,root) %{extensionsdir}/gmp.so
2338
2339 %if %{with hwapi}
2340 %files hwapi
2341 %defattr(644,root,root,755)
2342 %attr(755,root,root) %{extensionsdir}/hwapi.so
2343 %endif
2344
2345 %files iconv
2346 %defattr(644,root,root,755)
2347 %attr(755,root,root) %{extensionsdir}/iconv.so
2348
2349 %if %{with imap}
2350 %files imap
2351 %defattr(644,root,root,755)
2352 %attr(755,root,root) %{extensionsdir}/imap.so
2353 %endif
2354
2355 %if %{with interbase}
2356 %files interbase
2357 %defattr(644,root,root,755)
2358 %attr(755,root,root) %{extensionsdir}/interbase.so
2359 %endif
2360
2361 %if %{with ldap}
2362 %files ldap
2363 %defattr(644,root,root,755)
2364 %attr(755,root,root) %{extensionsdir}/ldap.so
2365 %endif
2366
2367 %files mbstring
2368 %defattr(644,root,root,755)
2369 %attr(755,root,root) %{extensionsdir}/mbstring.so
2370
2371 %files mcrypt
2372 %defattr(644,root,root,755)
2373 %attr(755,root,root) %{extensionsdir}/mcrypt.so
2374
2375 %if %{with mhash}
2376 %files mhash
2377 %defattr(644,root,root,755)
2378 %attr(755,root,root) %{extensionsdir}/mhash.so
2379 %endif
2380
2381 %files mime_magic
2382 %defattr(644,root,root,755)
2383 %attr(755,root,root) %{extensionsdir}/mime_magic.so
2384
2385 %if %{with ming}
2386 %files ming
2387 %defattr(644,root,root,755)
2388 %attr(755,root,root) %{extensionsdir}/ming.so
2389 %endif
2390
2391 %if %{with mnogosearch}
2392 %files mnogosearch
2393 %defattr(644,root,root,755)
2394 %attr(755,root,root) %{extensionsdir}/mnogosearch.so
2395 %endif
2396
2397 %if %{with msession}
2398 %files msession
2399 %defattr(644,root,root,755)
2400 %attr(755,root,root) %{extensionsdir}/msession.so
2401 %endif
2402
2403 %if %{with mssql}
2404 %files mssql
2405 %defattr(644,root,root,755)
2406 %attr(755,root,root) %{extensionsdir}/mssql.so
2407 %endif
2408
2409 %files mysql
2410 %defattr(644,root,root,755)
2411 %attr(755,root,root) %{extensionsdir}/mysql.so
2412
2413 %if %{with mysqli}
2414 %files mysqli
2415 %defattr(644,root,root,755)
2416 %attr(755,root,root) %{extensionsdir}/mysqli.so
2417 %endif
2418
2419 %files ncurses
2420 %defattr(644,root,root,755)
2421 %attr(755,root,root) %{extensionsdir}/ncurses.so
2422
2423 %if %{with oci8}
2424 %files oci8
2425 %defattr(644,root,root,755)
2426 %attr(755,root,root) %{extensionsdir}/oci8.so
2427 %endif
2428
2429 %if %{with odbc}
2430 %files odbc
2431 %defattr(644,root,root,755)
2432 %attr(755,root,root) %{extensionsdir}/odbc.so
2433 %endif
2434
2435 %if %{with openssl}
2436 %files openssl
2437 %defattr(644,root,root,755)
2438 %attr(755,root,root) %{extensionsdir}/openssl.so
2439 %endif
2440
2441 %if %{with oracle}
2442 %files oracle
2443 %defattr(644,root,root,755)
2444 %attr(755,root,root) %{extensionsdir}/oracle.so
2445 %endif
2446
2447 %files pcntl
2448 %defattr(644,root,root,755)
2449 %attr(755,root,root) %{extensionsdir}/pcntl.so
2450
2451 %if %{with pcre}
2452 %files pcre
2453 %defattr(644,root,root,755)
2454 %attr(755,root,root) %{extensionsdir}/pcre.so
2455 %endif
2456
2457 %if %{with pgsql}
2458 %files pgsql
2459 %defattr(644,root,root,755)
2460 %attr(755,root,root) %{extensionsdir}/pgsql.so
2461 %endif
2462
2463 %files posix
2464 %defattr(644,root,root,755)
2465 %attr(755,root,root) %{extensionsdir}/posix.so
2466
2467 %if %{with pspell}
2468 %files pspell
2469 %defattr(644,root,root,755)
2470 %attr(755,root,root) %{extensionsdir}/pspell.so
2471 %endif
2472
2473 %files readline
2474 %defattr(644,root,root,755)
2475 %attr(755,root,root) %{extensionsdir}/readline.so
2476
2477 %if %{with recode}
2478 %files recode
2479 %defattr(644,root,root,755)
2480 %attr(755,root,root) %{extensionsdir}/recode.so
2481 %endif
2482
2483 # session_mm doesn't work with shared session
2484 #%files session
2485 #%defattr(644,root,root,755)
2486 #%attr(755,root,root) %{extensionsdir}/session.so
2487
2488 %files shmop
2489 %defattr(644,root,root,755)
2490 %attr(755,root,root) %{extensionsdir}/shmop.so
2491
2492 %if %{with snmp}
2493 %files snmp
2494 %defattr(644,root,root,755)
2495 %attr(755,root,root) %{extensionsdir}/snmp.so
2496 %endif
2497
2498 %files soap
2499 %defattr(644,root,root,755)
2500 %attr(755,root,root) %{extensionsdir}/soap.so
2501
2502 %files sockets
2503 %defattr(644,root,root,755)
2504 %attr(755,root,root) %{extensionsdir}/sockets.so
2505
2506 %if %{with sqlite}
2507 %files sqlite
2508 %defattr(644,root,root,755)
2509 %attr(755,root,root) %{extensionsdir}/sqlite.so
2510 %endif
2511
2512 %if %{with sybase}
2513 %files sybase
2514 %defattr(644,root,root,755)
2515 %attr(755,root,root) %{extensionsdir}/sybase.so
2516 %endif
2517
2518 %if %{with sybase_ct}
2519 %files sybase-ct
2520 %defattr(644,root,root,755)
2521 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
2522 %endif
2523
2524 %files sysvmsg
2525 %defattr(644,root,root,755)
2526 %attr(755,root,root) %{extensionsdir}/sysvmsg.so
2527
2528 %files sysvsem
2529 %defattr(644,root,root,755)
2530 %attr(755,root,root) %{extensionsdir}/sysvsem.so
2531
2532 %files sysvshm
2533 %defattr(644,root,root,755)
2534 %attr(755,root,root) %{extensionsdir}/sysvshm.so
2535
2536 %if %{with tidy}
2537 %files tidy
2538 %defattr(644,root,root,755)
2539 %attr(755,root,root) %{extensionsdir}/tidy.so
2540 %endif
2541
2542 %if %{with wddx}
2543 %files wddx
2544 %defattr(644,root,root,755)
2545 %attr(755,root,root) %{extensionsdir}/wddx.so
2546 %endif
2547
2548 %files xml
2549 %defattr(644,root,root,755)
2550 %attr(755,root,root) %{extensionsdir}/xml.so
2551
2552 %if %{with xmlrpc}
2553 %files xmlrpc
2554 %defattr(644,root,root,755)
2555 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
2556 %endif
2557
2558 %files xsl
2559 %defattr(644,root,root,755)
2560 %attr(755,root,root) %{extensionsdir}/xsl.so
2561
2562 %files yp
2563 %defattr(644,root,root,755)
2564 %attr(755,root,root) %{extensionsdir}/yp.so
2565
2566 %files zlib
2567 %defattr(644,root,root,755)
2568 %attr(755,root,root) %{extensionsdir}/zlib.so
This page took 0.19729 seconds and 3 git commands to generate.