3 # _with_oracle - with oracle support
4 # _with_oci8 - with oci8 support
5 # _with_java - with Java support
6 # _with_openssl - with OpenSSL support
7 # _without_imap - without IMAP support
8 # _without_ldap - without LDAP support
9 # _without_odbc - without ODBC support
10 # _without_snmp - without SNMP support
12 Summary: The PHP HTML-embedded scripting language for use with Apache
13 Summary(fr): Le langage de script embarque-HTML PHP pour Apache
14 Summary(pl): Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
21 Group(es): Bibliotecas
24 License: The PHP license (see "LICENSE" file included in distribution)
25 Source0: http://www.php.net/distributions/%{name}-%{version}.tar.gz
29 Source4: http://www.php.net/distributions/manual.tar.gz
30 Source5: php-module-install
31 #Patch0: %{name}-imap.patch
32 Patch1: %{name}-mysql-socket.patch
33 Patch2: %{name}-mail.patch
34 Patch3: %{name}-link-libs.patch
35 #Patch4: %{name}-DESTDIR.patch
36 #Patch5: %{name}-gd-shared.patch
37 Patch6: %{name}-session-path.patch
38 #Patch7: %{name}-libtool_version_check_fix.patch
39 #Patch8: %{name}-pdflib.patch
40 Patch9: %{name}-am_ac_lt.patch
41 Patch10: %{name}-fastcgi.patch
42 Patch11: %{name}-shared.patch
43 Patch12: %{name}-ac250.patch
44 Patch13: %{name}-pearinstall.patch
46 URL: http://www.php.net/
47 BuildRequires: apache(EAPI)-devel
51 BuildRequires: db3-devel >= 3.1.17
52 BuildRequires: freetype1-devel
53 BuildRequires: gd-devel >= 1.8.3
54 BuildRequires: gdbm-devel
55 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA }
56 # I think jdk is better for java
58 %{?_with_java:BuildRequires: kaffe-devel}
59 BuildRequires: libjpeg-devel
60 BuildRequires: libltdl-devel >= 1.4
61 BuildRequires: libpng >= 1.0.8
62 BuildRequires: libtiff-devel
63 BuildRequires: libtool
64 BuildRequires: mm-devel >= 1.1.3
65 BuildRequires: mysql-devel >= 3.23.32
66 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
67 BuildRequires: pam-devel
68 BuildRequires: pdflib-devel >= 4.0.0
69 #BuildRequires: libxml-devel >= 2.0.0
70 BuildRequires: postgresql-devel
71 BuildRequires: recode-devel >= 3.5d-3
72 BuildRequires: t1lib-devel
73 %{!?_without_odbc:BuildRequires: unixODBC-devel}
74 BuildRequires: zlib-devel >= 1.0.9
75 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
76 BuildRequires: libmcrypt-devel >= 2.4.4
77 BuildRequires: mhash-devel
78 BuildRequires: bzip2-devel
79 BuildRequires: gmp-devel
80 BuildRequires: curl-devel
81 #BuildRequires: fastcgi-devkit
82 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
83 BuildRequires: openssl-devel >= 0.9.6a
85 Prereq: apache(EAPI) >= 1.3.9
87 Prereq: %{_sbindir}/apxs
88 PreReq: %{name}-common = %{version}
89 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92 %define _sysconfdir /etc/php
93 %define extensionsdir %{_libdir}/php
94 %define peardir %{_datadir}/pear
97 PHP is an HTML-embedded scripting language. PHP attempts to make it
98 easy for developers to write dynamically generated web pages. PHP also
99 offers built-in database integration for several commercial and
100 non-commercial database management systems, so writing a
101 database-enabled web page with PHP is fairly simple. The most common
102 use of PHP coding is probably as a replacement for CGI scripts. The
103 mod_php module enables the Apache web server to understand and process
104 the embedded PHP language in web pages. This package contains PHP
105 version %{version}. If you use applications which specifically rely on
106 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
107 module contained in the phpfi package. If you're just starting with
108 PHP, you should install this package. You'll also need to install the
112 PHP est un langage de script embarque dans le HTM. PHP essaye de
113 rendre simple aux developpeurs d'ecrire des pages web generees
114 dynamiquement. PHP incorpore egalement une integration avec plusieurs
115 systemes de gestion de bases de donnees commerciaux et
116 non-connerciaux, qui rent facile la creation de pages web liees avec
117 des bases de donnees. L'utilisation la plus commune de PHP est
118 probablement en remplacement de scripts CGI. Le module mod_php permet
119 au serveur web apache de comprendre et de traiter le langage PHP
120 integre dans des pages web. Ce package contient PHP version
121 %{version}. Si vous utilisez des applications qui utilisent
122 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
123 dans le package mod_php. Si vous debutez avec PHP, vous devriez
124 installer ce package. Vous aurez egalement besoin d'installer le
128 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
129 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
130 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
131 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
132 zosta³a z jêzyków: C, Java i Perl.
135 Summary: PHP as CGI program
136 Summary(pl): PHP jako program CGI
139 Group(es): Bibliotecas
140 Group(fr): Librairies
141 Group(pl): Biblioteki
142 PreReq: %{name}-common = %{version}
147 %description cgi -l pl
148 PHP jako program CGI.
151 Summary: Common files nneded by both apache module and CGI
152 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
155 Group(es): Bibliotecas
156 Group(fr): Librairies
157 Group(pl): Biblioteki
160 Common files needed by both apache module and CGI.
162 %description common -l pl
163 Wspólne pliki dla modu³u apacha i programu CGI.
166 Summary: MySQL database module for PHP
167 Summary(pl): Modu³ bazy danych MySQL dla PHP
170 Group(es): Bibliotecas
171 Group(fr): Librairies
172 Group(pl): Biblioteki
173 PreReq: %{name}-common = %{version}
176 This is a dynamic shared object (DSO) for Apache that will add MySQL
177 database support to PHP. If you need back-end support for MySQL, you
178 should install this package in addition to the main %{name} package.
180 %description mysql -l pl
181 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
184 Summary: PostgreSQL database module for PHP
185 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
188 Group(es): Bibliotecas
189 Group(fr): Librairies
190 Group(pl): Biblioteki
191 PreReq: %{name}-common = %{version}
194 This is a dynamic shared object (DSO) for Apache that will add
195 PostgreSQL database support to PHP. If you need back-end support for
196 PostgreSQL, you should install this package in addition to the main
199 %description pgsql -l pl
200 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
203 Summary: Oracle 8 database module for PHP
204 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
207 Group(es): Bibliotecas
208 Group(fr): Librairies
209 Group(pl): Biblioteki
210 PreReq: %{name}-common = %{version}
214 This is a dynamic shared object (DSO) for Apache that will add Oracle
215 8 database support to PHP. If you need back-end support for Oracle 8,
216 you should install this package in addition to the main %{name}
219 %description oci8 -l pl
220 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
223 Summary: Oracle 7 database module for PHP
224 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
227 Group(es): Bibliotecas
228 Group(fr): Librairies
229 Group(pl): Biblioteki
230 PreReq: %{name}-common = %{version}
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}
239 %description oracle -l pl
240 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
243 Summary: GD extension module for PHP
244 Summary: Modu³ GD dla PHP
247 Group(es): Bibliotecas
248 Group(fr): Librairies
249 Group(pl): Biblioteki
250 PreReq: %{name}-common = %{version}
253 This is a dynamic shared object (DSO) for Apache that will add GD
254 support to PHP. You should install this package in addition to the
255 main %{name} package if you want to create and manipulate images with
258 %description gd -l pl
259 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
260 obrazków z poziomu PHP.
263 Summary: Java extension module for PHP
264 Summary(pl): Modu³ Javy dla PHP
267 Group(es): Bibliotecas
268 Group(fr): Librairies
269 Group(pl): Biblioteki
270 PreReq: %{name}-common = %{version}
273 This is a dynamic shared object (DSO) for Apache that will add JAVA
274 support to PHP. This extension provides a simple and effective means
275 for creating and invoking methods on Java objects from PHP.
277 %description java -l pl
278 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
279 obiektów Javy z poziomu PHP.
282 Summary: XML extension module for PHP
283 Summary(pl): Modu³ XML dla PHP
286 Group(es): Bibliotecas
287 Group(fr): Librairies
288 Group(pl): Biblioteki
289 PreReq: %{name}-common = %{version}
292 This is a dynamic shared object (DSO) for Apache that will add XML
293 support to PHP. This extension lets you create XML parsers and then
294 define handlers for different XML events. If you want to be able to
295 parse XML documents you should install this package in addition to the
296 main %{name} package.
298 %description xml -l pl
299 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
300 zwi±zanych z tymi plikami.
303 Summary: DBA extension module for PHP
304 Summary(pl): Modu³ DBA dla PHP
307 Group(es): Bibliotecas
308 Group(fr): Librairies
309 Group(pl): Biblioteki
310 PreReq: %{name}-common = %{version}
313 This is a dynamic shared object (DSO) for Apache that will add
314 flat-file databases (DBA) support to PHP.
316 #%description dba -l pl
319 Summary: ODBC extension module for PHP
320 Summary(pl): Modu³ ODBC dla PHP
323 Group(es): Bibliotecas
324 Group(fr): Librairies
325 Group(pl): Biblioteki
326 PreReq: %{name}-common = %{version}
329 This is a dynamic shared object (DSO) for Apache that will add ODBC
332 %description odbc -l pl
333 Modu³ PHP ze wsparciem dla ODBC.
336 Summary: Calendar extension module for PHP
337 Summary(pl): Modu³ funkcji kalendarza dla PHP
340 Group(es): Bibliotecas
341 Group(fr): Librairies
342 Group(pl): Biblioteki
343 PreReq: %{name}-common = %{version}
345 %description calendar
346 This is a dynamic shared object (DSO) for Apache that will add
347 calendar support to PHP.
349 #%description calendar -l pl
352 Summary: DBase extension module for PHP
353 Summary(pl): Modu³ DBase dla PHP
356 Group(es): Bibliotecas
357 Group(fr): Librairies
358 Group(pl): Biblioteki
359 PreReq: %{name}-common = %{version}
362 This is a dynamic shared object (DSO) for Apache that will add DBase
365 %description dbase -l pl
366 Modu³ PHP ze wsparciem dla DBase.
369 Summary: FilePro extension module for PHP
370 Summary(pl): Modu³ FilePro dla PHP
373 Group(es): Bibliotecas
374 Group(fr): Librairies
375 Group(pl): Biblioteki
376 PreReq: %{name}-common = %{version}
379 This is a dynamic shared object (DSO) for Apache that will add FilePro
382 #%description filepro -l pl
385 Summary: POSIX extension module for PHP
386 Summary(pl): Modu³ POSIX dla PHP
389 Group(es): Bibliotecas
390 Group(fr): Librairies
391 Group(pl): Biblioteki
392 PreReq: %{name}-common = %{version}
395 This is a dynamic shared object (DSO) for Apache that will add POSIX
396 functions support to PHP.
398 %description posix -l pl
399 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
402 Summary: PCRE extension module for PHP
403 Summary(pl): Modu³ PCRE dla PHP
406 Group(es): Bibliotecas
407 Group(fr): Librairies
408 Group(pl): Biblioteki
409 PreReq: %{name}-common = %{version}
412 This is a dynamic shared object (DSO) for Apache that will add Perl
413 Compatible Regular Expression support to PHP.
415 %description pcre -l pl
416 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
417 (Perl Compatible Regular Expressions)
420 Summary: SysV sem extension module for PHP
421 Summary(pl): Modu³ SysV sem dla PHP
424 Group(es): Bibliotecas
425 Group(fr): Librairies
426 Group(pl): Biblioteki
427 PreReq: %{name}-common = %{version}
430 This is a dynamic shared object (DSO) for Apache that will add SysV
431 semafores support to PHP.
433 %description sysvsem -l pl
434 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
437 Summary: SysV shm extension module for PHP
438 Summary(pl): Modu³ SysV shm dla PHP
441 Group(es): Bibliotecas
442 Group(fr): Librairies
443 Group(pl): Biblioteki
444 PreReq: %{name}-common = %{version}
447 This is a dynamic shared object (DSO) for Apache that will add SysV
448 Shared Memory support to PHP.
450 %description sysvshm -l pl
451 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
454 Summary: NIS (yp) extension module for PHP
455 Summary(pl): Modu³ NIS (yp) dla PHP
458 Group(es): Bibliotecas
459 Group(fr): Librairies
460 Group(pl): Biblioteki
461 PreReq: %{name}-common = %{version}
464 This is a dynamic shared object (DSO) for Apache that will add NIS
465 (Yellow Pages) support to PHP.
467 #%description yp -l pl
470 Summary: bcmath extension module for PHP
471 Summary(pl): Modu³ bcmath dla PHP
474 Group(es): Bibliotecas
475 Group(fr): Librairies
476 Group(pl): Biblioteki
477 PreReq: %{name}-common = %{version}
480 This is a dynamic shared object (DSO) for Apache that will add bc
481 style precision math functions support to PHP.
483 %description bcmath -l pl
484 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
485 matematycznych takich jak w programie bc.
488 Summary: FTP extension module for PHP
489 Summary(pl): Modu³ FTP dla PHP
492 Group(es): Bibliotecas
493 Group(fr): Librairies
494 Group(pl): Biblioteki
495 PreReq: %{name}-common = %{version}
498 This is a dynamic shared object (DSO) for Apache that will add FTP
501 #%description ftp -l pl
504 Summary: Zlib extension module for PHP
505 Summary(pl): Modu³ zlib dla PHP
508 Group(es): Bibliotecas
509 Group(fr): Librairies
510 Group(pl): Biblioteki
511 PreReq: %{name}-common = %{version}
514 This is a dynamic shared object (DSO) for Apache that will add
515 compression (zlib) support to PHP.
517 %description zlib -l pl
518 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
521 Summary: exifextension module for PHP
522 Summary(pl): Modu³ exif dla PHP
525 Group(es): Bibliotecas
526 Group(fr): Librairies
527 Group(pl): Biblioteki
528 PreReq: %{name}-common = %{version}
531 This is a dynamic shared object (DSO) for Apache that will add exif
534 #%description exif -l pl
537 Summary: recodeextension module for PHP
538 Summary(pl): Modu³ recode dla PHP
541 Group(es): Bibliotecas
542 Group(fr): Librairies
543 Group(pl): Biblioteki
544 PreReq: %{name}-common = %{version}
545 Requires: recode >= 3.5d-3
548 This is a dynamic shared object (DSO) for Apache that will add recode
551 #%description recode -l pl
554 Summary: sessionextension module for PHP
555 Summary(pl): Modu³ session dla PHP
558 Group(es): Bibliotecas
559 Group(fr): Librairies
560 Group(pl): Biblioteki
561 PreReq: %{name}-common = %{version}
564 This is a dynamic shared object (DSO) for Apache that will add session
567 #%description session -l pl
570 Summary: gettextextension module for PHP
571 Summary(pl): Modu³ gettext dla PHP
574 Group(es): Bibliotecas
575 Group(fr): Librairies
576 Group(pl): Biblioteki
577 PreReq: %{name}-common = %{version}
580 This is a dynamic shared object (DSO) for Apache that will add gettext
583 #%description gettext -l pl
586 Summary: snmpextension module for PHP
587 Summary(pl): Modu³ snmp dla PHP
590 Group(es): Bibliotecas
591 Group(fr): Librairies
592 Group(pl): Biblioteki
593 PreReq: %{name}-common = %{version}
596 This is a dynamic shared object (DSO) for Apache that will add snmp
599 #%description snmp -l pl
602 Summary: imapextension module for PHP
603 Summary(pl): Modu³ imap dla PHP
606 Group(es): Bibliotecas
607 Group(fr): Librairies
608 Group(pl): Biblioteki
609 PreReq: %{name}-common = %{version}
612 This is a dynamic shared object (DSO) for Apache that will add imap
615 #%description imap -l pl
618 Summary: LDAP extension module for PHP
619 Summary(pl): Modu³ LDAP dla PHP
622 Group(es): Bibliotecas
623 Group(fr): Librairies
624 Group(pl): Biblioteki
625 PreReq: %{name}-common = %{version}
628 This is a dynamic shared object (DSO) for Apache that will add LDAP
631 #%description ldap -l pl
634 Summary: sockets extension module for PHP
635 Summary(pl): Modu³ socket dla PHP
638 Group(es): Bibliotecas
639 Group(fr): Librairies
640 Group(pl): Biblioteki
641 PreReq: %{name}-common = %{version}
644 This is a dynamic shared object (DSO) for Apache that will add sockets
647 #%description sockets -l pl
650 Summary: mcrypt extension module for PHP
651 Summary(pl): Modu³ mcrypt dla PHP
654 Group(es): Bibliotecas
655 Group(fr): Librairies
656 Group(pl): Biblioteki
657 PreReq: %{name}-common = %{version}
660 This is a dynamic shared object (DSO) for Apache that will add mcrypt
663 #%description mcrypt -l pl
666 Summary: mhash extension module for PHP
667 Summary(pl): Modu³ mhash dla PHP
670 Group(es): Bibliotecas
671 Group(fr): Librairies
672 Group(pl): Biblioteki
673 PreReq: %{name}-common = %{version}
676 This is a dynamic shared object (DSO) for Apache that will add mhash
679 #%description mhash -l pl
682 Summary: Online manual for PHP
683 Summary(pl): Dokumentacja dla PHP
684 Group: Networking/Daemons
685 Group(de): Netzwerkwesen/Server
686 Group(pl): Sieciowe/Serwery
689 Comprehensive documentation for PHP, viewable through your web server,
692 %description doc -l pl
693 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
698 Group: Development/Languages/PHP
704 Summary: Files for PHP modules development
705 Summary(pl): Pliki do kompilacji modu³ów PHP
706 Group: Development/Languages/PHP
707 Requires: %{name}-common = %{version}
710 Files for PHP modules development.
712 %description devel -l pl
713 Pliki potrzebne do kompilacji modu³ów PHP.
716 Summary: curl extension module for PHP
717 Summary(pl): Modu³ curl dla PHP
720 Group(es): Bibliotecas
721 Group(fr): Librairies
722 Group(pl): Biblioteki
723 PreReq: %{name}-common = %{version}
726 This is a dynamic shared object (DSO) for Apache that will add curl
729 %description curl -l pl
730 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
745 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
746 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
748 libtoolize --copy --force
751 #for i in cgi fastcgi apxs ; do
752 for i in cgi apxs ; do
754 `[ $i = cgi ] && echo --enable-discard-path` \
755 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
756 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
757 --with-config-file-path=%{_sysconfdir} \
758 --with-exec-dir=%{_bindir} \
760 --enable-magic-quotes \
762 --enable-track-vars \
765 --enable-sysvsem=shared \
766 --enable-sysvshm=shared \
767 --enable-shmop=shared \
769 --enable-exif=shared \
771 --with-gettext=shared \
772 %{!?_without_ldap:--with-ldap=shared} \
773 --with-mysql=shared,/usr \
774 --with-mysql-sock=/var/lib/mysql/mysql.sock \
776 --enable-gd-imgstrttf \
777 --with-dbase=shared \
778 --with-filepro=shared \
779 --enable-ftp=shared \
781 --with-pdflib=shared \
782 --with-cpdflib=shared \
783 %{?_with_java:--with-java} \
784 --with-pgsql=shared,/usr \
785 %{!?_without_imap:--with-imap=shared} \
786 --enable-bcmath=shared \
787 --enable-calendar=shared \
789 --with-pcre-regex=shared \
790 --enable-posix=shared \
793 --with-recode=shared \
794 --enable-ucd-snmp-hack \
795 --enable-dba=shared \
796 %{!?_without_snmp:--with-snmp=shared} \
801 --enable-xml=shared \
803 --with-mcrypt=shared \
804 --enable-sockets=shared \
806 --with-ctype=shared \
807 --with-mhash=shared \
810 %{?_with_openssl:--with-openssl} \
811 %{!?_without_odbc:--with-unixODBC=shared} \
812 %{?_with_oracle:--with-oracle=shared} \
813 %{?_with_oci8:--with-oci8=shared} \
815 --with-pear=%{peardir}
818 # TODO --with-pspell=/usr,shared (pspell missing)
820 # --with-dom need libxml >= 2.2.7 \
823 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
825 # Kill -rpath from php binary and libphp4.so
826 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
827 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
828 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
830 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
831 rm libphp4.la ; %{__make} libphp4.la
834 rm -rf $RPM_BUILD_ROOT
835 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
836 $RPM_BUILD_ROOT/home/httpd/icons \
837 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
840 INSTALL_ROOT=$RPM_BUILD_ROOT \
841 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
843 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
846 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
847 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
849 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
850 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
851 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
854 tar zxf %{SOURCE4} -C manual
855 ln -s manual.html manual/index.html
858 gzip -9nf CODING_STANDARDS CREDITS \
859 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
860 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
863 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
864 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
865 /etc/httpd/httpd.conf
866 if [ -f /var/lock/subsys/httpd ]; then
867 /etc/rc.d/init.d/httpd restart 1>&2
871 if [ "$1" = "0" ]; then
872 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
874 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
875 /etc/httpd/httpd.conf
876 if [ -f /var/lock/subsys/httpd ]; then
877 /etc/rc.d/init.d/httpd restart 1>&2
881 %post common -p /sbin/ldconfig
882 %postun common -p /sbin/ldconfig
885 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
888 if [ "$1" = "0" ]; then
889 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
893 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
896 if [ "$1" = "0" ]; then
897 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
901 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
904 if [ "$1" = "0" ]; then
905 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
909 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
912 if [ "$1" = "0" ]; then
913 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
917 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
920 if [ "$1" = "0" ]; then
921 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
925 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
928 if [ "$1" = "0" ]; then
929 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
933 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
936 if [ "$1" = "0" ]; then
937 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
941 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
944 if [ "$1" = "0" ]; then
945 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
949 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
952 if [ "$1" = "0" ]; then
953 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
956 %if %{?_without_imap:0}%{!?_without_imap:1}
958 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
961 if [ "$1" = "0" ]; then
962 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
966 %if %{?bond_on_java:1}%{!?bond_on_java:0}
968 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
971 if [ "$1" = "0" ]; then
972 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
976 %if %{?_without_ldap:0}%{!?_without_ldap:1}
978 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
981 if [ "$1" = "0" ]; then
982 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
987 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
990 if [ "$1" = "0" ]; then
991 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
995 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
998 if [ "$1" = "0" ]; then
999 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1003 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1006 if [ "$1" = "0" ]; then
1007 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1010 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1012 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1015 if [ "$1" = "0" ]; then
1016 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1020 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1022 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1025 if [ "$1" = "0" ]; then
1026 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1030 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1032 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1035 if [ "$1" = "0" ]; then
1036 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1041 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1044 if [ "$1" = "0" ]; then
1045 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1049 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1052 if [ "$1" = "0" ]; then
1053 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1057 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1060 if [ "$1" = "0" ]; then
1061 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1065 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1068 if [ "$1" = "0" ]; then
1069 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1073 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1076 if [ "$1" = "0" ]; then
1077 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1080 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1082 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1085 if [ "$1" = "0" ]; then
1086 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1091 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1094 if [ "$1" = "0" ]; then
1095 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1099 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1102 if [ "$1" = "0" ]; then
1103 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1107 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1110 if [ "$1" = "0" ]; then
1111 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1115 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1118 if [ "$1" = "0" ]; then
1119 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1123 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1126 if [ "$1" = "0" ]; then
1127 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1131 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1134 if [ "$1" = "0" ]; then
1135 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1139 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1142 if [ "$1" = "0" ]; then
1143 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1147 rm -rf $RPM_BUILD_ROOT
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_bindir}/php
1158 %defattr(644,root,root,755)
1159 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1160 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1161 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1164 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1168 %attr(755,root,root) %{_sbindir}/*
1170 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1172 %dir %{extensionsdir}
1175 %defattr(644,root,root,755)
1177 %{_libdir}/php/build
1178 %attr(755,root,root) %{_bindir}/phpextdist
1179 %attr(755,root,root) %{_bindir}/phpize
1180 %attr(755,root,root) %{_bindir}/php-config
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{_bindir}/pear
1188 %defattr(644,root,root,755)
1189 %attr(755,root,root) %{extensionsdir}/mysql.so
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{extensionsdir}/pgsql.so
1195 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1197 %defattr(644,root,root,755)
1198 %attr(755,root,root) %{extensionsdir}/oracle.so
1201 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{extensionsdir}/oci8.so
1208 %defattr(644,root,root,755)
1209 %attr(755,root,root) %{extensionsdir}/gd.so
1213 #%defattr(644,root,root,755)
1214 #%attr(755,root,root) %{extensionsdir}/xml.so
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{extensionsdir}/dba.so
1221 %defattr(644,root,root,755)
1222 %attr(755,root,root) %{extensionsdir}/dbase.so
1225 %defattr(644,root,root,755)
1226 %attr(755,root,root) %{extensionsdir}/filepro.so
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{extensionsdir}/pcre.so
1233 %defattr(644,root,root,755)
1234 %attr(755,root,root) %{extensionsdir}/posix.so
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1241 %defattr(644,root,root,755)
1242 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1245 %defattr(644,root,root,755)
1246 %attr(755,root,root) %{extensionsdir}/yp.so
1249 %defattr(644,root,root,755)
1250 %attr(755,root,root) %{extensionsdir}/calendar.so
1253 %defattr(644,root,root,755)
1254 %attr(755,root,root) %{extensionsdir}/bcmath.so
1257 %defattr(644,root,root,755)
1258 %attr(755,root,root) %{extensionsdir}/ftp.so
1261 %defattr(644,root,root,755)
1262 %attr(755,root,root) %{extensionsdir}/zlib.so
1265 %defattr(644,root,root,755)
1266 %attr(755,root,root) %{extensionsdir}/exif.so
1269 %defattr(644,root,root,755)
1270 %attr(755,root,root) %{extensionsdir}/recode.so
1273 #%defattr(644,root,root,755)
1274 #%attr(755,root,root) %{extensionsdir}/session.so
1277 %defattr(644,root,root,755)
1278 %attr(755,root,root) %{extensionsdir}/gettext.so
1280 %if %{?_without_imap:0}%{!?_without_imap:1}
1282 %defattr(644,root,root,755)
1283 %attr(755,root,root) %{extensionsdir}/imap.so
1286 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1288 %defattr(644,root,root,755)
1289 %attr(755,root,root) %{extensionsdir}/snmp.so
1292 %if %{?_with_java:1}%{!?_with_java:0}
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1298 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1300 %defattr(644,root,root,755)
1301 %attr(755,root,root) %{extensionsdir}/ldap.*
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{extensionsdir}/sockets.so
1309 %defattr(644,root,root,755)
1310 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1313 %defattr(644,root,root,755)
1314 %attr(755,root,root) %{extensionsdir}/mhash.so
1316 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1318 %defattr(644,root,root,755)
1319 %attr(755,root,root) %{extensionsdir}/odbc.so
1323 %defattr(644,root,root,755)
1327 %defattr(644,root,root,755)
1328 %attr(755,root,root) %{extensionsdir}/curl.so