2 %define _apache2 %(rpm -q apache-devel | grep -q '\-2\.' 2> /dev/null ; echo $?)
5 # _with_oracle - with oracle support
6 # _with_oci8 - with oci8 support
7 # _with_java - with Java support
8 # _with_libcpdf - with libcpdf support
9 # _with_openssl - with OpenSSL support
10 # _with_wddx - with WDDX support
11 # _with_xslt - with XSLT support
12 # _without_imap - without IMAP support
13 # _without_ldap - without LDAP support
14 # _without_odbc - without ODBC support
15 # _without_snmp - without SNMP support
16 # _without_sablot - without sablot support
17 Summary: The PHP HTML-embedded scripting language for use with Apache
18 Summary(fr): Le langage de script embarque-HTML PHP pour Apache
19 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
25 License: The PHP license (see "LICENSE" file included in distribution)
26 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
30 Source4: http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
31 Source5: %{name}-module-install
32 Source6: %{name}-xml_fix
33 Patch0: %{name}-shared.patch
34 Patch1: %{name}-pldlogo.patch
35 Patch2: %{name}-mysql-socket.patch
36 Patch3: %{name}-mail.patch
37 Patch4: %{name}-link-libs.patch
38 Patch5: %{name}-am_ac_lt.patch
39 Patch6: %{name}-fastcgi.patch
40 Patch7: %{name}-ac250.patch
41 Patch8: %{name}-mailsecurity2.patch
42 Patch9: %{name}-oracle9.patch
43 Patch10: %{name}-no_%{name}_pcre_in_SAPI_c.patch
44 Patch11: %{name}-libpq_fs_h_path.patch
46 URL: http://www.php.net/
47 BuildRequires: apache(EAPI)-devel
48 BuildRequires: autoconf >= 1.4
49 BuildRequires: automake >= 1.4d
51 BuildRequires: bzip2-devel
52 BuildRequires: curl-devel
53 BuildRequires: cyrus-sasl-devel
54 BuildRequires: db3-devel >= 3.1.17
55 BuildRequires: expat-devel
57 BuildRequires: gmp-devel
58 BuildRequires: freetype-devel >= 2.0
59 BuildRequires: gd-devel >= 2.0.1
60 BuildRequires: gdbm-devel
61 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
62 # I think jdk is better for java
64 %{?_with_java:BuildRequires: kaffe-devel}
65 BuildRequires: libjpeg-devel
66 BuildRequires: libltdl-devel >= 1.4
67 BuildRequires: libmcrypt-devel >= 2.4.4
68 BuildRequires: libpng >= 1.0.8
69 BuildRequires: libtiff-devel
70 BuildRequires: libtool >= 1.4
71 BuildRequires: libxml2-devel >= 2.2.7
72 BuildRequires: mhash-devel
73 BuildRequires: ming-devel >= 0.1.0
74 BuildRequires: mm-devel >= 1.1.3
75 BuildRequires: mysql-devel >= 3.23.32
76 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
77 BuildRequires: pam-devel
78 BuildRequires: pdflib-devel >= 4.0.0
80 BuildRequires: pkgconfig
81 BuildRequires: postgresql-devel
82 BuildRequires: postgresql-backend-devel >= 7.2
83 BuildRequires: recode-devel >= 3.5d-3
84 BuildRequires: t1lib-devel
85 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
86 %{!?_without_odbc:BuildRequires: unixODBC-devel}
88 BuildRequires: zlib-devel >= 1.0.9
89 #BuildRequires: fastcgi-devkit
90 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
91 %{!?_without_openssl:BuildRequires: openssl-devel >= 0.9.6a}
93 %{?_with_libcpdf:BuildRequires: libcpdf-devel >= 2.00}
94 %{?_with_xslt:BuildRequires: sablotron-devel}
95 %{?_with_xslt:BuildRequires: expat-devel}
96 %{?_with_xslt:BuildRequires: w3c-libwww-devel}
97 # apache 1.3 vs apache 2.0
99 PreReq: apache(EAPI) >= 2.0.35
101 PreReq: apache(EAPI) < 2.0.0
102 PreReq: apache(EAPI) >= 1.3.9
105 PreReq: %{_sbindir}/apxs
106 PreReq: %{name}-common = %{version}
107 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109 Obsoletes: apache-mod_php
111 %define _sysconfdir /etc/php
112 %define extensionsdir %{_libdir}/php
113 %define peardir %{_datadir}/pear
116 PHP is an HTML-embedded scripting language. PHP attempts to make it
117 easy for developers to write dynamically generated web pages. PHP also
118 offers built-in database integration for several commercial and
119 non-commercial database management systems, so writing a
120 database-enabled web page with PHP is fairly simple. The most common
121 use of PHP coding is probably as a replacement for CGI scripts. The
122 mod_php module enables the Apache web server to understand and process
123 the embedded PHP language in web pages. This package contains PHP
124 version %{version}. If you use applications which specifically rely on
125 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
126 module contained in the phpfi package. If you're just starting with
127 PHP, you should install this package. You'll also need to install the
131 PHP est un langage de script embarque dans le HTM. PHP essaye de
132 rendre simple aux developpeurs d'ecrire des pages web generees
133 dynamiquement. PHP incorpore egalement une integration avec plusieurs
134 systemes de gestion de bases de donnees commerciaux et
135 non-connerciaux, qui rent facile la creation de pages web liees avec
136 des bases de donnees. L'utilisation la plus commune de PHP est
137 probablement en remplacement de scripts CGI. Le module mod_php permet
138 au serveur web apache de comprendre et de traiter le langage PHP
139 integre dans des pages web. Ce package contient PHP version
140 %{version}. Si vous utilisez des applications qui utilisent
141 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
142 dans le package mod_php. Si vous debutez avec PHP, vous devriez
143 installer ce package. Vous aurez egalement besoin d'installer le
147 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
148 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
149 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
150 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
151 zosta³a z jêzyków: C, Java i Perl.
154 Summary: PHP as CGI program
155 Summary(pl): PHP jako program CGI
157 PreReq: %{name}-common = %{version}
162 %description cgi -l pl
163 PHP jako program CGI.
166 Summary: Common files nneded by both apache module and CGI
167 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
171 Common files needed by both apache module and CGI.
173 %description common -l pl
174 Wspólne pliki dla modu³u apacha i programu CGI.
177 Summary: MySQL database module for PHP
178 Summary(pl): Modu³ bazy danych MySQL dla PHP
180 Requires(post): %{name}-common = %{version}
181 Requires(preun): %{name}-common = %{version}
184 This is a dynamic shared object (DSO) for Apache that will add MySQL
185 database support to PHP. If you need back-end support for MySQL, you
186 should install this package in addition to the main %{name} package.
188 %description mysql -l pl
189 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
192 Summary: libPDF module for PHP
193 Summary(pl): Modu³ do tworzenia plików PDF dla PHP
195 Requires(post): %{name}-common = %{version}
196 Requires(preun): %{name}-common = %{version}
200 This is a dynamic shared object (DSO) for Apache that will add PDF
203 %description pdf -l pl
204 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
208 Summary: PostgreSQL database module for PHP
209 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
211 Requires(post): %{name}-common = %{version}
212 Requires(preun): %{name}-common = %{version}
215 This is a dynamic shared object (DSO) for Apache that will add
216 PostgreSQL database support to PHP. If you need back-end support for
217 PostgreSQL, you should install this package in addition to the main
220 %description pgsql -l pl
221 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
224 Summary: Oracle 8 database module for PHP
225 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
227 Requires(post): %{name}-common = %{version}
228 Requires(preun): %{name}-common = %{version}
232 This is a dynamic shared object (DSO) for Apache that will add Oracle
233 8 database support to PHP. If you need back-end support for Oracle 8,
234 you should install this package in addition to the main %{name}
237 %description oci8 -l pl
238 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
241 Summary: Oracle 7 database module for PHP
242 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
244 Requires(post): %{name}-common = %{version}
245 Requires(preun): %{name}-common = %{version}
249 This is a dynamic shared object (DSO) for Apache that will add Oracle
250 7 database support to PHP. If you need back-end support for Oracle 7,
251 you should install this package in addition to the main %{name}
254 %description oracle -l pl
255 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
258 Summary: GD extension module for PHP
259 Summary: Modu³ GD dla PHP
261 Requires(post): %{name}-common = %{version}
262 Requires(preun): %{name}-common = %{version}
265 This is a dynamic shared object (DSO) for Apache that will add GD
266 support to PHP. You should install this package in addition to the
267 main %{name} package if you want to create and manipulate images with
270 %description gd -l pl
271 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
272 obrazków z poziomu PHP.
275 Summary: Java extension module for PHP
276 Summary(pl): Modu³ Javy dla PHP
278 Requires(post): %{name}-common = %{version}
279 Requires(preun): %{name}-common = %{version}
282 This is a dynamic shared object (DSO) for Apache that will add JAVA
283 support to PHP. This extension provides a simple and effective means
284 for creating and invoking methods on Java objects from PHP.
286 %description java -l pl
287 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
288 obiektów Javy z poziomu PHP.
291 Summary: XML extension module for PHP
292 Summary(pl): Modu³ XML dla PHP
294 Requires(post): %{name}-common = %{version}
295 Requires(preun): %{name}-common = %{version}
298 This is a dynamic shared object (DSO) for Apache that will add XML
299 support to PHP. This extension lets you create XML parsers and then
300 define handlers for different XML events. If you want to be able to
301 parse XML documents you should install this package in addition to the
302 main %{name} package.
304 %description xml -l pl
305 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
306 zwi±zanych z tymi plikami.
309 Summary: DBA extension module for PHP
310 Summary(pl): Modu³ DBA dla PHP
312 Requires(post): %{name}-common = %{version}
313 Requires(preun): %{name}-common = %{version}
316 This is a dynamic shared object (DSO) for Apache that will add
317 flat-file databases (DBA) support to PHP.
319 %description dba -l pl
320 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
321 wsparcie dla baz danych DBA.
324 Summary: ODBC extension module for PHP
325 Summary(pl): Modu³ ODBC dla PHP
327 Requires(post): %{name}-common = %{version}
328 Requires(preun): %{name}-common = %{version}
331 This is a dynamic shared object (DSO) for Apache that will add ODBC
334 %description odbc -l pl
335 Modu³ PHP ze wsparciem dla ODBC.
338 Summary: Calendar extension module for PHP
339 Summary(pl): Modu³ funkcji kalendarza dla PHP
341 Requires(post): %{name}-common = %{version}
342 Requires(preun): %{name}-common = %{version}
344 %description calendar
345 This is a dynamic shared object (DSO) for Apache that will add
346 calendar support to PHP.
348 %description calendar -l pl
349 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
350 wsparcie dla kalendarza.
353 Summary: DBase extension module for PHP
354 Summary(pl): Modu³ DBase dla PHP
356 Requires(post): %{name}-common = %{version}
357 Requires(preun): %{name}-common = %{version}
360 This is a dynamic shared object (DSO) for Apache that will add DBase
363 %description dbase -l pl
364 Modu³ PHP ze wsparciem dla DBase.
367 Summary: FilePro extension module for PHP
368 Summary(pl): Modu³ FilePro dla PHP
370 Requires(post): %{name}-common = %{version}
371 Requires(preun): %{name}-common = %{version}
374 This is a dynamic shared object (DSO) for Apache that will add FilePro
377 %description filepro -l pl
378 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
379 wsparcie dla FilePro.
382 Summary: POSIX extension module for PHP
383 Summary(pl): Modu³ POSIX dla PHP
385 Requires(post): %{name}-common = %{version}
386 Requires(preun): %{name}-common = %{version}
389 This is a dynamic shared object (DSO) for Apache that will add POSIX
390 functions support to PHP.
392 %description posix -l pl
393 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
396 Summary: PCRE extension module for PHP
397 Summary(pl): Modu³ PCRE dla PHP
399 Requires(post): %{name}-common = %{version}
400 Requires(preun): %{name}-common = %{version}
403 This is a dynamic shared object (DSO) for Apache that will add Perl
404 Compatible Regular Expression support to PHP.
406 %description pcre -l pl
407 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
408 (Perl Compatible Regular Expressions)
411 Summary: SysV sem extension module for PHP
412 Summary(pl): Modu³ SysV sem dla PHP
414 Requires(post): %{name}-common = %{version}
415 Requires(preun): %{name}-common = %{version}
418 This is a dynamic shared object (DSO) for Apache that will add SysV
419 semafores support to PHP.
421 %description sysvsem -l pl
422 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
425 Summary: SysV shm extension module for PHP
426 Summary(pl): Modu³ SysV shm dla PHP
428 Requires(post): %{name}-common = %{version}
429 Requires(preun): %{name}-common = %{version}
432 This is a dynamic shared object (DSO) for Apache that will add SysV
433 Shared Memory support to PHP.
435 %description sysvshm -l pl
436 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
439 Summary: NIS (yp) extension module for PHP
440 Summary(pl): Modu³ NIS (yp) dla PHP
442 Requires(post): %{name}-common = %{version}
443 Requires(preun): %{name}-common = %{version}
446 This is a dynamic shared object (DSO) for Apache that will add NIS
447 (Yellow Pages) support to PHP.
449 %description yp -l pl
450 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
451 wsparcie dla NIS (Yellow Pages).
454 Summary: bcmath extension module for PHP
455 Summary(pl): Modu³ bcmath dla PHP
457 Requires(post): %{name}-common = %{version}
458 Requires(preun): %{name}-common = %{version}
461 This is a dynamic shared object (DSO) for Apache that will add bc
462 style precision math functions support to PHP.
464 %description bcmath -l pl
465 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
466 matematycznych takich jak w programie bc.
469 Summary: FTP extension module for PHP
470 Summary(pl): Modu³ FTP dla PHP
472 Requires(post): %{name}-common = %{version}
473 Requires(preun): %{name}-common = %{version}
476 This is a dynamic shared object (DSO) for Apache that will add FTP
479 %description ftp -l pl
480 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
483 Summary: Zlib extension module for PHP
484 Summary(pl): Modu³ zlib dla PHP
486 Requires(post): %{name}-common = %{version}
487 Requires(preun): %{name}-common = %{version}
490 This is a dynamic shared object (DSO) for Apache that will add
491 compression (zlib) support to PHP.
493 %description zlib -l pl
494 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
497 Summary: Bzip2 extension module for PHP
498 Summary(pl): Modu³ bzip2 dla PHP
500 Requires(post): %{name}-common = %{version}
501 Requires(preun): %{name}-common = %{version}
504 This is a dynamic shared object (DSO) for Apache that will add
505 compression (bzip2) support to PHP.
507 %description bzip2 -l pl
508 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê bzip2).
511 Summary: exif extension module for PHP
512 Summary(pl): Modu³ exif dla PHP
514 Requires(post): %{name}-common = %{version}
515 Requires(preun): %{name}-common = %{version}
518 This is a dynamic shared object (DSO) for Apache that will add exif
521 %description exif -l pl
522 Modu³ PHP dodaj±cy obs³ugê plików EXIF.
525 Summary: recode extension module for PHP
526 Summary(pl): Modu³ recode dla PHP
528 Requires(post): %{name}-common = %{version}
529 Requires(preun): %{name}-common = %{version}
530 Requires: recode >= 3.5d-3
533 This is a dynamic shared object (DSO) for Apache that will add recode
536 %description recode -l pl
537 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
541 Summary: session extension module for PHP
542 Summary(pl): Modu³ session dla PHP
544 Requires(post): %{name}-common = %{version}
545 Requires(preun): %{name}-common = %{version}
548 This is a dynamic shared object (DSO) for Apache that will add session
551 %description session -l pl
552 Modu³ PHP dodaj±cy obs³ugê sesji.
555 Summary: gettext extension module for PHP
556 Summary(pl): Modu³ gettext dla PHP
558 Requires(post): %{name}-common = %{version}
559 Requires(preun): %{name}-common = %{version}
562 This is a dynamic shared object (DSO) for Apache that will add gettext
565 %description gettext -l pl
566 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
569 Summary: SNMP extension module for PHP
570 Summary(pl): Modu³ SNMP dla PHP
572 Requires(post): %{name}-common = %{version}
573 Requires(preun): %{name}-common = %{version}
576 This is a dynamic shared object (DSO) for Apache that will add SNMP
579 %description snmp -l pl
580 Modu³ PHP dodaj±cy obs³ugê SNMP.
583 Summary: IMAP extension module for PHP
584 Summary(pl): Modu³ IMAP dla PHP
586 Requires(post): %{name}-common = %{version}
587 Requires(preun): %{name}-common = %{version}
590 This is a dynamic shared object (DSO) for Apache that will add IMAP
593 %description imap -l pl
594 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
597 Summary: LDAP extension module for PHP
598 Summary(pl): Modu³ LDAP dla PHP
600 Requires(post): %{name}-common = %{version}
601 Requires(preun): %{name}-common = %{version}
604 This is a dynamic shared object (DSO) for Apache that will add LDAP
607 %description ldap -l pl
608 Modu³ PHP dodaj±cy obs³ugê LDAP.
611 Summary: sockets extension module for PHP
612 Summary(pl): Modu³ socket dla PHP
614 Requires(post): %{name}-common = %{version}
615 Requires(preun): %{name}-common = %{version}
618 This is a dynamic shared object (DSO) for Apache that will add sockets
621 %description sockets -l pl
622 Modu³ PHP dodaj±cy obs³ugê gniazdek.
625 Summary: mcrypt extension module for PHP
626 Summary(pl): Modu³ mcrypt dla PHP
628 Requires(post): %{name}-common = %{version}
629 Requires(preun): %{name}-common = %{version}
632 This is a dynamic shared object (DSO) for Apache that will add mcrypt
635 %description mcrypt -l pl
636 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
639 Summary: mhash extension module for PHP
640 Summary(pl): Modu³ mhash dla PHP
642 Requires(post): %{name}-common = %{version}
643 Requires(preun): %{name}-common = %{version}
646 This is a dynamic shared object (DSO) for Apache that will add mhash
649 %description mhash -l pl
650 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
653 Summary: Online manual for PHP
654 Summary(pl): Dokumentacja dla PHP
655 Group: Networking/Daemons
656 Obsoletes: php-manual
659 Comprehensive documentation for PHP, viewable through your web server,
662 %description doc -l pl
663 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
667 Summary: PEAR - PHP Extension and Application Repository
668 Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
669 Group: Development/Languages/PHP
670 Requires: %{name}-cgi = %{version}
671 Requires: %{name}-xml = %{version}
674 PEAR - PHP Extension and Application Repository.
676 %description pear -l pl
677 PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
678 Repozytorium Aplikacji.
681 Summary: DOM XML module
682 Summary(pl): Modu³ DOM XML
683 Group: Development/Languages/PHP
688 %description domxml -l pl
692 Summary: Files for PHP modules development
693 Summary(pl): Pliki do kompilacji modu³ów PHP
694 Group: Development/Languages/PHP
695 Requires: %{name}-common = %{version}
698 Files for PHP modules development.
700 %description devel -l pl
701 Pliki potrzebne do kompilacji modu³ów PHP.
704 Summary: curl extension module for PHP
705 Summary(pl): Modu³ curl dla PHP
709 This is a dynamic shared object (DSO) for Apache that will add curl
712 %description curl -l pl
713 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
716 Summary: xslt extension module for PHP
717 Summary(pl): Modu³ xslt dla PHP
719 Requires(post): %{name}-common = %{version}
720 Requires(preun): %{name}-common = %{version}
723 This is a dynamic shared object (DSO) for Apache that will add xslt
726 %description xslt -l pl
727 Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
730 Summary: wddx extension module for PHP
731 Summary(pl): Modu³ wddx dla PHP
733 Requires(post): %{name}-common = %{version}
734 Requires(preun): %{name}-common = %{version}
737 This is a dynamic shared object (DSO) for Apache that will add wddx
740 %description wddx -l pl
741 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
744 Summary: ming extension module for PHP
745 Summary(pl): Modu³ ming dla PHP
747 Requires(post): %{name}-common = %{version}
748 Requires(preun): %{name}-common = %{version}
751 This is a dynamic shared object (DSO) for Apache that will add ming
752 (Flash - .swf files) support to PHP.
754 %description ming -l pl
755 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
759 Summary: cpdf extension module for PHP
760 Summary(pl): Modu³ cpdf dla PHP
762 Requires(post): %{name}-common = %{version}
763 Requires(preun): %{name}-common = %{version}
766 This is a dynamic shared object (DSO) for Apache that will add libcpdf
769 %description libcpdf -l pl
770 Modu³ PHP dodaj±cy obs³ugê libcpdf.
773 Summary: iconv extension module for PHP
774 Summary(pl): Modu³ iconv dla PHP
776 Requires(post): %{name}-common = %{version}
777 Requires(preun): %{name}-common = %{version}
780 This is a dynamic shared object (DSO) for Apache that will add iconv
783 %description iconv -l pl
784 Modu³ PHP dodaj±cy obs³ugê iconv.
787 Summary: gmp extension module for PHP
788 Summary(pl): Modu³ gmp dla PHP
790 Requires(post): %{name}-common = %{version}
791 Requires(preun): %{name}-common = %{version}
794 This is a dynamic shared object (DSO) for Apache that will add
795 arbitrary length number support with GNU MP library to PHP.
797 %description gmp -l pl
798 Modu³ PHP umorzliwiaj±cy korzystanie z biblioteki gmp.
801 Summary: Shared Memory Operations extension module for PHP
802 Summary(pl): Modu³ shmop dla PHP
804 Requires(post): %{name}-common = %{version}
805 Requires(preun): %{name}-common = %{version}
808 This is a dynamic shared object (DSO) for Apache that will add
809 Shared Memory Operations support to PHP.
811 %description shmop -l pl
812 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
830 bzip2 -dc %{SOURCE4} | tar -xf - -C manual
833 CFLAGS="%{rpmcflags} -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
834 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
836 libtoolize --copy --force
839 #for i in cgi fastcgi apxs ; do
840 for i in cgi apxs ; do
842 `[ $i = cgi ] && echo --enable-discard-path` \
843 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
844 `[ $i = apxs ] && echo --with-apxs%{?_apache2:2}=%{_sbindir}/apxs` \
845 --with-config-file-path=%{_sysconfdir} \
846 --with-exec-dir=%{_bindir} \
847 --%{!?debug:dis}%{?debug:en}able-debug \
848 --enable-bcmath=shared \
849 --enable-calendar=shared \
850 --enable-dba=shared \
851 --enable-exif=shared \
852 --enable-ftp=shared \
853 --enable-gd-native-ttf \
854 --enable-magic-quotes \
855 --enable-posix=shared \
858 --enable-shmop=shared \
859 --enable-sysvsem=shared \
860 --enable-sysvshm=shared \
861 --enable-track-vars \
864 --enable-sockets=shared \
866 --enable-ucd-snmp-hack \
867 --enable-xml=shared \
868 --with-expat-dir=/usr \
869 %{?_with_xslt:--enable-xslt=shared} \
871 %{?_with_libcpdf:--with-cpdflib=shared} \
872 --with-ctype=shared \
876 --with-dbase=shared \
877 --with-iconv=shared \
879 --with-dom-xslt=shared \
880 --with-filepro=shared \
881 --with-freetype-dir=shared \
882 --with-gettext=shared \
887 %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
888 %{?_with_java:--with-java} \
889 --with-jpeg-dir=shared \
890 %{!?_without_ldap:--with-ldap=shared} \
891 --with-mcrypt=shared \
892 --with-mysql=shared,%{_prefix} \
893 --with-mysql-sock=/var/lib/mysql/mysql.sock \
894 --with-mhash=shared \
897 %{!?_without_openssl:--with-openssl} \
898 %{?_with_oracle:--with-oracle=shared} \
899 %{?_with_oci8:--with-oci8=shared} \
900 --with-pear=%{peardir} \
901 --with-pcre-regex=shared \
902 --with-pdflib=shared \
903 --with-pgsql=shared,%{_prefix} \
904 --with-png-dir=shared \
905 --with-recode=shared \
907 %{!?_without_sablot:--with-sablot=/usr/lib} \
908 %{!?_without_snmp:--with-snmp=shared} \
909 --with-t1lib=shared \
910 %{!?_without_odbc:--with-unixODBC=shared} \
911 %{?_with_wddx:--enable-wddx=shared} \
913 --with-zlib-dir=shared \
915 %{?_with_xslt:--with-xslt-sablot=shared}
918 # TODO --with-pspell=/usr,shared (pspell missing)
919 # --with-qtdom=shared
921 rm -f ext/xml/libs.mk
922 install %{SOURCE6} ext/xml/libs.mk
925 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
927 # Kill -rpath from php binary and libphp4.so
928 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
929 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
930 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
932 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
933 rm libphp4.la ; %{__make} libphp4.la
936 rm -rf $RPM_BUILD_ROOT
937 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
938 $RPM_BUILD_ROOT/home/httpd/icons \
939 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
940 $RPM_BUILD_ROOT/var/run/php
943 INSTALL_ROOT=$RPM_BUILD_ROOT \
944 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
946 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
949 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
950 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
952 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
953 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
954 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
958 gzip -9nf CODING_STANDARDS CREDITS \
959 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
960 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
963 rm -rf $RPM_BUILD_ROOT
966 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
967 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
968 /etc/httpd/httpd.conf
969 if [ -f /var/lock/subsys/httpd ]; then
970 /etc/rc.d/init.d/httpd restart 1>&2
974 if [ "$1" = "0" ]; then
975 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
977 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
978 /etc/httpd/httpd.conf
979 if [ -f /var/lock/subsys/httpd ]; then
980 /etc/rc.d/init.d/httpd restart 1>&2
984 %post common -p /sbin/ldconfig
985 %postun common -p /sbin/ldconfig
988 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
991 if [ "$1" = "0" ]; then
992 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
996 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
999 if [ "$1" = "0" ]; then
1000 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1004 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1007 if [ "$1" = "0" ]; then
1008 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1012 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1015 if [ "$1" = "0" ]; then
1016 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1020 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1023 if [ "$1" = "0" ]; then
1024 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1028 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1031 if [ "$1" = "0" ]; then
1032 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1036 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1039 if [ "$1" = "0" ]; then
1040 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1044 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1047 if [ "$1" = "0" ]; then
1048 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1052 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1055 if [ "$1" = "0" ]; then
1056 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1059 %if %{?_without_imap:0}%{!?_without_imap:1}
1061 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1064 if [ "$1" = "0" ]; then
1065 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1069 %if %{?_with_java:1}%{!?_with_java:0}
1071 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1074 if [ "$1" = "0" ]; then
1075 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1079 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1081 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1084 if [ "$1" = "0" ]; then
1085 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1090 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1093 if [ "$1" = "0" ]; then
1094 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1098 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1101 if [ "$1" = "0" ]; then
1102 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1106 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1109 if [ "$1" = "0" ]; then
1110 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1114 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1117 if [ "$1" = "0" ]; then
1118 %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1122 if [ "$1" = "0" ]; then
1123 %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
1127 %{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
1129 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1131 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1134 if [ "$1" = "0" ]; then
1135 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1139 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1141 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1144 if [ "$1" = "0" ]; then
1145 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1149 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1151 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1154 if [ "$1" = "0" ]; then
1155 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1160 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1163 if [ "$1" = "0" ]; then
1164 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1168 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1171 if [ "$1" = "0" ]; then
1172 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1176 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1179 if [ "$1" = "0" ]; then
1180 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1184 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1187 if [ "$1" = "0" ]; then
1188 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1192 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1195 if [ "$1" = "0" ]; then
1196 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1199 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1201 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1204 if [ "$1" = "0" ]; then
1205 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1210 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1213 if [ "$1" = "0" ]; then
1214 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1218 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1221 if [ "$1" = "0" ]; then
1222 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1226 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1229 if [ "$1" = "0" ]; then
1230 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1234 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1237 if [ "$1" = "0" ]; then
1238 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1242 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1245 if [ "$1" = "0" ]; then
1246 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1250 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1253 if [ "$1" = "0" ]; then
1254 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1258 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1261 if [ "$1" = "0" ]; then
1262 %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1266 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1269 if [ "$1" = "0" ]; then
1270 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1274 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1277 if [ "$1" = "0" ]; then
1278 %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1281 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1283 %{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
1286 if [ "$1" = "0" ]; then
1287 %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
1291 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1293 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
1296 if [ "$1" = "0" ]; then
1297 %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
1301 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1303 %{_sbindir}/php-module-install install libcpdf %{_sysconfdir}/php.ini
1306 if [ "$1" = "0" ]; then
1307 %{_sbindir}/php-module-install remove libcpdf %{_sysconfdir}/php.ini
1312 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1315 if [ "$1" = "0" ]; then
1316 %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1320 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1323 if [ "$1" = "0" ]; then
1324 %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1328 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
1331 if [ "$1" = "0" ]; then
1332 %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
1336 %defattr(644,root,root,755)
1337 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1340 %defattr(644,root,root,755)
1341 %attr(755,root,root) %{_bindir}/php
1344 %defattr(644,root,root,755)
1345 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1346 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1347 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1350 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1351 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
1354 %attr(755,root,root) %{_sbindir}/*
1355 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1356 %dir %{extensionsdir}
1359 %defattr(644,root,root,755)
1361 %{_libdir}/php/build
1362 %attr(755,root,root) %{_bindir}/phpextdist
1363 %attr(755,root,root) %{_bindir}/phpize
1364 %attr(755,root,root) %{_bindir}/php-config
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{extensionsdir}/domxml.so
1371 %defattr(644,root,root,755)
1372 %attr(755,root,root) %{_bindir}/pear
1376 %defattr(644,root,root,755)
1377 %attr(755,root,root) %{extensionsdir}/mysql.so
1380 %defattr(644,root,root,755)
1381 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1384 %defattr(644,root,root,755)
1385 %attr(755,root,root) %{extensionsdir}/pgsql.so
1387 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{extensionsdir}/oracle.so
1393 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1395 %defattr(644,root,root,755)
1396 %attr(755,root,root) %{extensionsdir}/oci8.so
1400 %defattr(644,root,root,755)
1401 %attr(755,root,root) %{extensionsdir}/gd.so
1404 %defattr(644,root,root,755)
1405 %attr(755,root,root) %{extensionsdir}/xml.so
1408 %defattr(644,root,root,755)
1409 %attr(755,root,root) %{extensionsdir}/dba.so
1412 %defattr(644,root,root,755)
1413 %attr(755,root,root) %{extensionsdir}/dbase.so
1416 %defattr(644,root,root,755)
1417 %attr(755,root,root) %{extensionsdir}/filepro.so
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{extensionsdir}/pcre.so
1424 %defattr(644,root,root,755)
1425 %attr(755,root,root) %{extensionsdir}/posix.so
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1432 %defattr(644,root,root,755)
1433 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1436 %defattr(644,root,root,755)
1437 %attr(755,root,root) %{extensionsdir}/yp.so
1440 %defattr(644,root,root,755)
1441 %attr(755,root,root) %{extensionsdir}/calendar.so
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{extensionsdir}/bcmath.so
1448 %defattr(644,root,root,755)
1449 %attr(755,root,root) %{extensionsdir}/ftp.so
1452 %defattr(644,root,root,755)
1453 %attr(755,root,root) %{extensionsdir}/zlib.so
1456 %defattr(644,root,root,755)
1457 %attr(755,root,root) %{extensionsdir}/bz2.so
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{extensionsdir}/exif.so
1464 %defattr(644,root,root,755)
1465 %attr(755,root,root) %{extensionsdir}/recode.so
1468 #%defattr(644,root,root,755)
1469 #%attr(755,root,root) %{extensionsdir}/session.so
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) %{extensionsdir}/gettext.so
1475 %if %{?_without_imap:0}%{!?_without_imap:1}
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{extensionsdir}/imap.so
1481 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1483 %defattr(644,root,root,755)
1484 %attr(755,root,root) %{extensionsdir}/snmp.so
1487 %if %{?_with_java:1}%{!?_with_java:0}
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1493 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1495 %defattr(644,root,root,755)
1496 %attr(755,root,root) %{extensionsdir}/ldap.so
1500 %defattr(644,root,root,755)
1501 %attr(755,root,root) %{extensionsdir}/sockets.so
1504 %defattr(644,root,root,755)
1505 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1508 %defattr(644,root,root,755)
1509 %attr(755,root,root) %{extensionsdir}/mhash.so
1511 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1513 %defattr(644,root,root,755)
1514 %attr(755,root,root) %{extensionsdir}/odbc.so
1518 %defattr(644,root,root,755)
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{extensionsdir}/curl.so
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{extensionsdir}/ming.so
1529 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1531 %defattr(644,root,root,755)
1532 %attr(755,root,root) %{extensionsdir}/xslt.so
1535 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1537 %defattr(644,root,root,755)
1538 %attr(755,root,root) %{extensionsdir}/wddx.so
1541 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1543 %defattr(644,root,root,755)
1544 %attr(755,root,root) %{extensionsdir}/cpdf.so
1548 %defattr(644,root,root,755)
1549 %attr(755,root,root) %{extensionsdir}/iconv.so
1552 %defattr(644,root,root,755)
1553 %attr(755,root,root) %{extensionsdir}/gmp.so
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{extensionsdir}/shmop.so