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