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