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