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