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