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