2 %define _apache2 %(rpm -q apache-devel | grep -Eq '\-2\.[0-9]+\.' 2> /dev/null ; echo $?)
5 %define _without_recode 1
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
32 License: The PHP license (see "LICENSE" file included in distribution)
33 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
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 Patch12: %{name}-apache2.patch
54 URL: http://www.php.net/
55 BuildRequires: apache(EAPI)-devel
56 BuildRequires: autoconf >= 1.4
57 BuildRequires: automake >= 1.4d
59 BuildRequires: bzip2-devel
60 BuildRequires: curl-devel
61 BuildRequires: cyrus-sasl-devel
62 BuildRequires: db3-devel >= 3.1.17
63 BuildRequires: expat-devel
65 BuildRequires: gmp-devel
66 BuildRequires: freetype-devel >= 2.0
67 BuildRequires: gd-devel >= 2.0.1
68 BuildRequires: gdbm-devel
69 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
70 # I think jdk is better for java
72 %{?_with_java:BuildRequires: kaffe-devel}
73 BuildRequires: libjpeg-devel
74 BuildRequires: libltdl-devel >= 1.4
75 BuildRequires: libmcrypt-devel >= 2.4.4
76 BuildRequires: libpng >= 1.0.8
77 BuildRequires: libtiff-devel
78 BuildRequires: libtool >= 1.4
79 BuildRequires: libxml2-devel >= 2.2.7
80 BuildRequires: mhash-devel
81 BuildRequires: ming-devel >= 0.1.0
82 %{!?_without_mm:BuildRequires: mm-devel >= 1.1.3}
83 BuildRequires: mysql-devel >= 3.23.32
84 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
85 BuildRequires: pam-devel
86 BuildRequires: pdflib-devel >= 4.0.0
88 BuildRequires: pkgconfig
89 BuildRequires: postgresql-devel
90 BuildRequires: postgresql-backend-devel >= 7.2
91 %{!?_without_recode:BuildRequires: recode-devel >= 3.5d-3}
92 BuildRequires: t1lib-devel
93 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
94 %{!?_without_odbc:BuildRequires: unixODBC-devel}
96 BuildRequires: zlib-devel >= 1.0.9
97 #BuildRequires: fastcgi-devkit
98 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
99 %{!?_without_openssl:BuildRequires: openssl-devel >= 0.9.6a}
101 %{?_with_libcpdf:BuildRequires: libcpdf-devel >= 2.00}
102 %{?_with_xslt:BuildRequires: sablotron-devel}
103 %{?_with_xslt:BuildRequires: expat-devel}
104 %{?_with_xslt:BuildRequires: w3c-libwww-devel}
105 # apache 1.3 vs apache 2.0
107 PreReq: apache(EAPI) >= 2.0.35
109 PreReq: apache(EAPI) < 2.0.0
110 PreReq: apache(EAPI) >= 1.3.9
113 PreReq: %{_sbindir}/apxs
114 PreReq: %{name}-common = %{version}
115 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
117 Obsoletes: apache-mod_php
119 %define _sysconfdir /etc/php
120 %define extensionsdir %{_libdir}/php
121 %define peardir %{_datadir}/pear
124 PHP is an HTML-embedded scripting language. PHP attempts to make it
125 easy for developers to write dynamically generated web pages. PHP also
126 offers built-in database integration for several commercial and
127 non-commercial database management systems, so writing a
128 database-enabled web page with PHP is fairly simple. The most common
129 use of PHP coding is probably as a replacement for CGI scripts. The
130 mod_php module enables the Apache web server to understand and process
131 the embedded PHP language in web pages. This package contains PHP
132 version %{version}. If you use applications which specifically rely on
133 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
134 module contained in the phpfi package. If you're just starting with
135 PHP, you should install this package. You'll also need to install the
139 PHP est un langage de script embarque dans le HTM. PHP essaye de
140 rendre simple aux developpeurs d'ecrire des pages web generees
141 dynamiquement. PHP incorpore egalement une integration avec plusieurs
142 systemes de gestion de bases de donnees commerciaux et
143 non-connerciaux, qui rent facile la creation de pages web liees avec
144 des bases de donnees. L'utilisation la plus commune de PHP est
145 probablement en remplacement de scripts CGI. Le module mod_php permet
146 au serveur web apache de comprendre et de traiter le langage PHP
147 integre dans des pages web. Ce package contient PHP version
148 %{version}. Si vous utilisez des applications qui utilisent
149 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
150 dans le package mod_php. Si vous debutez avec PHP, vous devriez
151 installer ce package. Vous aurez egalement besoin d'installer le
155 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
156 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
157 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
158 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
159 zosta³a z jêzyków: C, Java i Perl.
162 Summary: PHP as CGI program
163 Summary(pl): PHP jako program CGI
165 PreReq: %{name}-common = %{version}
170 %description cgi -l pl
171 PHP jako program CGI.
174 Summary: Common files nneded by both apache module and CGI
175 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
179 Common files needed by both apache module and CGI.
181 %description common -l pl
182 Wspólne pliki dla modu³u apacha i programu CGI.
185 Summary: MySQL database module for PHP
186 Summary(pl): Modu³ bazy danych MySQL dla PHP
188 Requires(post): %{name}-common = %{version}
189 Requires(preun): %{name}-common = %{version}
192 This is a dynamic shared object (DSO) for Apache that will add MySQL
193 database support to PHP. If you need back-end support for MySQL, you
194 should install this package in addition to the main %{name} package.
196 %description mysql -l pl
197 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
200 Summary: libPDF module for PHP
201 Summary(pl): Modu³ do tworzenia plików PDF dla PHP
203 Requires(post): %{name}-common = %{version}
204 Requires(preun): %{name}-common = %{version}
208 This is a dynamic shared object (DSO) for Apache that will add PDF
211 %description pdf -l pl
212 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
216 Summary: PostgreSQL database module for PHP
217 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
219 Requires(post): %{name}-common = %{version}
220 Requires(preun): %{name}-common = %{version}
223 This is a dynamic shared object (DSO) for Apache that will add
224 PostgreSQL database support to PHP. If you need back-end support for
225 PostgreSQL, you should install this package in addition to the main
228 %description pgsql -l pl
229 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
232 Summary: Oracle 8 database module for PHP
233 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
235 Requires(post): %{name}-common = %{version}
236 Requires(preun): %{name}-common = %{version}
240 This is a dynamic shared object (DSO) for Apache that will add Oracle
241 8 database support to PHP. If you need back-end support for Oracle 8,
242 you should install this package in addition to the main %{name}
245 %description oci8 -l pl
246 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
249 Summary: Oracle 7 database module for PHP
250 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
252 Requires(post): %{name}-common = %{version}
253 Requires(preun): %{name}-common = %{version}
257 This is a dynamic shared object (DSO) for Apache that will add Oracle
258 7 database support to PHP. If you need back-end support for Oracle 7,
259 you should install this package in addition to the main %{name}
262 %description oracle -l pl
263 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
266 Summary: GD extension module for PHP
267 Summary: Modu³ GD dla PHP
269 Requires(post): %{name}-common = %{version}
270 Requires(preun): %{name}-common = %{version}
273 This is a dynamic shared object (DSO) for Apache that will add GD
274 support to PHP. You should install this package in addition to the
275 main %{name} package if you want to create and manipulate images with
278 %description gd -l pl
279 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
280 obrazków z poziomu PHP.
283 Summary: Java extension module for PHP
284 Summary(pl): Modu³ Javy dla PHP
286 Requires(post): %{name}-common = %{version}
287 Requires(preun): %{name}-common = %{version}
290 This is a dynamic shared object (DSO) for Apache that will add JAVA
291 support to PHP. This extension provides a simple and effective means
292 for creating and invoking methods on Java objects from PHP.
294 %description java -l pl
295 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
296 obiektów Javy z poziomu PHP.
299 Summary: XML extension module for PHP
300 Summary(pl): Modu³ XML dla PHP
302 Requires(post): %{name}-common = %{version}
303 Requires(preun): %{name}-common = %{version}
306 This is a dynamic shared object (DSO) for Apache that will add XML
307 support to PHP. This extension lets you create XML parsers and then
308 define handlers for different XML events. If you want to be able to
309 parse XML documents you should install this package in addition to the
310 main %{name} package.
312 %description xml -l pl
313 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
314 zwi±zanych z tymi plikami.
317 Summary: DBA extension module for PHP
318 Summary(pl): Modu³ DBA dla PHP
320 Requires(post): %{name}-common = %{version}
321 Requires(preun): %{name}-common = %{version}
324 This is a dynamic shared object (DSO) for Apache that will add
325 flat-file databases (DBA) support to PHP.
327 %description dba -l pl
328 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
329 wsparcie dla baz danych DBA.
332 Summary: ODBC extension module for PHP
333 Summary(pl): Modu³ ODBC dla PHP
335 Requires(post): %{name}-common = %{version}
336 Requires(preun): %{name}-common = %{version}
339 This is a dynamic shared object (DSO) for Apache that will add ODBC
342 %description odbc -l pl
343 Modu³ PHP ze wsparciem dla ODBC.
346 Summary: Calendar extension module for PHP
347 Summary(pl): Modu³ funkcji kalendarza dla PHP
349 Requires(post): %{name}-common = %{version}
350 Requires(preun): %{name}-common = %{version}
352 %description calendar
353 This is a dynamic shared object (DSO) for Apache that will add
354 calendar support to PHP.
356 %description calendar -l pl
357 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
358 wsparcie dla kalendarza.
361 Summary: DBase extension module for PHP
362 Summary(pl): Modu³ DBase dla PHP
364 Requires(post): %{name}-common = %{version}
365 Requires(preun): %{name}-common = %{version}
368 This is a dynamic shared object (DSO) for Apache that will add DBase
371 %description dbase -l pl
372 Modu³ PHP ze wsparciem dla DBase.
375 Summary: FilePro extension module for PHP
376 Summary(pl): Modu³ FilePro dla PHP
378 Requires(post): %{name}-common = %{version}
379 Requires(preun): %{name}-common = %{version}
382 This is a dynamic shared object (DSO) for Apache that will add FilePro
385 %description filepro -l pl
386 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
387 wsparcie dla FilePro.
390 Summary: POSIX extension module for PHP
391 Summary(pl): Modu³ POSIX dla PHP
393 Requires(post): %{name}-common = %{version}
394 Requires(preun): %{name}-common = %{version}
397 This is a dynamic shared object (DSO) for Apache that will add POSIX
398 functions support to PHP.
400 %description posix -l pl
401 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
404 Summary: PCRE extension module for PHP
405 Summary(pl): Modu³ PCRE dla PHP
407 Requires(post): %{name}-common = %{version}
408 Requires(preun): %{name}-common = %{version}
411 This is a dynamic shared object (DSO) for Apache that will add Perl
412 Compatible Regular Expression support to PHP.
414 %description pcre -l pl
415 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
416 (Perl Compatible Regular Expressions)
419 Summary: SysV sem extension module for PHP
420 Summary(pl): Modu³ SysV sem dla PHP
422 Requires(post): %{name}-common = %{version}
423 Requires(preun): %{name}-common = %{version}
426 This is a dynamic shared object (DSO) for Apache that will add SysV
427 semafores support to PHP.
429 %description sysvsem -l pl
430 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
433 Summary: SysV shm extension module for PHP
434 Summary(pl): Modu³ SysV shm dla PHP
436 Requires(post): %{name}-common = %{version}
437 Requires(preun): %{name}-common = %{version}
440 This is a dynamic shared object (DSO) for Apache that will add SysV
441 Shared Memory support to PHP.
443 %description sysvshm -l pl
444 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
447 Summary: NIS (yp) extension module for PHP
448 Summary(pl): Modu³ NIS (yp) dla PHP
450 Requires(post): %{name}-common = %{version}
451 Requires(preun): %{name}-common = %{version}
454 This is a dynamic shared object (DSO) for Apache that will add NIS
455 (Yellow Pages) support to PHP.
457 %description yp -l pl
458 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
459 wsparcie dla NIS (Yellow Pages).
462 Summary: bcmath extension module for PHP
463 Summary(pl): Modu³ bcmath dla PHP
465 Requires(post): %{name}-common = %{version}
466 Requires(preun): %{name}-common = %{version}
469 This is a dynamic shared object (DSO) for Apache that will add bc
470 style precision math functions support to PHP.
472 %description bcmath -l pl
473 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
474 matematycznych takich jak w programie bc.
477 Summary: FTP extension module for PHP
478 Summary(pl): Modu³ FTP dla PHP
480 Requires(post): %{name}-common = %{version}
481 Requires(preun): %{name}-common = %{version}
484 This is a dynamic shared object (DSO) for Apache that will add FTP
487 %description ftp -l pl
488 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
491 Summary: Zlib extension module for PHP
492 Summary(pl): Modu³ zlib dla PHP
494 Requires(post): %{name}-common = %{version}
495 Requires(preun): %{name}-common = %{version}
498 This is a dynamic shared object (DSO) for Apache that will add
499 compression (zlib) support to PHP.
501 %description zlib -l pl
502 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
505 Summary: Bzip2 extension module for PHP
506 Summary(pl): Modu³ bzip2 dla PHP
508 Requires(post): %{name}-common = %{version}
509 Requires(preun): %{name}-common = %{version}
512 This is a dynamic shared object (DSO) for Apache that will add
513 compression (bzip2) support to PHP.
515 %description bzip2 -l pl
516 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê bzip2).
519 Summary: exif extension module for PHP
520 Summary(pl): Modu³ exif dla PHP
522 Requires(post): %{name}-common = %{version}
523 Requires(preun): %{name}-common = %{version}
526 This is a dynamic shared object (DSO) for Apache that will add exif
529 %description exif -l pl
530 Modu³ PHP dodaj±cy obs³ugê plików EXIF.
533 Summary: recode extension module for PHP
534 Summary(pl): Modu³ recode dla PHP
536 Requires(post): %{name}-common = %{version}
537 Requires(preun): %{name}-common = %{version}
538 Requires: recode >= 3.5d-3
541 This is a dynamic shared object (DSO) for Apache that will add recode
544 %description recode -l pl
545 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
549 Summary: session extension module for PHP
550 Summary(pl): Modu³ session dla PHP
552 Requires(post): %{name}-common = %{version}
553 Requires(preun): %{name}-common = %{version}
556 This is a dynamic shared object (DSO) for Apache that will add session
559 %description session -l pl
560 Modu³ PHP dodaj±cy obs³ugê sesji.
563 Summary: gettext extension module for PHP
564 Summary(pl): Modu³ gettext dla PHP
566 Requires(post): %{name}-common = %{version}
567 Requires(preun): %{name}-common = %{version}
570 This is a dynamic shared object (DSO) for Apache that will add gettext
573 %description gettext -l pl
574 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
577 Summary: SNMP extension module for PHP
578 Summary(pl): Modu³ SNMP dla PHP
580 Requires(post): %{name}-common = %{version}
581 Requires(preun): %{name}-common = %{version}
584 This is a dynamic shared object (DSO) for Apache that will add SNMP
587 %description snmp -l pl
588 Modu³ PHP dodaj±cy obs³ugê SNMP.
591 Summary: IMAP extension module for PHP
592 Summary(pl): Modu³ IMAP dla PHP
594 Requires(post): %{name}-common = %{version}
595 Requires(preun): %{name}-common = %{version}
598 This is a dynamic shared object (DSO) for Apache that will add IMAP
601 %description imap -l pl
602 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
605 Summary: LDAP extension module for PHP
606 Summary(pl): Modu³ LDAP dla PHP
608 Requires(post): %{name}-common = %{version}
609 Requires(preun): %{name}-common = %{version}
612 This is a dynamic shared object (DSO) for Apache that will add LDAP
615 %description ldap -l pl
616 Modu³ PHP dodaj±cy obs³ugê LDAP.
619 Summary: sockets extension module for PHP
620 Summary(pl): Modu³ socket dla PHP
622 Requires(post): %{name}-common = %{version}
623 Requires(preun): %{name}-common = %{version}
626 This is a dynamic shared object (DSO) for Apache that will add sockets
629 %description sockets -l pl
630 Modu³ PHP dodaj±cy obs³ugê gniazdek.
633 Summary: mcrypt extension module for PHP
634 Summary(pl): Modu³ mcrypt dla PHP
636 Requires(post): %{name}-common = %{version}
637 Requires(preun): %{name}-common = %{version}
640 This is a dynamic shared object (DSO) for Apache that will add mcrypt
643 %description mcrypt -l pl
644 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
647 Summary: mhash extension module for PHP
648 Summary(pl): Modu³ mhash dla PHP
650 Requires(post): %{name}-common = %{version}
651 Requires(preun): %{name}-common = %{version}
654 This is a dynamic shared object (DSO) for Apache that will add mhash
657 %description mhash -l pl
658 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
661 Summary: Online manual for PHP
662 Summary(pl): Dokumentacja dla PHP
663 Group: Networking/Daemons
664 Obsoletes: php-manual
667 Comprehensive documentation for PHP, viewable through your web server,
670 %description doc -l pl
671 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
675 Summary: PEAR - PHP Extension and Application Repository
676 Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
677 Group: Development/Languages/PHP
678 Requires: %{name}-cgi = %{version}
679 Requires: %{name}-xml = %{version}
682 PEAR - PHP Extension and Application Repository.
684 %description pear -l pl
685 PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
686 Repozytorium Aplikacji.
689 Summary: DOM XML module
690 Summary(pl): Modu³ DOM XML
691 Group: Development/Languages/PHP
696 %description domxml -l pl
700 Summary: Files for PHP modules development
701 Summary(pl): Pliki do kompilacji modu³ów PHP
702 Group: Development/Languages/PHP
703 Requires: %{name}-common = %{version}
706 Files for PHP modules development.
708 %description devel -l pl
709 Pliki potrzebne do kompilacji modu³ów PHP.
712 Summary: curl extension module for PHP
713 Summary(pl): Modu³ curl dla PHP
717 This is a dynamic shared object (DSO) for Apache that will add curl
720 %description curl -l pl
721 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
724 Summary: xslt extension module for PHP
725 Summary(pl): Modu³ xslt dla PHP
727 Requires(post): %{name}-common = %{version}
728 Requires(preun): %{name}-common = %{version}
731 This is a dynamic shared object (DSO) for Apache that will add xslt
734 %description xslt -l pl
735 Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
738 Summary: wddx extension module for PHP
739 Summary(pl): Modu³ wddx dla PHP
741 Requires(post): %{name}-common = %{version}
742 Requires(preun): %{name}-common = %{version}
745 This is a dynamic shared object (DSO) for Apache that will add wddx
748 %description wddx -l pl
749 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
752 Summary: ming extension module for PHP
753 Summary(pl): Modu³ ming dla PHP
755 Requires(post): %{name}-common = %{version}
756 Requires(preun): %{name}-common = %{version}
759 This is a dynamic shared object (DSO) for Apache that will add ming
760 (Flash - .swf files) support to PHP.
762 %description ming -l pl
763 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
767 Summary: cpdf extension module for PHP
768 Summary(pl): Modu³ cpdf dla PHP
770 Requires(post): %{name}-common = %{version}
771 Requires(preun): %{name}-common = %{version}
774 This is a dynamic shared object (DSO) for Apache that will add libcpdf
777 %description libcpdf -l pl
778 Modu³ PHP dodaj±cy obs³ugê libcpdf.
781 Summary: iconv extension module for PHP
782 Summary(pl): Modu³ iconv dla PHP
784 Requires(post): %{name}-common = %{version}
785 Requires(preun): %{name}-common = %{version}
788 This is a dynamic shared object (DSO) for Apache that will add iconv
791 %description iconv -l pl
792 Modu³ PHP dodaj±cy obs³ugê iconv.
795 Summary: gmp extension module for PHP
796 Summary(pl): Modu³ gmp dla PHP
798 Requires(post): %{name}-common = %{version}
799 Requires(preun): %{name}-common = %{version}
802 This is a dynamic shared object (DSO) for Apache that will add
803 arbitrary length number support with GNU MP library to PHP.
805 %description gmp -l pl
806 Modu³ PHP umorzliwiaj±cy korzystanie z biblioteki gmp.
809 Summary: Shared Memory Operations extension module for PHP
810 Summary(pl): Modu³ shmop dla PHP
812 Requires(post): %{name}-common = %{version}
813 Requires(preun): %{name}-common = %{version}
816 This is a dynamic shared object (DSO) for Apache that will add
817 Shared Memory Operations support to PHP.
819 %description shmop -l pl
820 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
839 bzip2 -dc %{SOURCE4} | tar -xf - -C manual
842 CFLAGS="%{rpmcflags} -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
843 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
845 libtoolize --copy --force
848 #for i in cgi fastcgi apxs ; do
849 for i in cgi apxs ; do
851 `[ $i = cgi ] && echo --enable-discard-path` \
852 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
853 `[ $i = apxs ] && echo --with-apxs%{?_apache2:2}=%{_sbindir}/apxs` \
854 --with-config-file-path=%{_sysconfdir} \
855 --with-exec-dir=%{_bindir} \
856 --%{!?debug:dis}%{?debug:en}able-debug \
857 --enable-bcmath=shared \
858 --enable-calendar=shared \
859 --enable-dba=shared \
860 --enable-exif=shared \
861 --enable-ftp=shared \
862 --enable-gd-native-ttf \
863 --enable-magic-quotes \
864 --enable-posix=shared \
867 --enable-shmop=shared \
868 --enable-sysvsem=shared \
869 --enable-sysvshm=shared \
870 --enable-track-vars \
873 --enable-sockets=shared \
875 --enable-ucd-snmp-hack \
876 --enable-xml=shared \
877 --with-expat-dir=/usr \
878 %{?_with_xslt:--enable-xslt=shared} \
880 %{?_with_libcpdf:--with-cpdflib=shared} \
881 --with-ctype=shared \
885 --with-dbase=shared \
886 --with-iconv=shared \
888 --with-dom-xslt=shared \
889 --with-filepro=shared \
890 --with-freetype-dir=shared \
891 --with-gettext=shared \
896 %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
897 %{?_with_java:--with-java} \
898 --with-jpeg-dir=shared \
899 %{!?_without_ldap:--with-ldap=shared} \
900 --with-mcrypt=shared \
901 --with-mysql=shared,%{_prefix} \
902 --with-mysql-sock=/var/lib/mysql/mysql.sock \
903 --with-mhash=shared \
905 %{!?_without_mm:--with-mm} \
906 %{!?_without_openssl:--with-openssl} \
907 %{?_with_oracle:--with-oracle=shared} \
908 %{?_with_oci8:--with-oci8=shared} \
909 --with-pear=%{peardir} \
910 --with-pcre-regex=shared \
911 --with-pdflib=shared \
912 --with-pgsql=shared,%{_prefix} \
913 --with-png-dir=shared \
914 %{!?_without_recode:--with-recode=shared} \
916 %{!?_without_sablot:--with-sablot=/usr/lib} \
917 %{!?_without_snmp:--with-snmp=shared} \
918 --with-t1lib=shared \
919 %{!?_without_odbc:--with-unixODBC=shared} \
920 %{?_with_wddx:--enable-wddx=shared} \
922 --with-zlib-dir=shared \
924 %{?_with_xslt:--with-xslt-sablot=shared}
927 # TODO --with-pspell=/usr,shared (pspell missing)
928 # --with-qtdom=shared
930 rm -f ext/xml/libs.mk
931 install %{SOURCE6} ext/xml/libs.mk
934 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
936 # Kill -rpath from php binary and libphp4.so
937 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
938 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
939 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
941 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
942 rm libphp4.la ; %{__make} libphp4.la
945 rm -rf $RPM_BUILD_ROOT
946 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
947 $RPM_BUILD_ROOT/home/httpd/icons \
948 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
949 $RPM_BUILD_ROOT/var/run/php
952 INSTALL_ROOT=$RPM_BUILD_ROOT \
953 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
955 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
958 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
959 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
961 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
962 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
963 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
967 gzip -9nf CODING_STANDARDS CREDITS \
968 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
969 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
972 rm -rf $RPM_BUILD_ROOT
975 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
976 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
977 /etc/httpd/httpd.conf
978 if [ -f /var/lock/subsys/httpd ]; then
979 /etc/rc.d/init.d/httpd restart 1>&2
983 if [ "$1" = "0" ]; then
984 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
986 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
987 /etc/httpd/httpd.conf
988 if [ -f /var/lock/subsys/httpd ]; then
989 /etc/rc.d/init.d/httpd restart 1>&2
993 %post common -p /sbin/ldconfig
994 %postun common -p /sbin/ldconfig
997 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
1000 if [ "$1" = "0" ]; then
1001 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
1005 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
1008 if [ "$1" = "0" ]; then
1009 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1013 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1016 if [ "$1" = "0" ]; then
1017 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1021 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1024 if [ "$1" = "0" ]; then
1025 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1029 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1032 if [ "$1" = "0" ]; then
1033 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1037 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1040 if [ "$1" = "0" ]; then
1041 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1045 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1048 if [ "$1" = "0" ]; then
1049 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1053 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1056 if [ "$1" = "0" ]; then
1057 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1061 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1064 if [ "$1" = "0" ]; then
1065 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1068 %if %{?_without_imap:0}%{!?_without_imap:1}
1070 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1073 if [ "$1" = "0" ]; then
1074 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1078 %if %{?_with_java:1}%{!?_with_java:0}
1080 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1083 if [ "$1" = "0" ]; then
1084 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1088 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1090 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1093 if [ "$1" = "0" ]; then
1094 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1099 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1102 if [ "$1" = "0" ]; then
1103 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1107 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1110 if [ "$1" = "0" ]; then
1111 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1115 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1118 if [ "$1" = "0" ]; then
1119 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1123 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1126 if [ "$1" = "0" ]; then
1127 %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1131 if [ "$1" = "0" ]; then
1132 %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
1136 %{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
1138 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1140 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1143 if [ "$1" = "0" ]; then
1144 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1148 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1150 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1153 if [ "$1" = "0" ]; then
1154 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1158 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1160 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1163 if [ "$1" = "0" ]; then
1164 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1169 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1172 if [ "$1" = "0" ]; then
1173 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1177 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1180 if [ "$1" = "0" ]; then
1181 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1185 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1188 if [ "$1" = "0" ]; then
1189 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1192 %if %{?_without_recode:0}%{!?_without_recode:1}
1194 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1197 if [ "$1" = "0" ]; then
1198 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1203 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1206 if [ "$1" = "0" ]; then
1207 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1210 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1212 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1215 if [ "$1" = "0" ]; then
1216 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1221 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1224 if [ "$1" = "0" ]; then
1225 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1229 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1232 if [ "$1" = "0" ]; then
1233 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1237 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1240 if [ "$1" = "0" ]; then
1241 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1245 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1248 if [ "$1" = "0" ]; then
1249 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1253 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1256 if [ "$1" = "0" ]; then
1257 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1261 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1264 if [ "$1" = "0" ]; then
1265 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1269 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1272 if [ "$1" = "0" ]; then
1273 %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1277 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1280 if [ "$1" = "0" ]; then
1281 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1285 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1288 if [ "$1" = "0" ]; then
1289 %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1292 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1294 %{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
1297 if [ "$1" = "0" ]; then
1298 %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
1302 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1304 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
1307 if [ "$1" = "0" ]; then
1308 %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
1312 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1314 %{_sbindir}/php-module-install install libcpdf %{_sysconfdir}/php.ini
1317 if [ "$1" = "0" ]; then
1318 %{_sbindir}/php-module-install remove libcpdf %{_sysconfdir}/php.ini
1323 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1326 if [ "$1" = "0" ]; then
1327 %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1331 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1334 if [ "$1" = "0" ]; then
1335 %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1339 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
1342 if [ "$1" = "0" ]; then
1343 %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_bindir}/php
1355 %defattr(644,root,root,755)
1356 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1357 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1358 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1361 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1362 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
1365 %attr(755,root,root) %{_sbindir}/*
1366 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1367 %dir %{extensionsdir}
1370 %defattr(644,root,root,755)
1372 %{_libdir}/php/build
1373 %attr(755,root,root) %{_bindir}/phpextdist
1374 %attr(755,root,root) %{_bindir}/phpize
1375 %attr(755,root,root) %{_bindir}/php-config
1378 %defattr(644,root,root,755)
1379 %attr(755,root,root) %{extensionsdir}/domxml.so
1382 %defattr(644,root,root,755)
1383 %attr(755,root,root) %{_bindir}/pear
1387 %defattr(644,root,root,755)
1388 %attr(755,root,root) %{extensionsdir}/mysql.so
1391 %defattr(644,root,root,755)
1392 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1395 %defattr(644,root,root,755)
1396 %attr(755,root,root) %{extensionsdir}/pgsql.so
1398 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1400 %defattr(644,root,root,755)
1401 %attr(755,root,root) %{extensionsdir}/oracle.so
1404 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1406 %defattr(644,root,root,755)
1407 %attr(755,root,root) %{extensionsdir}/oci8.so
1411 %defattr(644,root,root,755)
1412 %attr(755,root,root) %{extensionsdir}/gd.so
1415 %defattr(644,root,root,755)
1416 %attr(755,root,root) %{extensionsdir}/xml.so
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{extensionsdir}/dba.so
1423 %defattr(644,root,root,755)
1424 %attr(755,root,root) %{extensionsdir}/dbase.so
1427 %defattr(644,root,root,755)
1428 %attr(755,root,root) %{extensionsdir}/filepro.so
1431 %defattr(644,root,root,755)
1432 %attr(755,root,root) %{extensionsdir}/pcre.so
1435 %defattr(644,root,root,755)
1436 %attr(755,root,root) %{extensionsdir}/posix.so
1439 %defattr(644,root,root,755)
1440 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1443 %defattr(644,root,root,755)
1444 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1447 %defattr(644,root,root,755)
1448 %attr(755,root,root) %{extensionsdir}/yp.so
1451 %defattr(644,root,root,755)
1452 %attr(755,root,root) %{extensionsdir}/calendar.so
1455 %defattr(644,root,root,755)
1456 %attr(755,root,root) %{extensionsdir}/bcmath.so
1459 %defattr(644,root,root,755)
1460 %attr(755,root,root) %{extensionsdir}/ftp.so
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) %{extensionsdir}/zlib.so
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{extensionsdir}/bz2.so
1471 %defattr(644,root,root,755)
1472 %attr(755,root,root) %{extensionsdir}/exif.so
1474 %if %{?_without_recode:0}%{!?_without_recode:1}
1476 %defattr(644,root,root,755)
1477 %attr(755,root,root) %{extensionsdir}/recode.so
1481 #%defattr(644,root,root,755)
1482 #%attr(755,root,root) %{extensionsdir}/session.so
1485 %defattr(644,root,root,755)
1486 %attr(755,root,root) %{extensionsdir}/gettext.so
1488 %if %{?_without_imap:0}%{!?_without_imap:1}
1490 %defattr(644,root,root,755)
1491 %attr(755,root,root) %{extensionsdir}/imap.so
1494 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1496 %defattr(644,root,root,755)
1497 %attr(755,root,root) %{extensionsdir}/snmp.so
1500 %if %{?_with_java:1}%{!?_with_java:0}
1502 %defattr(644,root,root,755)
1503 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1506 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1508 %defattr(644,root,root,755)
1509 %attr(755,root,root) %{extensionsdir}/ldap.so
1513 %defattr(644,root,root,755)
1514 %attr(755,root,root) %{extensionsdir}/sockets.so
1517 %defattr(644,root,root,755)
1518 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1521 %defattr(644,root,root,755)
1522 %attr(755,root,root) %{extensionsdir}/mhash.so
1524 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{extensionsdir}/odbc.so
1531 %defattr(644,root,root,755)
1535 %defattr(644,root,root,755)
1536 %attr(755,root,root) %{extensionsdir}/curl.so
1539 %defattr(644,root,root,755)
1540 %attr(755,root,root) %{extensionsdir}/ming.so
1542 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1544 %defattr(644,root,root,755)
1545 %attr(755,root,root) %{extensionsdir}/xslt.so
1548 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1550 %defattr(644,root,root,755)
1551 %attr(755,root,root) %{extensionsdir}/wddx.so
1554 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{extensionsdir}/cpdf.so
1561 %defattr(644,root,root,755)
1562 %attr(755,root,root) %{extensionsdir}/iconv.so
1565 %defattr(644,root,root,755)
1566 %attr(755,root,root) %{extensionsdir}/gmp.so
1569 %defattr(644,root,root,755)
1570 %attr(755,root,root) %{extensionsdir}/shmop.so