]> git.pld-linux.org Git - packages/php.git/blob - php.spec
-added --enable-versioning to %configure macors,
[packages/php.git] / php.spec
1 #
2 %define _apache2        %(if rpm -q apache-devel | grep -Eq '\-2\.[0-9]+\.' 2> /dev/null ; then echo 1; else echo 0; fi)
3
4 %if %{_apache2}
5 %define _without_recode 1
6 %define _without_mm 1
7 %endif
8
9 # Conditional build:
10 # _with_oracle  - with oracle support
11 # _with_interbase - with interbase support
12 # _with_oci8    - with oci8 support
13 # _with_java    - with Java support
14 # _with_libcpdf - with libcpdf support
15 # _with_openssl - with OpenSSL support
16 # _with_wddx    - with WDDX support
17 # _with_xslt    - with XSLT support
18 # _without_imap - without IMAP support
19 # _without_ldap - without LDAP support
20 # _without_odbc - without ODBC support
21 # _without_snmp - without SNMP support
22 # _without_sablot - without sablot support
23 # _without_recode - without recode support
24 # _without_mm   - without mm support
25 Summary:        The PHP HTML-embedded scripting language for use with Apache
26 Summary(fr):    Le langage de script embarque-HTML PHP pour Apache
27 Summary(pl):    Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
28 Summary(pt_BR): A linguagem de script PHP
29 Name:           php
30 Version:        4.1.2
31 Release:        6
32 Epoch:          1
33 Group:          Libraries
34 License:        The PHP license (see "LICENSE" file included in distribution)
35 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.gz
36 Source1:        FAQ.%{name}
37 Source2:        %{name}.ini
38 Source3:        zend.gif
39 Source4:        http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
40 Source5:        %{name}-module-install
41 Source6:        %{name}-xml_fix
42 Patch0:         %{name}-shared.patch
43 Patch1:         %{name}-pldlogo.patch
44 Patch2:         %{name}-mysql-socket.patch
45 Patch3:         %{name}-mail.patch
46 Patch4:         %{name}-link-libs.patch
47 Patch5:         %{name}-am_ac_lt.patch
48 Patch6:         %{name}-fastcgi.patch
49 Patch7:         %{name}-ac250.patch
50 Patch8:         %{name}-mailsecurity2.patch
51 Patch9:         %{name}-oracle9.patch
52 Patch10:        %{name}-no_%{name}_pcre_in_SAPI_c.patch
53 Patch11:        %{name}-libpq_fs_h_path.patch
54 Patch12:        %{name}-apache2.patch
55 Patch13:        %{name}-pdflib4.0.2.patch
56 Icon:           php4.gif
57 URL:            http://www.php.net/
58 BuildRequires:  apache(EAPI)-devel
59 BuildRequires:  autoconf >= 1.4
60 BuildRequires:  automake >= 1.4d
61 BuildRequires:  bison
62 BuildRequires:  bzip2-devel
63 BuildRequires:  curl-devel
64 BuildRequires:  cyrus-sasl-devel
65 BuildRequires:  db3-devel >= 3.1.17
66 BuildRequires:  expat-devel
67 BuildRequires:  flex
68 BuildRequires:  gmp-devel
69 BuildRequires:  freetype-devel >= 2.0
70 BuildRequires:  gd-devel >= 2.0.1
71 BuildRequires:  gdbm-devel
72 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
73 # I think jdk is better for java
74 # BuildRequires:        jdk
75 %{?_with_java:BuildRequires:    kaffe-devel}
76 BuildRequires:  libjpeg-devel
77 BuildRequires:  libltdl-devel >= 1.4
78 BuildRequires:  libmcrypt-devel >= 2.4.4
79 BuildRequires:  libpng >= 1.0.8
80 BuildRequires:  libtiff-devel
81 BuildRequires:  libtool >= 1.4
82 BuildRequires:  libxml2-devel >= 2.2.7
83 BuildRequires:  mhash-devel
84 BuildRequires:  ming-devel >= 0.1.0
85 %{!?_without_mm:BuildRequires:  mm-devel >= 1.1.3}
86 BuildRequires:  mysql-devel >= 3.23.32
87 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
88 BuildRequires:  pam-devel
89 BuildRequires:  pdflib-devel >= 4.0.0
90 BuildRequires:  perl
91 BuildRequires:  pkgconfig
92 BuildRequires:  postgresql-devel
93 BuildRequires:  postgresql-backend-devel >= 7.2
94 %{!?_without_recode:BuildRequires:      recode-devel >= 3.5d-3}
95 BuildRequires:  t1lib-devel
96 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.5}
97 %{!?_without_odbc:BuildRequires: unixODBC-devel}
98 BuildRequires:  zip
99 BuildRequires:  zlib-devel >= 1.0.9
100 #BuildRequires: fastcgi-devkit
101 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
102 %{!?_without_openssl:BuildRequires:     openssl-devel >= 0.9.6a}
103 %endif
104 %{?_with_libcpdf:BuildRequires: libcpdf-devel >= 2.00}
105 %{?_with_xslt:BuildRequires:    sablotron-devel}
106 %{?_with_xslt:BuildRequires:    expat-devel}
107 %{?_with_xslt:BuildRequires:    w3c-libwww-devel}
108 # apache 1.3 vs apache 2.0
109 %if %{_apache2}
110 PreReq:         apache(EAPI) >= 2.0.35
111 %else
112 PreReq:         apache(EAPI) < 2.0.0
113 PreReq:         apache(EAPI) >= 1.3.9
114 %endif
115 PreReq:         perl
116 PreReq:         %{_sbindir}/apxs
117 PreReq:         %{name}-common = %{version}
118 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
119 Obsoletes:      phpfi
120 Obsoletes:      apache-mod_php
121
122 %define         _sysconfdir     /etc/php
123 %define         extensionsdir   %{_libdir}/php
124 %define         peardir         %{_datadir}/pear
125
126 %description
127 PHP is an HTML-embedded scripting language. PHP attempts to make it
128 easy for developers to write dynamically generated web pages. PHP also
129 offers built-in database integration for several commercial and
130 non-commercial database management systems, so writing a
131 database-enabled web page with PHP is fairly simple. The most common
132 use of PHP coding is probably as a replacement for CGI scripts. The
133 mod_php module enables the Apache web server to understand and process
134 the embedded PHP language in web pages. This package contains PHP
135 version %{version}. If you use applications which specifically rely on
136 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
137 module contained in the phpfi package. If you're just starting with
138 PHP, you should install this package. You'll also need to install the
139 Apache web server.
140
141 %description -l fr
142 PHP est un langage de script embarque dans le HTM. PHP essaye de
143 rendre simple aux developpeurs d'ecrire des pages web generees
144 dynamiquement. PHP incorpore egalement une integration avec plusieurs
145 systemes de gestion de bases de donnees commerciaux et
146 non-connerciaux, qui rent facile la creation de pages web liees avec
147 des bases de donnees. L'utilisation la plus commune de PHP est
148 probablement en remplacement de scripts CGI. Le module mod_php permet
149 au serveur web apache de comprendre et de traiter le langage PHP
150 integre dans des pages web. Ce package contient PHP version
151 %{version}. Si vous utilisez des applications qui utilisent
152 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
153 dans le package mod_php. Si vous debutez avec PHP, vous devriez
154 installer ce package. Vous aurez egalement besoin d'installer le
155 serveur web Apache.
156
157 %description -l pt_BR
158 PHP: Preprocessador de Hipertexto versão 4 é uma linguagem script
159 embutida em HTML. Muito de sua sintaxe é emprestada de C, Java e Perl,
160 com algumas características únicas, específicas ao PHP. O objetivo da
161 linguagem é permitir que desenvolvedores web escrevam páginas
162 dinamicamente geradas de forma rápida.
163
164 Com módulos adicionais ela suporta comunicação direta com bancos de
165 dados postgresql, mysql, msql, arquivos DBF e tem interface para a
166 biblioteca gráfica gd.
167
168 %description -l pl
169 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
170 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
171 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
172 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
173 zosta³a z jêzyków: C, Java i Perl.
174
175 %package cgi
176 Summary:        PHP as CGI program
177 Summary(pl):    PHP jako program CGI
178 Group:          Libraries
179 PreReq:         %{name}-common = %{version}
180
181 %description cgi
182 PHP as CGI program.
183
184 %description cgi -l pl
185 PHP jako program CGI.
186
187 %package common
188 Summary:        Common files nneded by both apache module and CGI
189 Summary(pl):    Wspólne pliki dla modu³u apacha i programu CGI
190 Group:          Libraries
191
192 %description common
193 Common files needed by both apache module and CGI.
194
195 %description common -l pl
196 Wspólne pliki dla modu³u apacha i programu CGI.
197
198 %package mysql
199 Summary:        MySQL database module for PHP
200 Summary(pl):    Modu³ bazy danych MySQL dla PHP
201 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados MySQL
202 Group:          Libraries
203 Requires(post): %{name}-common = %{version}
204 Requires(preun):        %{name}-common = %{version}
205
206 %description mysql
207 This is a dynamic shared object (DSO) for Apache that will add MySQL
208 database support to PHP. If you need back-end support for MySQL, you
209 should install this package in addition to the main %{name} package.
210
211 %description mysql -l pl
212 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
213
214 %description mysql -l pt_BR
215 Um módulo para aplicações PHP que usam bancos de dados MySQL.
216
217 %package pdf
218 Summary:        libPDF module for PHP
219 Summary(pl):    Modu³ do tworzenia plików PDF dla PHP
220 Group:          Libraries
221 Requires(post): %{name}-common = %{version}
222 Requires(preun):        %{name}-common = %{version}
223 PreReq:         pdflib
224
225 %description pdf
226 This is a dynamic shared object (DSO) for Apache that will add PDF
227 support to PHP.
228
229 %description pdf -l pl
230 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
231 pdflib.
232
233 %package pgsql
234 Summary:        PostgreSQL database module for PHP
235 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP
236 Summary(pt_BR): Um módulo para aplicações PHP que usam bancos de dados postgresql
237 Group:          Libraries
238 Requires(post): %{name}-common = %{version}
239 Requires(preun):        %{name}-common = %{version}
240
241 %description pgsql
242 This is a dynamic shared object (DSO) for Apache that will add
243 PostgreSQL database support to PHP. If you need back-end support for
244 PostgreSQL, you should install this package in addition to the main
245 %{name} package.
246
247 %description pgsql -l pl
248 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
249
250 %description pgsql -l pt_BR
251 Um módulo para aplicações PHP que usam bancos de dados postgresql.
252
253 %package oci8
254 Summary:        Oracle 8 database module for PHP
255 Summary(pl):    Modu³ bazy danych Oracle 8 dla PHP
256 Group:          Libraries
257 Requires(post): %{name}-common = %{version}
258 Requires(preun):        %{name}-common = %{version}
259 Autoreq:        false
260
261 %description oci8
262 This is a dynamic shared object (DSO) for Apache that will add Oracle
263 8 database support to PHP. If you need back-end support for Oracle 8,
264 you should install this package in addition to the main %{name}
265 package.
266
267 %description oci8 -l pl
268 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
269
270 %package oracle
271 Summary:        Oracle 7 database module for PHP
272 Summary(pl):    Modu³ bazy danych Oracle 7 dla PHP
273 Group:          Libraries
274 Requires(post): %{name}-common = %{version}
275 Requires(preun):        %{name}-common = %{version}
276 Autoreq:        false
277
278 %description oracle
279 This is a dynamic shared object (DSO) for Apache that will add Oracle
280 7 database support to PHP. If you need back-end support for Oracle 7,
281 you should install this package in addition to the main %{name}
282 package.
283
284 %description oracle -l pl
285 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
286
287 %package interbase
288 Summary:        Interbase database module for PHP
289 Summary(pl):    Modu³ bazy danych Interbase dla PHP
290 Group:          Libraries
291 Requires(post): %{name}-common = %{version}
292 Requires(preun):        %{name}-common = %{version}
293 Autoreq:        false
294
295 %description interbase
296 This is a dynamic shared object (DSO) for Apache that will add
297 InterBase database support to PHP. If you need back-end support for
298 InterBase. you should install this package in addition to the main
299 %{name} package.
300
301 %description interbase -l pl
302 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych InterBase.
303
304 %package gd
305 Summary:        GD extension module for PHP
306 Summary:        Modu³ GD dla PHP
307 Group:          Libraries
308 Requires(post): %{name}-common = %{version}
309 Requires(preun):        %{name}-common = %{version}
310
311 %description gd
312 This is a dynamic shared object (DSO) for Apache that will add GD
313 support to PHP. You should install this package in addition to the
314 main %{name} package if you want to create and manipulate images with
315 PHP.
316
317 %description gd -l pl
318 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
319 obrazków z poziomu PHP.
320
321 %package java
322 Summary:        Java extension module for PHP
323 Summary(pl):    Modu³ Javy dla PHP
324 Group:          Libraries
325 Requires(post): %{name}-common = %{version}
326 Requires(preun):        %{name}-common = %{version}
327
328 %description java
329 This is a dynamic shared object (DSO) for Apache that will add JAVA
330 support to PHP. This extension provides a simple and effective means
331 for creating and invoking methods on Java objects from PHP.
332
333 %description java -l pl
334 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
335 obiektów Javy z poziomu PHP.
336
337 %package xml
338 Summary:        XML extension module for PHP
339 Summary(pl):    Modu³ XML dla PHP
340 Group:          Libraries
341 Requires(post): %{name}-common = %{version}
342 Requires(preun):        %{name}-common = %{version}
343
344 %description xml
345 This is a dynamic shared object (DSO) for Apache that will add XML
346 support to PHP. This extension lets you create XML parsers and then
347 define handlers for different XML events. If you want to be able to
348 parse XML documents you should install this package in addition to the
349 main %{name} package.
350
351 %description xml -l pl
352 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
353 zwi±zanych z tymi plikami.
354
355 %package dba
356 Summary:        DBA extension module for PHP
357 Summary(pl):    Modu³ DBA dla PHP
358 Group:          Libraries
359 Requires(post): %{name}-common = %{version}
360 Requires(preun):        %{name}-common = %{version}
361
362 %description dba
363 This is a dynamic shared object (DSO) for Apache that will add
364 flat-file databases (DBA) support to PHP.
365
366 %description dba -l pl
367 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
368 wsparcie dla baz danych DBA.
369
370 %package odbc
371 Summary:        ODBC extension module for PHP
372 Summary(pl):    Modu³ ODBC dla PHP
373 Summary(pt_BR): Um módulo para aplicações PHP que usam bases de dados ODBC
374 Group:          Libraries
375 Requires(post): %{name}-common = %{version}
376 Requires(preun):        %{name}-common = %{version}
377
378 %description odbc
379 This is a dynamic shared object (DSO) for Apache that will add ODBC
380 support to PHP.
381
382 %description odbc -l pl
383 Modu³ PHP ze wsparciem dla ODBC.
384
385 %description odbc -l pt_BR
386 Um módulo para aplicações PHP que usam ODBC.
387
388 %package calendar
389 Summary:        Calendar extension module for PHP
390 Summary(pl):    Modu³ funkcji kalendarza dla PHP
391 Group:          Libraries
392 Requires(post): %{name}-common = %{version}
393 Requires(preun):        %{name}-common = %{version}
394
395 %description calendar
396 This is a dynamic shared object (DSO) for Apache that will add
397 calendar support to PHP.
398
399 %description calendar -l pl
400 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
401 wsparcie dla kalendarza.
402
403 %package dbase
404 Summary:        DBase extension module for PHP
405 Summary(pl):    Modu³ DBase dla PHP
406 Group:          Libraries
407 Requires(post): %{name}-common = %{version}
408 Requires(preun):        %{name}-common = %{version}
409
410 %description dbase
411 This is a dynamic shared object (DSO) for Apache that will add DBase
412 support to PHP.
413
414 %description dbase -l pl
415 Modu³ PHP ze wsparciem dla DBase.
416
417 %package filepro
418 Summary:        FilePro extension module for PHP
419 Summary(pl):    Modu³ FilePro dla PHP
420 Group:          Libraries
421 Requires(post): %{name}-common = %{version}
422 Requires(preun):        %{name}-common = %{version}
423
424 %description filepro
425 This is a dynamic shared object (DSO) for Apache that will add FilePro
426 support to PHP.
427
428 %description filepro -l pl
429 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
430 wsparcie dla FilePro.
431
432 %package posix
433 Summary:        POSIX extension module for PHP
434 Summary(pl):    Modu³ POSIX dla PHP
435 Group:          Libraries
436 Requires(post): %{name}-common = %{version}
437 Requires(preun):        %{name}-common = %{version}
438
439 %description posix
440 This is a dynamic shared object (DSO) for Apache that will add POSIX
441 functions support to PHP.
442
443 %description posix -l pl
444 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
445
446 %package pcre
447 Summary:        PCRE extension module for PHP
448 Summary(pl):    Modu³ PCRE dla PHP
449 Group:          Libraries
450 Requires(post): %{name}-common = %{version}
451 Requires(preun):        %{name}-common = %{version}
452
453 %description pcre
454 This is a dynamic shared object (DSO) for Apache that will add Perl
455 Compatible Regular Expression support to PHP.
456
457 %description pcre -l pl
458 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
459 (Perl Compatible Regular Expressions)
460
461 %package sysvsem
462 Summary:        SysV sem extension module for PHP
463 Summary(pl):    Modu³ SysV sem dla PHP
464 Group:          Libraries
465 Requires(post): %{name}-common = %{version}
466 Requires(preun):        %{name}-common = %{version}
467
468 %description sysvsem
469 This is a dynamic shared object (DSO) for Apache that will add SysV
470 semafores support to PHP.
471
472 %description sysvsem -l pl
473 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
474
475 %package sysvshm
476 Summary:        SysV shm extension module for PHP
477 Summary(pl):    Modu³ SysV shm dla PHP
478 Group:          Libraries
479 Requires(post): %{name}-common = %{version}
480 Requires(preun):        %{name}-common = %{version}
481
482 %description sysvshm
483 This is a dynamic shared object (DSO) for Apache that will add SysV
484 Shared Memory support to PHP.
485
486 %description sysvshm -l pl
487 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
488
489 %package yp
490 Summary:        NIS (yp) extension module for PHP
491 Summary(pl):    Modu³ NIS (yp) dla PHP
492 Group:          Libraries
493 Requires(post): %{name}-common = %{version}
494 Requires(preun):        %{name}-common = %{version}
495
496 %description yp
497 This is a dynamic shared object (DSO) for Apache that will add NIS
498 (Yellow Pages) support to PHP.
499
500 %description yp -l pl
501 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
502 wsparcie dla NIS (Yellow Pages).
503
504 %package bcmath
505 Summary:        bcmath extension module for PHP
506 Summary(pl):    Modu³ bcmath dla PHP
507 Group:          Libraries
508 Requires(post): %{name}-common = %{version}
509 Requires(preun):        %{name}-common = %{version}
510
511 %description bcmath
512 This is a dynamic shared object (DSO) for Apache that will add bc
513 style precision math functions support to PHP.
514
515 %description bcmath -l pl
516 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
517 matematycznych takich jak w programie bc.
518
519 %package ftp
520 Summary:        FTP extension module for PHP
521 Summary(pl):    Modu³ FTP dla PHP
522 Group:          Libraries
523 Requires(post): %{name}-common = %{version}
524 Requires(preun):        %{name}-common = %{version}
525
526 %description ftp
527 This is a dynamic shared object (DSO) for Apache that will add FTP
528 support to PHP.
529
530 %description ftp -l pl
531 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
532
533 %package zlib
534 Summary:        Zlib extension module for PHP
535 Summary(pl):    Modu³ zlib dla PHP
536 Group:          Libraries
537 Requires(post): %{name}-common = %{version}
538 Requires(preun):        %{name}-common = %{version}
539
540 %description zlib
541 This is a dynamic shared object (DSO) for Apache that will add
542 compression (zlib) support to PHP.
543
544 %description zlib -l pl
545 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
546
547 %package bzip2
548 Summary:        Bzip2 extension module for PHP
549 Summary(pl):    Modu³ bzip2 dla PHP
550 Group:          Libraries
551 Requires(post): %{name}-common = %{version}
552 Requires(preun):        %{name}-common = %{version}
553
554 %description bzip2
555 This is a dynamic shared object (DSO) for Apache that will add
556 compression (bzip2) support to PHP.
557
558 %description bzip2 -l pl
559 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê bzip2).
560
561 %package exif
562 Summary:        exif extension module for PHP
563 Summary(pl):    Modu³ exif dla PHP
564 Group:          Libraries
565 Requires(post): %{name}-common = %{version}
566 Requires(preun):        %{name}-common = %{version}
567
568 %description exif
569 This is a dynamic shared object (DSO) for Apache that will add exif
570 support to PHP.
571
572 %description exif -l pl
573 Modu³ PHP dodaj±cy obs³ugê plików EXIF.
574
575 %package recode
576 Summary:        recode extension module for PHP
577 Summary(pl):    Modu³ recode dla PHP
578 Group:          Libraries
579 Requires(post): %{name}-common = %{version}
580 Requires(preun):        %{name}-common = %{version}
581 Requires:       recode >= 3.5d-3
582
583 %description recode
584 This is a dynamic shared object (DSO) for Apache that will add recode
585 support to PHP.
586
587 %description recode -l pl
588 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
589 bibliotekê recode).
590
591 %package session
592 Summary:        session extension module for PHP
593 Summary(pl):    Modu³ session dla PHP
594 Group:          Libraries
595 Requires(post): %{name}-common = %{version}
596 Requires(preun):        %{name}-common = %{version}
597
598 %description session
599 This is a dynamic shared object (DSO) for Apache that will add session
600 support to PHP.
601
602 %description session -l pl
603 Modu³ PHP dodaj±cy obs³ugê sesji.
604
605 %package gettext
606 Summary:        gettext extension module for PHP
607 Summary(pl):    Modu³ gettext dla PHP
608 Group:          Libraries
609 Requires(post): %{name}-common = %{version}
610 Requires(preun):        %{name}-common = %{version}
611
612 %description gettext
613 This is a dynamic shared object (DSO) for Apache that will add gettext
614 support to PHP.
615
616 %description gettext -l pl
617 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
618
619 %package snmp
620 Summary:        SNMP extension module for PHP
621 Summary(pl):    Modu³ SNMP dla PHP
622 Group:          Libraries
623 Requires(post): %{name}-common = %{version}
624 Requires(preun):        %{name}-common = %{version}
625
626 %description snmp
627 This is a dynamic shared object (DSO) for Apache that will add SNMP
628 support to PHP.
629
630 %description snmp -l pl
631 Modu³ PHP dodaj±cy obs³ugê SNMP.
632
633 %package imap
634 Summary:        IMAP extension module for PHP
635 Summary(pl):    Modu³ IMAP dla PHP
636 Summary(pt_BR): Um módulo para aplicações PHP que usam IMAP
637 Group:          Libraries
638 Requires(post): %{name}-common = %{version}
639 Requires(preun):        %{name}-common = %{version}
640
641 %description imap
642 This is a dynamic shared object (DSO) for Apache that will add IMAP
643 support to PHP.
644
645 %description imap -l pl
646 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
647
648 %description imap -l pt_BR
649 Um módulo para aplicações PHP que usam IMAP.
650
651 %package ldap
652 Summary:        LDAP extension module for PHP
653 Summary(pl):    Modu³ LDAP dla PHP
654 Summary(pt_BR): Um módulo para aplicações PHP que usam LDAP
655 Group:          Libraries
656 Requires(post): %{name}-common = %{version}
657 Requires(preun):        %{name}-common = %{version}
658
659 %description ldap
660 This is a dynamic shared object (DSO) for Apache that will add LDAP
661 support to PHP.
662
663 %description ldap -l pl
664 Modu³ PHP dodaj±cy obs³ugê LDAP.
665
666 %description ldap -l pt_BR
667 Um módulo para aplicações PHP que usam LDAP.
668
669 %package sockets
670 Summary:        sockets extension module for PHP
671 Summary(pl):    Modu³ socket dla PHP
672 Group:          Libraries
673 Requires(post): %{name}-common = %{version}
674 Requires(preun):        %{name}-common = %{version}
675
676 %description sockets
677 This is a dynamic shared object (DSO) for Apache that will add sockets
678 support to PHP.
679
680 %description sockets -l pl
681 Modu³ PHP dodaj±cy obs³ugê gniazdek.
682
683 %package mcrypt
684 Summary:        mcrypt extension module for PHP
685 Summary(pl):    Modu³ mcrypt dla PHP
686 Group:          Libraries
687 Requires(post): %{name}-common = %{version}
688 Requires(preun):        %{name}-common = %{version}
689
690 %description mcrypt
691 This is a dynamic shared object (DSO) for Apache that will add mcrypt
692 support to PHP.
693
694 %description mcrypt -l pl
695 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
696
697 %package mhash
698 Summary:        mhash extension module for PHP
699 Summary(pl):    Modu³ mhash dla PHP
700 Group:          Libraries
701 Requires(post): %{name}-common = %{version}
702 Requires(preun):        %{name}-common = %{version}
703
704 %description mhash
705 This is a dynamic shared object (DSO) for Apache that will add mhash
706 support to PHP.
707
708 %description mhash -l pl
709 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
710
711 %package doc
712 Summary:        Online manual for PHP
713 Summary(pl):    Dokumentacja dla PHP
714 Summary(pt_BR): Manual da linguagem PHP, em formato HTML
715 Group:          Networking/Daemons
716 Obsoletes:      php-manual
717
718 %description doc
719 Comprehensive documentation for PHP, viewable through your web server,
720 too!
721
722 %description doc -l pl
723 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
724 WWW.
725
726 %description doc -l pt_BR
727 Manual da linguagem PHP, em formato HTML.
728
729 %package pear
730 Summary:        PEAR - PHP Extension and Application Repository
731 Summary(pl):    PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
732 Group:          Development/Languages/PHP
733 Requires:       %{name}-cgi = %{version}
734 Requires:       %{name}-xml = %{version}
735
736 %description pear
737 PEAR - PHP Extension and Application Repository.
738
739 %description pear -l pl
740 PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
741 Repozytorium Aplikacji.
742
743 %package domxml
744 Summary:        DOM XML module
745 Summary(pl):    Modu³ DOM XML
746 Group:          Development/Languages/PHP
747
748 %description domxml
749 DOM XML module.
750
751 %description domxml -l pl
752 Modu³ DOM XML.
753
754 %package devel
755 Summary:        Files for PHP modules development
756 Summary(pl):    Pliki do kompilacji modu³ów PHP
757 Summary(pt_BR): Arquivos de desenvolvimento para PHP
758 Group:          Development/Languages/PHP
759 Requires:       %{name}-common = %{version}
760
761 %description devel
762 Files for PHP modules development.
763
764 %description devel -l pl
765 Pliki potrzebne do kompilacji modu³ów PHP.
766
767 %description devel -l pt_BR
768 Este pacote contém arquivos usados no desenvolvimento de programas ou
769 módulos PHP.
770
771 %package curl
772 Summary:        curl extension module for PHP
773 Summary(pl):    Modu³ curl dla PHP
774 Group:          Libraries
775
776 %description curl
777 This is a dynamic shared object (DSO) for Apache that will add curl
778 support to PHP.
779
780 %description curl -l pl
781 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
782
783 %package xslt
784 Summary:        xslt extension module for PHP
785 Summary(pl):    Modu³ xslt dla PHP
786 Group:          Libraries
787 Requires(post): %{name}-common = %{version}
788 Requires(preun):        %{name}-common = %{version}
789
790 %description xslt
791 This is a dynamic shared object (DSO) for Apache that will add xslt
792 support to PHP.
793
794 %description xslt -l pl
795 Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
796
797 %package wddx
798 Summary:        wddx extension module for PHP
799 Summary(pl):    Modu³ wddx dla PHP
800 Group:          Libraries
801 Requires(post): %{name}-common = %{version}
802 Requires(preun):        %{name}-common = %{version}
803
804 %description wddx
805 This is a dynamic shared object (DSO) for Apache that will add wddx
806 support to PHP.
807
808 %description wddx -l pl
809 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
810
811 %package ming
812 Summary:        ming extension module for PHP
813 Summary(pl):    Modu³ ming dla PHP
814 Group:          Libraries
815 Requires(post): %{name}-common = %{version}
816 Requires(preun):        %{name}-common = %{version}
817
818 %description ming
819 This is a dynamic shared object (DSO) for Apache that will add ming
820 (Flash - .swf files) support to PHP.
821
822 %description ming -l pl
823 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
824 ming.
825
826 %package libcpdf
827 Summary:        cpdf extension module for PHP
828 Summary(pl):    Modu³ cpdf dla PHP
829 Group:          Libraries
830 Requires(post): %{name}-common = %{version}
831 Requires(preun):        %{name}-common = %{version}
832
833 %description libcpdf
834 This is a dynamic shared object (DSO) for Apache that will add libcpdf
835 support to PHP.
836
837 %description libcpdf -l pl
838 Modu³ PHP dodaj±cy obs³ugê libcpdf.
839
840 %package iconv
841 Summary:        iconv extension module for PHP
842 Summary(pl):    Modu³ iconv dla PHP
843 Group:          Libraries
844 Requires(post): %{name}-common = %{version}
845 Requires(preun):        %{name}-common = %{version}
846
847 %description iconv
848 This is a dynamic shared object (DSO) for Apache that will add iconv
849 support to PHP.
850
851 %description iconv -l pl
852 Modu³ PHP dodaj±cy obs³ugê iconv.
853
854 %package gmp
855 Summary:        gmp extension module for PHP
856 Summary(pl):    Modu³ gmp dla PHP
857 Group:          Libraries
858 Requires(post): %{name}-common = %{version}
859 Requires(preun):        %{name}-common = %{version}
860
861 %description gmp
862 This is a dynamic shared object (DSO) for Apache that will add
863 arbitrary length number support with GNU MP library to PHP.
864
865 %description gmp -l pl
866 Modu³ PHP umorzliwiaj±cy korzystanie z biblioteki gmp.
867
868 %package shmop
869 Summary:        Shared Memory Operations extension module for PHP
870 Summary(pl):    Modu³ shmop dla PHP
871 Group:          Libraries
872 Requires(post): %{name}-common = %{version}
873 Requires(preun):        %{name}-common = %{version}
874
875 %description shmop
876 This is a dynamic shared object (DSO) for Apache that will add Shared
877 Memory Operations support to PHP.
878
879 %description shmop -l pl
880 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
881
882 %prep
883 %setup -q
884 %patch0 -p1
885 %patch1 -p1
886 %patch2 -p1
887 %patch3 -p1
888 %patch4 -p1
889 %patch5 -p1
890 %patch6 -p1
891 %patch7 -p1
892 %patch8 -p1
893 %patch9 -p1
894 %patch10 -p1
895 %patch11 -p1
896 %patch12 -p1
897 %patch13 -p1
898
899 install -d manual
900 bzip2 -dc %{SOURCE4} | tar -xf - -C manual
901
902 %build
903 CFLAGS="%{rpmcflags} -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
904 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
905 ./buildconf
906 libtoolize --copy --force
907 aclocal
908 autoconf
909 #for i in cgi fastcgi apxs ; do
910 for i in cgi apxs ; do
911 %configure \
912         `[ $i = cgi ] && echo --enable-discard-path` \
913         `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
914 %if %{_apache2}
915         `[ $i = apxs ] && echo --with-apxs2=%{_sbindir}/apxs` \
916 %else
917         `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
918 %endif
919         --with-config-file-path=%{_sysconfdir} \
920         --with-exec-dir=%{_bindir} \
921         --%{!?debug:dis}%{?debug:en}able-debug \
922         --enable-bcmath=shared \
923         --enable-calendar=shared \
924         --enable-dba=shared \
925         --enable-exif=shared \
926         --enable-ftp=shared \
927         --enable-gd-native-ttf \
928         --enable-magic-quotes \
929         --enable-posix=shared \
930         --enable-session \
931         --enable-shared \
932         --enable-shmop=shared \
933         --enable-sysvsem=shared \
934         --enable-sysvshm=shared \
935         --enable-track-vars \
936         --enable-trans-sid \
937         --enable-safe-mode \
938         --enable-sockets=shared \
939         --enable-yp=shared \
940         --enable-ucd-snmp-hack \
941         --enable-xml=shared \
942         --with-expat-dir=/usr \
943         --enable-versioning \
944         %{?_with_xslt:--enable-xslt=shared} \
945         --with-bz2=shared \
946         %{?_with_libcpdf:--with-cpdflib=shared} \
947         --with-ctype=shared \
948         --with-curl=shared \
949         --without-db2 \
950         --with-db3 \
951         --with-dbase=shared \
952         --with-iconv=shared \
953         --with-dom=shared \
954         --with-dom-xslt=shared \
955         --with-filepro=shared \
956         --with-freetype-dir=shared \
957         --with-gettext=shared \
958         --with-gd=shared \
959         --with-gdbm \
960         --with-gmp=shared \
961         --with-hyperwave \
962         %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
963         %{?_with_java:--with-java} \
964         --with-jpeg-dir=shared \
965         %{!?_without_ldap:--with-ldap=shared} \
966         --with-mcrypt=shared \
967         --with-mysql=shared,%{_prefix} \
968         --with-mysql-sock=/var/lib/mysql/mysql.sock \
969         --with-mhash=shared \
970         --with-ming=shared \
971         %{!?_without_mm:--with-mm} \
972         %{!?_without_openssl:--with-openssl} \
973         %{?_with_oracle:--with-oracle=shared} \
974         %{?_with_interbase:--with-interbase=shared} \
975         %{?_with_oci8:--with-oci8=shared} \
976         --with-pear=%{peardir} \
977         --with-pcre-regex=shared \
978         --with-pdflib=shared \
979         --with-pgsql=shared,%{_prefix} \
980         --with-png-dir=shared \
981         %{!?_without_recode:--with-recode=shared} \
982         --with-regex=php \
983         %{!?_without_sablot:--with-sablot=/usr/lib} \
984         %{!?_without_snmp:--with-snmp=shared} \
985         --with-t1lib=shared \
986         %{!?_without_odbc:--with-unixODBC=shared} \
987         %{?_with_wddx:--enable-wddx=shared} \
988         --with-zlib=shared \
989         --with-zlib-dir=shared \
990         --without-xmlrpc \
991         %{?_with_xslt:--with-xslt-sablot=shared}
992 done
993
994 # TODO --with-pspell=/usr,shared (pspell missing)
995 #       --with-qtdom=shared
996
997 rm -f ext/xml/libs.mk
998 install %{SOURCE6} ext/xml/libs.mk
999
1000 %{__make}
1001 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
1002
1003 # Kill -rpath from php binary and libphp4.so
1004 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
1005 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
1006 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
1007
1008 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
1009 rm libphp4.la ; %{__make} libphp4.la
1010
1011 %install
1012 rm -rf $RPM_BUILD_ROOT
1013 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
1014                 $RPM_BUILD_ROOT/home/httpd/icons \
1015                 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
1016                 $RPM_BUILD_ROOT/var/run/php
1017
1018 %{__make} install \
1019         INSTALL_ROOT=$RPM_BUILD_ROOT \
1020         INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
1021
1022 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
1023
1024 #exit 1
1025 #install .libs/*.so     $RPM_BUILD_ROOT%{_pkglibdir}
1026 #install modules/*.so   $RPM_BUILD_ROOT%{_pkglibdir}/php
1027
1028 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
1029 install %{SOURCE3} php4.gif     $RPM_BUILD_ROOT/home/httpd/icons
1030 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
1031
1032
1033 install %{SOURCE1} .
1034 gzip -9nf CODING_STANDARDS CREDITS \
1035         EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
1036         Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
1037
1038 %clean
1039 rm -rf $RPM_BUILD_ROOT
1040
1041 %post
1042 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
1043 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
1044         /etc/httpd/httpd.conf
1045 if [ -f /var/lock/subsys/httpd ]; then
1046         /etc/rc.d/init.d/httpd restart 1>&2
1047 fi
1048
1049 %preun
1050 if [ "$1" = "0" ]; then
1051         %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
1052         perl -pi -e \
1053                 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
1054                 /etc/httpd/httpd.conf
1055         if [ -f /var/lock/subsys/httpd ]; then
1056                 /etc/rc.d/init.d/httpd restart 1>&2
1057         fi
1058 fi
1059
1060 %post common -p /sbin/ldconfig
1061 %postun common -p /sbin/ldconfig
1062
1063 %post bcmath
1064 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
1065
1066 %preun bcmath
1067 if [ "$1" = "0" ]; then
1068         %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
1069 fi
1070
1071 %post calendar
1072 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
1073
1074 %preun calendar
1075 if [ "$1" = "0" ]; then
1076         %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1077 fi
1078
1079 %post dba
1080 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1081
1082 %preun dba
1083 if [ "$1" = "0" ]; then
1084         %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1085 fi
1086
1087 %post dbase
1088 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1089
1090 %preun dbase
1091 if [ "$1" = "0" ]; then
1092         %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1093 fi
1094
1095 %post exif
1096 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1097
1098 %preun exif
1099 if [ "$1" = "0" ]; then
1100         %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1101 fi
1102
1103 %post filepro
1104 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1105
1106 %preun filepro
1107 if [ "$1" = "0" ]; then
1108         %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1109 fi
1110
1111 %post ftp
1112 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1113
1114 %preun ftp
1115 if [ "$1" = "0" ]; then
1116         %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1117 fi
1118
1119 %post gd
1120 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1121
1122 %preun gd
1123 if [ "$1" = "0" ]; then
1124         %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1125 fi
1126
1127 %post gettext
1128 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1129
1130 %preun gettext
1131 if [ "$1" = "0" ]; then
1132         %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1133 fi
1134
1135 %if %{?_without_imap:0}%{!?_without_imap:1}
1136 %post imap
1137 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1138
1139 %preun imap
1140 if [ "$1" = "0" ]; then
1141         %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1142 fi
1143 %endif
1144
1145 %if %{?_with_java:1}%{!?_with_java:0}
1146 %post java
1147 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1148
1149 %preun java
1150 if [ "$1" = "0" ]; then
1151         %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1152 fi
1153 %endif
1154
1155 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1156 %post ldap
1157 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1158
1159 %preun ldap
1160 if [ "$1" = "0" ]; then
1161         %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1162 fi
1163 %endif
1164
1165 %post mcrypt
1166 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1167
1168 %preun mcrypt
1169 if [ "$1" = "0" ]; then
1170         %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1171 fi
1172
1173 %post mhash
1174 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1175
1176 %preun mhash
1177 if [ "$1" = "0" ]; then
1178         %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1179 fi
1180
1181 %post mysql
1182 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1183
1184 %preun mysql
1185 if [ "$1" = "0" ]; then
1186         %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1187 fi
1188
1189 %post pdf
1190 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1191
1192 %preun pdf
1193 if [ "$1" = "0" ]; then
1194         %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1195 fi
1196
1197 %preun domxml
1198 if [ "$1" = "0" ]; then
1199         %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
1200 fi
1201
1202 %post domxml
1203 %{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
1204
1205 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1206 %post oci8
1207 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1208
1209 %preun oci8
1210 if [ "$1" = "0" ]; then
1211         %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1212 fi
1213 %endif
1214
1215 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1216 %post odbc
1217 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1218
1219 %preun odbc
1220 if [ "$1" = "0" ]; then
1221         %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1222 fi
1223 %endif
1224
1225 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1226 %post oracle
1227 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1228
1229 %preun oracle
1230 if [ "$1" = "0" ]; then
1231         %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1232 fi
1233 %endif
1234
1235 %if %{?_with_interbase:1}%{!?_with_interbase:0}
1236 %post interbase
1237 %{_sbindir}/php-module-install install interbase %{_sysconfdir}/php.ini
1238
1239 %preun interbase
1240 if [ "$1" = "0" ]; then
1241         %{_sbindir}/php-module-install remove interbase %{_sysconfdir}/php.ini
1242 fi
1243 %endif
1244
1245 %post pcre
1246 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1247
1248 %preun pcre
1249 if [ "$1" = "0" ]; then
1250         %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1251 fi
1252
1253 %post pgsql
1254 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1255
1256 %preun pgsql
1257 if [ "$1" = "0" ]; then
1258         %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1259 fi
1260
1261 %post posix
1262 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1263
1264 %preun posix
1265 if [ "$1" = "0" ]; then
1266         %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1267 fi
1268
1269 %if %{?_without_recode:0}%{!?_without_recode:1}
1270 %post recode
1271 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1272
1273 %preun recode
1274 if [ "$1" = "0" ]; then
1275         %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1276 fi
1277 %endif
1278
1279 %post session
1280 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1281
1282 %preun session
1283 if [ "$1" = "0" ]; then
1284         %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1285 fi
1286
1287 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1288 %post snmp
1289 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1290
1291 %preun snmp
1292 if [ "$1" = "0" ]; then
1293         %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1294 fi
1295 %endif
1296
1297 %post sockets
1298 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1299
1300 %preun sockets
1301 if [ "$1" = "0" ]; then
1302         %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1303 fi
1304
1305 %post sysvsem
1306 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1307
1308 %preun sysvsem
1309 if [ "$1" = "0" ]; then
1310         %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1311 fi
1312
1313 %post sysvshm
1314 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1315
1316 %preun sysvshm
1317 if [ "$1" = "0" ]; then
1318         %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1319 fi
1320
1321 %post xml
1322 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1323
1324 %preun xml
1325 if [ "$1" = "0" ]; then
1326         %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1327 fi
1328
1329 %post yp
1330 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1331
1332 %preun yp
1333 if [ "$1" = "0" ]; then
1334         %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1335 fi
1336
1337 %post zlib
1338 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1339
1340 %preun zlib
1341 if [ "$1" = "0" ]; then
1342         %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1343 fi
1344
1345 %post bzip2
1346 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1347
1348 %preun bzip2
1349 if [ "$1" = "0" ]; then
1350         %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1351 fi
1352
1353 %post curl
1354 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1355
1356 %preun curl
1357 if [ "$1" = "0" ]; then
1358         %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1359 fi
1360
1361 %post ming
1362 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1363
1364 %preun ming
1365 if [ "$1" = "0" ]; then
1366         %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1367 fi
1368
1369 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1370 %post xslt
1371 %{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
1372
1373 %preun xslt
1374 if [ "$1" = "0" ]; then
1375         %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
1376 fi
1377 %endif
1378
1379 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1380 %post wddx
1381 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
1382
1383 %preun wddx
1384 if [ "$1" = "0" ]; then
1385         %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
1386 fi
1387 %endif
1388
1389 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1390 %post libcpdf
1391 %{_sbindir}/php-module-install install libcpdf %{_sysconfdir}/php.ini
1392
1393 %preun libcpdf
1394 if [ "$1" = "0" ]; then
1395         %{_sbindir}/php-module-install remove libcpdf %{_sysconfdir}/php.ini
1396 fi
1397 %endif
1398
1399 %post iconv
1400 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1401
1402 %preun iconv
1403 if [ "$1" = "0" ]; then
1404         %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1405 fi
1406
1407 %post gmp
1408 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1409
1410 %preun gmp
1411 if [ "$1" = "0" ]; then
1412         %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1413 fi
1414
1415 %post shmop
1416 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
1417
1418 %preun shmop
1419 if [ "$1" = "0" ]; then
1420         %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
1421 fi
1422
1423 %files
1424 %defattr(644,root,root,755)
1425 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1426
1427 %files cgi
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) %{_bindir}/php
1430
1431 %files common
1432 %defattr(644,root,root,755)
1433 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1434 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1435 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1436
1437 %dir %{_sysconfdir}
1438 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1439 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
1440
1441 /home/httpd/icons/*
1442 %attr(755,root,root) %{_sbindir}/*
1443 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1444 %dir %{extensionsdir}
1445
1446 %files devel
1447 %defattr(644,root,root,755)
1448 %{_includedir}/php
1449 %{_libdir}/php/build
1450 %attr(755,root,root) %{_bindir}/phpextdist
1451 %attr(755,root,root) %{_bindir}/phpize
1452 %attr(755,root,root) %{_bindir}/php-config
1453
1454 %files domxml
1455 %defattr(644,root,root,755)
1456 %attr(755,root,root) %{extensionsdir}/domxml.so
1457
1458 %files pear
1459 %defattr(644,root,root,755)
1460 %attr(755,root,root) %{_bindir}/pear
1461 %{peardir}
1462
1463 %files mysql
1464 %defattr(644,root,root,755)
1465 %attr(755,root,root) %{extensionsdir}/mysql.so
1466
1467 %files pdf
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1470
1471 %files pgsql
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) %{extensionsdir}/pgsql.so
1474
1475 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1476 %files oracle
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{extensionsdir}/oracle.so
1479 %endif
1480
1481 %if %{?_with_interbase:1}%{!?_with_interbase:0}
1482 %files interbase
1483 %defattr(644,root,root,755)
1484 %attr(755,root,root) %{extensionsdir}/interbase.so
1485 %endif
1486
1487 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1488 %files oci8
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{extensionsdir}/oci8.so
1491 %endif
1492
1493 %files gd
1494 %defattr(644,root,root,755)
1495 %attr(755,root,root) %{extensionsdir}/gd.so
1496
1497 %files xml
1498 %defattr(644,root,root,755)
1499 %attr(755,root,root) %{extensionsdir}/xml.so
1500
1501 %files dba
1502 %defattr(644,root,root,755)
1503 %attr(755,root,root) %{extensionsdir}/dba.so
1504
1505 %files dbase
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{extensionsdir}/dbase.so
1508
1509 %files filepro
1510 %defattr(644,root,root,755)
1511 %attr(755,root,root) %{extensionsdir}/filepro.so
1512
1513 %files pcre
1514 %defattr(644,root,root,755)
1515 %attr(755,root,root) %{extensionsdir}/pcre.so
1516
1517 %files posix
1518 %defattr(644,root,root,755)
1519 %attr(755,root,root) %{extensionsdir}/posix.so
1520
1521 %files sysvsem
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1524
1525 %files sysvshm
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1528
1529 %files yp
1530 %defattr(644,root,root,755)
1531 %attr(755,root,root) %{extensionsdir}/yp.so
1532
1533 %files calendar
1534 %defattr(644,root,root,755)
1535 %attr(755,root,root) %{extensionsdir}/calendar.so
1536
1537 %files bcmath
1538 %defattr(644,root,root,755)
1539 %attr(755,root,root) %{extensionsdir}/bcmath.so
1540
1541 %files ftp
1542 %defattr(644,root,root,755)
1543 %attr(755,root,root) %{extensionsdir}/ftp.so
1544
1545 %files zlib
1546 %defattr(644,root,root,755)
1547 %attr(755,root,root) %{extensionsdir}/zlib.so
1548
1549 %files bzip2
1550 %defattr(644,root,root,755)
1551 %attr(755,root,root) %{extensionsdir}/bz2.so
1552
1553 %files exif
1554 %defattr(644,root,root,755)
1555 %attr(755,root,root) %{extensionsdir}/exif.so
1556
1557 %if %{?_without_recode:0}%{!?_without_recode:1}
1558 %files recode
1559 %defattr(644,root,root,755)
1560 %attr(755,root,root) %{extensionsdir}/recode.so
1561 %endif
1562
1563 #%files session
1564 #%defattr(644,root,root,755)
1565 #%attr(755,root,root) %{extensionsdir}/session.so
1566
1567 %files gettext
1568 %defattr(644,root,root,755)
1569 %attr(755,root,root) %{extensionsdir}/gettext.so
1570
1571 %if %{?_without_imap:0}%{!?_without_imap:1}
1572 %files imap
1573 %defattr(644,root,root,755)
1574 %attr(755,root,root) %{extensionsdir}/imap.so
1575 %endif
1576
1577 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1578 %files snmp
1579 %defattr(644,root,root,755)
1580 %attr(755,root,root) %{extensionsdir}/snmp.so
1581 %endif
1582
1583 %if %{?_with_java:1}%{!?_with_java:0}
1584 %files java
1585 %defattr(644,root,root,755)
1586 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1587 %endif
1588
1589 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1590 %files ldap
1591 %defattr(644,root,root,755)
1592 %attr(755,root,root) %{extensionsdir}/ldap.so
1593 %endif
1594
1595 %files sockets
1596 %defattr(644,root,root,755)
1597 %attr(755,root,root) %{extensionsdir}/sockets.so
1598
1599 %files mcrypt
1600 %defattr(644,root,root,755)
1601 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1602
1603 %files mhash
1604 %defattr(644,root,root,755)
1605 %attr(755,root,root) %{extensionsdir}/mhash.so
1606
1607 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1608 %files odbc
1609 %defattr(644,root,root,755)
1610 %attr(755,root,root) %{extensionsdir}/odbc.so
1611 %endif
1612
1613 %files doc
1614 %defattr(644,root,root,755)
1615 %doc manual/*
1616
1617 %files curl
1618 %defattr(644,root,root,755)
1619 %attr(755,root,root) %{extensionsdir}/curl.so
1620
1621 %files ming
1622 %defattr(644,root,root,755)
1623 %attr(755,root,root) %{extensionsdir}/ming.so
1624
1625 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1626 %files xslt
1627 %defattr(644,root,root,755)
1628 %attr(755,root,root) %{extensionsdir}/xslt.so
1629 %endif
1630
1631 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1632 %files wddx
1633 %defattr(644,root,root,755)
1634 %attr(755,root,root) %{extensionsdir}/wddx.so
1635 %endif
1636
1637 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1638 %files libcpdf
1639 %defattr(644,root,root,755)
1640 %attr(755,root,root) %{extensionsdir}/cpdf.so
1641 %endif
1642
1643 %files iconv
1644 %defattr(644,root,root,755)
1645 %attr(755,root,root) %{extensionsdir}/iconv.so
1646
1647 %files gmp
1648 %defattr(644,root,root,755)
1649 %attr(755,root,root) %{extensionsdir}/gmp.so
1650
1651 %files shmop
1652 %defattr(644,root,root,755)
1653 %attr(755,root,root) %{extensionsdir}/shmop.so
This page took 0.194613 seconds and 4 git commands to generate.