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