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: freetype-devel >= 2.0
53 BuildRequires: gd-devel >= 2.0.1
54 BuildRequires: gdbm-devel
55 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
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 >= 1.4
64 BuildRequires: automake >= 1.4d
65 BuildRequires: autoconf >= 1.4
66 BuildRequires: mm-devel >= 1.1.3
67 BuildRequires: mysql-devel >= 3.23.32
68 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
69 BuildRequires: pam-devel
70 BuildRequires: pdflib-devel >= 4.0.0
71 #BuildRequires: libxml-devel >= 2.0.0
72 BuildRequires: postgresql-devel
73 BuildRequires: recode-devel >= 3.5d-3
74 BuildRequires: t1lib-devel
75 %{!?_without_odbc:BuildRequires: unixODBC-devel}
76 BuildRequires: zlib-devel >= 1.0.9
77 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.1-8}
78 BuildRequires: libmcrypt-devel >= 2.4.4
79 BuildRequires: mhash-devel
80 BuildRequires: bzip2-devel
81 BuildRequires: gmp-devel
82 BuildRequires: curl-devel
83 #BuildRequires: fastcgi-devkit
84 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
85 BuildRequires: openssl-devel >= 0.9.6a
87 Prereq: apache(EAPI) >= 1.3.9
89 Prereq: %{_sbindir}/apxs
90 PreReq: %{name}-common = %{version}
91 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94 %define _sysconfdir /etc/php
95 %define extensionsdir %{_libdir}/php
96 %define peardir %{_datadir}/pear
99 PHP is an HTML-embedded scripting language. PHP attempts to make it
100 easy for developers to write dynamically generated web pages. PHP also
101 offers built-in database integration for several commercial and
102 non-commercial database management systems, so writing a
103 database-enabled web page with PHP is fairly simple. The most common
104 use of PHP coding is probably as a replacement for CGI scripts. The
105 mod_php module enables the Apache web server to understand and process
106 the embedded PHP language in web pages. This package contains PHP
107 version %{version}. If you use applications which specifically rely on
108 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
109 module contained in the phpfi package. If you're just starting with
110 PHP, you should install this package. You'll also need to install the
114 PHP est un langage de script embarque dans le HTM. PHP essaye de
115 rendre simple aux developpeurs d'ecrire des pages web generees
116 dynamiquement. PHP incorpore egalement une integration avec plusieurs
117 systemes de gestion de bases de donnees commerciaux et
118 non-connerciaux, qui rent facile la creation de pages web liees avec
119 des bases de donnees. L'utilisation la plus commune de PHP est
120 probablement en remplacement de scripts CGI. Le module mod_php permet
121 au serveur web apache de comprendre et de traiter le langage PHP
122 integre dans des pages web. Ce package contient PHP version
123 %{version}. Si vous utilisez des applications qui utilisent
124 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
125 dans le package mod_php. Si vous debutez avec PHP, vous devriez
126 installer ce package. Vous aurez egalement besoin d'installer le
130 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
131 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
132 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
133 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
134 zosta³a z jêzyków: C, Java i Perl.
137 Summary: PHP as CGI program
138 Summary(pl): PHP jako program CGI
141 Group(es): Bibliotecas
142 Group(fr): Librairies
143 Group(pl): Biblioteki
144 PreReq: %{name}-common = %{version}
149 %description cgi -l pl
150 PHP jako program CGI.
153 Summary: Common files nneded by both apache module and CGI
154 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
157 Group(es): Bibliotecas
158 Group(fr): Librairies
159 Group(pl): Biblioteki
162 Common files needed by both apache module and CGI.
164 %description common -l pl
165 Wspólne pliki dla modu³u apacha i programu CGI.
168 Summary: MySQL database module for PHP
169 Summary(pl): Modu³ bazy danych MySQL dla PHP
172 Group(es): Bibliotecas
173 Group(fr): Librairies
174 Group(pl): Biblioteki
175 PreReq: %{name}-common = %{version}
178 This is a dynamic shared object (DSO) for Apache that will add MySQL
179 database support to PHP. If you need back-end support for MySQL, you
180 should install this package in addition to the main %{name} package.
182 %description mysql -l pl
183 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
186 Summary: libPDF module for PHP
187 Summary(pl): Modu³ do tworzenia plików PDF dla PHP
190 Group(es): Bibliotecas
191 Group(fr): Librairies
192 Group(pl): Biblioteki
193 PreReq: %{name}-common = %{version}
197 This is a dynamic shared object (DSO) for Apache that will add PDF
200 %description pdf -l pl
201 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
205 Summary: PostgreSQL database module for PHP
206 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
209 Group(es): Bibliotecas
210 Group(fr): Librairies
211 Group(pl): Biblioteki
212 PreReq: %{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
228 Group(es): Bibliotecas
229 Group(fr): Librairies
230 Group(pl): Biblioteki
231 PreReq: %{name}-common = %{version}
235 This is a dynamic shared object (DSO) for Apache that will add Oracle
236 8 database support to PHP. If you need back-end support for Oracle 8,
237 you should install this package in addition to the main %{name}
240 %description oci8 -l pl
241 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
244 Summary: Oracle 7 database module for PHP
245 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
248 Group(es): Bibliotecas
249 Group(fr): Librairies
250 Group(pl): Biblioteki
251 PreReq: %{name}-common = %{version}
255 This is a dynamic shared object (DSO) for Apache that will add Oracle
256 7 database support to PHP. If you need back-end support for Oracle 7,
257 you should install this package in addition to the main %{name}
260 %description oracle -l pl
261 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
264 Summary: GD extension module for PHP
265 Summary: Modu³ GD dla PHP
268 Group(es): Bibliotecas
269 Group(fr): Librairies
270 Group(pl): Biblioteki
271 PreReq: %{name}-common = %{version}
274 This is a dynamic shared object (DSO) for Apache that will add GD
275 support to PHP. You should install this package in addition to the
276 main %{name} package if you want to create and manipulate images with
279 %description gd -l pl
280 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
281 obrazków z poziomu PHP.
284 Summary: Java extension module for PHP
285 Summary(pl): Modu³ Javy dla PHP
288 Group(es): Bibliotecas
289 Group(fr): Librairies
290 Group(pl): Biblioteki
291 PreReq: %{name}-common = %{version}
294 This is a dynamic shared object (DSO) for Apache that will add JAVA
295 support to PHP. This extension provides a simple and effective means
296 for creating and invoking methods on Java objects from PHP.
298 %description java -l pl
299 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
300 obiektów Javy z poziomu PHP.
303 Summary: XML extension module for PHP
304 Summary(pl): Modu³ XML 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 XML
314 support to PHP. This extension lets you create XML parsers and then
315 define handlers for different XML events. If you want to be able to
316 parse XML documents you should install this package in addition to the
317 main %{name} package.
319 %description xml -l pl
320 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
321 zwi±zanych z tymi plikami.
324 Summary: DBA extension module for PHP
325 Summary(pl): Modu³ DBA dla PHP
328 Group(es): Bibliotecas
329 Group(fr): Librairies
330 Group(pl): Biblioteki
331 PreReq: %{name}-common = %{version}
334 This is a dynamic shared object (DSO) for Apache that will add
335 flat-file databases (DBA) support to PHP.
337 #%description dba -l pl
340 Summary: ODBC extension module for PHP
341 Summary(pl): Modu³ ODBC dla PHP
344 Group(es): Bibliotecas
345 Group(fr): Librairies
346 Group(pl): Biblioteki
347 PreReq: %{name}-common = %{version}
350 This is a dynamic shared object (DSO) for Apache that will add ODBC
353 %description odbc -l pl
354 Modu³ PHP ze wsparciem dla ODBC.
357 Summary: Calendar extension module for PHP
358 Summary(pl): Modu³ funkcji kalendarza dla PHP
361 Group(es): Bibliotecas
362 Group(fr): Librairies
363 Group(pl): Biblioteki
364 PreReq: %{name}-common = %{version}
366 %description calendar
367 This is a dynamic shared object (DSO) for Apache that will add
368 calendar support to PHP.
370 #%description calendar -l pl
373 Summary: DBase extension module for PHP
374 Summary(pl): Modu³ DBase dla PHP
377 Group(es): Bibliotecas
378 Group(fr): Librairies
379 Group(pl): Biblioteki
380 PreReq: %{name}-common = %{version}
383 This is a dynamic shared object (DSO) for Apache that will add DBase
386 %description dbase -l pl
387 Modu³ PHP ze wsparciem dla DBase.
390 Summary: FilePro extension module for PHP
391 Summary(pl): Modu³ FilePro dla PHP
394 Group(es): Bibliotecas
395 Group(fr): Librairies
396 Group(pl): Biblioteki
397 PreReq: %{name}-common = %{version}
400 This is a dynamic shared object (DSO) for Apache that will add FilePro
403 #%description filepro -l pl
406 Summary: POSIX extension module for PHP
407 Summary(pl): Modu³ POSIX dla PHP
410 Group(es): Bibliotecas
411 Group(fr): Librairies
412 Group(pl): Biblioteki
413 PreReq: %{name}-common = %{version}
416 This is a dynamic shared object (DSO) for Apache that will add POSIX
417 functions support to PHP.
419 %description posix -l pl
420 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
423 Summary: PCRE extension module for PHP
424 Summary(pl): Modu³ PCRE dla PHP
427 Group(es): Bibliotecas
428 Group(fr): Librairies
429 Group(pl): Biblioteki
430 PreReq: %{name}-common = %{version}
433 This is a dynamic shared object (DSO) for Apache that will add Perl
434 Compatible Regular Expression support to PHP.
436 %description pcre -l pl
437 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
438 (Perl Compatible Regular Expressions)
441 Summary: SysV sem extension module for PHP
442 Summary(pl): Modu³ SysV sem dla PHP
445 Group(es): Bibliotecas
446 Group(fr): Librairies
447 Group(pl): Biblioteki
448 PreReq: %{name}-common = %{version}
451 This is a dynamic shared object (DSO) for Apache that will add SysV
452 semafores support to PHP.
454 %description sysvsem -l pl
455 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
458 Summary: SysV shm extension module for PHP
459 Summary(pl): Modu³ SysV shm dla PHP
462 Group(es): Bibliotecas
463 Group(fr): Librairies
464 Group(pl): Biblioteki
465 PreReq: %{name}-common = %{version}
468 This is a dynamic shared object (DSO) for Apache that will add SysV
469 Shared Memory support to PHP.
471 %description sysvshm -l pl
472 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
475 Summary: NIS (yp) extension module for PHP
476 Summary(pl): Modu³ NIS (yp) dla PHP
479 Group(es): Bibliotecas
480 Group(fr): Librairies
481 Group(pl): Biblioteki
482 PreReq: %{name}-common = %{version}
485 This is a dynamic shared object (DSO) for Apache that will add NIS
486 (Yellow Pages) support to PHP.
488 #%description yp -l pl
491 Summary: bcmath extension module for PHP
492 Summary(pl): Modu³ bcmath dla PHP
495 Group(es): Bibliotecas
496 Group(fr): Librairies
497 Group(pl): Biblioteki
498 PreReq: %{name}-common = %{version}
501 This is a dynamic shared object (DSO) for Apache that will add bc
502 style precision math functions support to PHP.
504 %description bcmath -l pl
505 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
506 matematycznych takich jak w programie bc.
509 Summary: FTP extension module for PHP
510 Summary(pl): Modu³ FTP dla PHP
513 Group(es): Bibliotecas
514 Group(fr): Librairies
515 Group(pl): Biblioteki
516 PreReq: %{name}-common = %{version}
519 This is a dynamic shared object (DSO) for Apache that will add FTP
522 #%description ftp -l pl
525 Summary: Zlib extension module for PHP
526 Summary(pl): Modu³ zlib dla PHP
529 Group(es): Bibliotecas
530 Group(fr): Librairies
531 Group(pl): Biblioteki
532 PreReq: %{name}-common = %{version}
535 This is a dynamic shared object (DSO) for Apache that will add
536 compression (zlib) support to PHP.
538 %description zlib -l pl
539 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
542 Summary: exifextension module for PHP
543 Summary(pl): Modu³ exif dla PHP
546 Group(es): Bibliotecas
547 Group(fr): Librairies
548 Group(pl): Biblioteki
549 PreReq: %{name}-common = %{version}
552 This is a dynamic shared object (DSO) for Apache that will add exif
555 #%description exif -l pl
558 Summary: recodeextension module for PHP
559 Summary(pl): Modu³ recode dla PHP
562 Group(es): Bibliotecas
563 Group(fr): Librairies
564 Group(pl): Biblioteki
565 PreReq: %{name}-common = %{version}
566 Requires: recode >= 3.5d-3
569 This is a dynamic shared object (DSO) for Apache that will add recode
572 #%description recode -l pl
575 Summary: sessionextension module for PHP
576 Summary(pl): Modu³ session dla PHP
579 Group(es): Bibliotecas
580 Group(fr): Librairies
581 Group(pl): Biblioteki
582 PreReq: %{name}-common = %{version}
585 This is a dynamic shared object (DSO) for Apache that will add session
588 #%description session -l pl
591 Summary: gettextextension module for PHP
592 Summary(pl): Modu³ gettext dla PHP
595 Group(es): Bibliotecas
596 Group(fr): Librairies
597 Group(pl): Biblioteki
598 PreReq: %{name}-common = %{version}
601 This is a dynamic shared object (DSO) for Apache that will add gettext
604 #%description gettext -l pl
607 Summary: snmpextension module for PHP
608 Summary(pl): Modu³ snmp dla PHP
611 Group(es): Bibliotecas
612 Group(fr): Librairies
613 Group(pl): Biblioteki
614 PreReq: %{name}-common = %{version}
617 This is a dynamic shared object (DSO) for Apache that will add snmp
620 #%description snmp -l pl
623 Summary: imapextension module for PHP
624 Summary(pl): Modu³ imap dla PHP
627 Group(es): Bibliotecas
628 Group(fr): Librairies
629 Group(pl): Biblioteki
630 PreReq: %{name}-common = %{version}
633 This is a dynamic shared object (DSO) for Apache that will add imap
636 #%description imap -l pl
639 Summary: LDAP extension module for PHP
640 Summary(pl): Modu³ LDAP dla PHP
643 Group(es): Bibliotecas
644 Group(fr): Librairies
645 Group(pl): Biblioteki
646 PreReq: %{name}-common = %{version}
649 This is a dynamic shared object (DSO) for Apache that will add LDAP
652 #%description ldap -l pl
655 Summary: sockets extension module for PHP
656 Summary(pl): Modu³ socket dla PHP
659 Group(es): Bibliotecas
660 Group(fr): Librairies
661 Group(pl): Biblioteki
662 PreReq: %{name}-common = %{version}
665 This is a dynamic shared object (DSO) for Apache that will add sockets
668 #%description sockets -l pl
671 Summary: mcrypt extension module for PHP
672 Summary(pl): Modu³ mcrypt dla PHP
675 Group(es): Bibliotecas
676 Group(fr): Librairies
677 Group(pl): Biblioteki
678 PreReq: %{name}-common = %{version}
681 This is a dynamic shared object (DSO) for Apache that will add mcrypt
684 #%description mcrypt -l pl
687 Summary: mhash extension module for PHP
688 Summary(pl): Modu³ mhash dla PHP
691 Group(es): Bibliotecas
692 Group(fr): Librairies
693 Group(pl): Biblioteki
694 PreReq: %{name}-common = %{version}
697 This is a dynamic shared object (DSO) for Apache that will add mhash
700 #%description mhash -l pl
703 Summary: Online manual for PHP
704 Summary(pl): Dokumentacja dla PHP
705 Group: Networking/Daemons
706 Group(de): Netzwerkwesen/Server
707 Group(pl): Sieciowe/Serwery
710 Comprehensive documentation for PHP, viewable through your web server,
713 %description doc -l pl
714 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
719 Group: Development/Languages/PHP
725 Summary: Files for PHP modules development
726 Summary(pl): Pliki do kompilacji modu³ów PHP
727 Group: Development/Languages/PHP
728 Requires: %{name}-common = %{version}
731 Files for PHP modules development.
733 %description devel -l pl
734 Pliki potrzebne do kompilacji modu³ów PHP.
737 Summary: curl extension module for PHP
738 Summary(pl): Modu³ curl dla PHP
741 Group(es): Bibliotecas
742 Group(fr): Librairies
743 Group(pl): Biblioteki
744 PreReq: %{name}-common = %{version}
747 This is a dynamic shared object (DSO) for Apache that will add curl
750 %description curl -l pl
751 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
767 CFLAGS="%{rpmcflags} -DEAPI -I/usr/X11R6/include"; export CFLAGS
768 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
770 libtoolize --copy --force
773 #for i in cgi fastcgi apxs ; do
774 for i in cgi apxs ; do
776 `[ $i = cgi ] && echo --enable-discard-path` \
777 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=/usr` \
778 `[ $i = apxs ] && echo --with-apxs=%{_sbindir}/apxs` \
779 --with-config-file-path=%{_sysconfdir} \
780 --with-exec-dir=%{_bindir} \
782 --enable-magic-quotes \
784 --enable-track-vars \
787 --enable-sysvsem=shared \
788 --enable-sysvshm=shared \
789 --enable-shmop=shared \
791 --enable-exif=shared \
793 --with-gettext=shared \
794 %{!?_without_ldap:--with-ldap=shared} \
795 --with-mysql=shared,/usr \
796 --with-mysql-sock=/var/lib/mysql/mysql.sock \
798 --enable-gd-native-ttf \
799 --with-dbase=shared \
800 --with-filepro=shared \
801 --enable-ftp=shared \
803 --with-pdflib=shared \
804 --with-cpdflib=shared \
805 %{?_with_java:--with-java} \
806 --with-pgsql=shared,/usr \
807 %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
808 --enable-bcmath=shared \
809 --enable-calendar=shared \
811 --with-pcre-regex=shared \
812 --enable-posix=shared \
813 --with-freetype-dir=shared \
815 --with-recode=shared \
816 --enable-ucd-snmp-hack \
817 --enable-dba=shared \
818 %{!?_without_snmp:--with-snmp=shared} \
823 --enable-xml=shared \
825 --with-mcrypt=shared \
826 --enable-sockets=shared \
828 --with-ctype=shared \
829 --with-mhash=shared \
832 %{?_with_openssl:--with-openssl} \
833 %{!?_without_odbc:--with-unixODBC=shared} \
834 %{?_with_oracle:--with-oracle=shared} \
835 %{?_with_oci8:--with-oci8=shared} \
837 --with-pear=%{peardir}
840 # TODO --with-pspell=/usr,shared (pspell missing)
842 # --with-dom need libxml >= 2.2.7 \
845 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
847 # Kill -rpath from php binary and libphp4.so
848 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
849 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
850 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
852 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
853 rm libphp4.la ; %{__make} libphp4.la
856 rm -rf $RPM_BUILD_ROOT
857 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
858 $RPM_BUILD_ROOT/home/httpd/icons \
859 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}
862 INSTALL_ROOT=$RPM_BUILD_ROOT \
863 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
865 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
868 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
869 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
871 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
872 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
873 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
876 tar zxf %{SOURCE4} -C manual
877 ln -s manual.html manual/index.html
880 gzip -9nf CODING_STANDARDS CREDITS \
881 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
882 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
885 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
886 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
887 /etc/httpd/httpd.conf
888 if [ -f /var/lock/subsys/httpd ]; then
889 /etc/rc.d/init.d/httpd restart 1>&2
893 if [ "$1" = "0" ]; then
894 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
896 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
897 /etc/httpd/httpd.conf
898 if [ -f /var/lock/subsys/httpd ]; then
899 /etc/rc.d/init.d/httpd restart 1>&2
903 %post common -p /sbin/ldconfig
904 %postun common -p /sbin/ldconfig
907 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
910 if [ "$1" = "0" ]; then
911 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
915 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
918 if [ "$1" = "0" ]; then
919 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
923 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
926 if [ "$1" = "0" ]; then
927 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
931 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
934 if [ "$1" = "0" ]; then
935 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
939 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
942 if [ "$1" = "0" ]; then
943 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
947 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
950 if [ "$1" = "0" ]; then
951 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
955 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
958 if [ "$1" = "0" ]; then
959 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
963 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
966 if [ "$1" = "0" ]; then
967 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
971 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
974 if [ "$1" = "0" ]; then
975 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
978 %if %{?_without_imap:0}%{!?_without_imap:1}
980 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
983 if [ "$1" = "0" ]; then
984 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
988 %if %{?bond_on_java:1}%{!?bond_on_java:0}
990 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
993 if [ "$1" = "0" ]; then
994 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
998 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1000 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1003 if [ "$1" = "0" ]; then
1004 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1009 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1012 if [ "$1" = "0" ]; then
1013 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1017 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1020 if [ "$1" = "0" ]; then
1021 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1025 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1028 if [ "$1" = "0" ]; then
1029 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1033 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1036 if [ "$1" = "0" ]; then
1037 %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1040 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1042 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1045 if [ "$1" = "0" ]; then
1046 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1050 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1052 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1055 if [ "$1" = "0" ]; then
1056 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1060 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1062 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1065 if [ "$1" = "0" ]; then
1066 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1071 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1074 if [ "$1" = "0" ]; then
1075 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1079 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1082 if [ "$1" = "0" ]; then
1083 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1087 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1090 if [ "$1" = "0" ]; then
1091 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1095 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1098 if [ "$1" = "0" ]; then
1099 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1103 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1106 if [ "$1" = "0" ]; then
1107 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1110 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1112 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1115 if [ "$1" = "0" ]; then
1116 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1121 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1124 if [ "$1" = "0" ]; then
1125 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1129 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1132 if [ "$1" = "0" ]; then
1133 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1137 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1140 if [ "$1" = "0" ]; then
1141 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1145 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1148 if [ "$1" = "0" ]; then
1149 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1153 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1156 if [ "$1" = "0" ]; then
1157 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1161 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1164 if [ "$1" = "0" ]; then
1165 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1169 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1172 if [ "$1" = "0" ]; then
1173 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1177 rm -rf $RPM_BUILD_ROOT
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1184 %defattr(644,root,root,755)
1185 %attr(755,root,root) %{_bindir}/php
1188 %defattr(644,root,root,755)
1189 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1190 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1191 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1194 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1198 %attr(755,root,root) %{_sbindir}/*
1200 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1202 %dir %{extensionsdir}
1205 %defattr(644,root,root,755)
1207 %{_libdir}/php/build
1208 %attr(755,root,root) %{_bindir}/phpextdist
1209 %attr(755,root,root) %{_bindir}/phpize
1210 %attr(755,root,root) %{_bindir}/php-config
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{_bindir}/pear
1218 %defattr(644,root,root,755)
1219 %attr(755,root,root) %{extensionsdir}/mysql.so
1222 %defattr(644,root,root,755)
1223 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1226 %defattr(644,root,root,755)
1227 %attr(755,root,root) %{extensionsdir}/pgsql.so
1229 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1231 %defattr(644,root,root,755)
1232 %attr(755,root,root) %{extensionsdir}/oracle.so
1235 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{extensionsdir}/oci8.so
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{extensionsdir}/gd.so
1247 #%defattr(644,root,root,755)
1248 #%attr(755,root,root) %{extensionsdir}/xml.so
1251 %defattr(644,root,root,755)
1252 %attr(755,root,root) %{extensionsdir}/dba.so
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{extensionsdir}/dbase.so
1259 %defattr(644,root,root,755)
1260 %attr(755,root,root) %{extensionsdir}/filepro.so
1263 %defattr(644,root,root,755)
1264 %attr(755,root,root) %{extensionsdir}/pcre.so
1267 %defattr(644,root,root,755)
1268 %attr(755,root,root) %{extensionsdir}/posix.so
1271 %defattr(644,root,root,755)
1272 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1275 %defattr(644,root,root,755)
1276 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1279 %defattr(644,root,root,755)
1280 %attr(755,root,root) %{extensionsdir}/yp.so
1283 %defattr(644,root,root,755)
1284 %attr(755,root,root) %{extensionsdir}/calendar.so
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{extensionsdir}/bcmath.so
1291 %defattr(644,root,root,755)
1292 %attr(755,root,root) %{extensionsdir}/ftp.so
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{extensionsdir}/zlib.so
1299 %defattr(644,root,root,755)
1300 %attr(755,root,root) %{extensionsdir}/exif.so
1303 %defattr(644,root,root,755)
1304 %attr(755,root,root) %{extensionsdir}/recode.so
1307 #%defattr(644,root,root,755)
1308 #%attr(755,root,root) %{extensionsdir}/session.so
1311 %defattr(644,root,root,755)
1312 %attr(755,root,root) %{extensionsdir}/gettext.so
1314 %if %{?_without_imap:0}%{!?_without_imap:1}
1316 %defattr(644,root,root,755)
1317 %attr(755,root,root) %{extensionsdir}/imap.so
1320 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1322 %defattr(644,root,root,755)
1323 %attr(755,root,root) %{extensionsdir}/snmp.so
1326 %if %{?_with_java:1}%{!?_with_java:0}
1328 %defattr(644,root,root,755)
1329 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1332 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1334 %defattr(644,root,root,755)
1335 %attr(755,root,root) %{extensionsdir}/ldap.*
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{extensionsdir}/sockets.so
1343 %defattr(644,root,root,755)
1344 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{extensionsdir}/mhash.so
1350 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1352 %defattr(644,root,root,755)
1353 %attr(755,root,root) %{extensionsdir}/odbc.so
1357 %defattr(644,root,root,755)
1361 %defattr(644,root,root,755)
1362 %attr(755,root,root) %{extensionsdir}/curl.so