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