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
53 URL: http://www.php.net/
54 BuildRequires: apache(EAPI)-devel
55 BuildRequires: autoconf >= 1.4
56 BuildRequires: automake >= 1.4d
58 BuildRequires: bzip2-devel
59 BuildRequires: curl-devel
60 BuildRequires: cyrus-sasl-devel
61 BuildRequires: db3-devel >= 3.1.17
62 BuildRequires: expat-devel
64 BuildRequires: gmp-devel
65 BuildRequires: freetype-devel >= 2.0
66 BuildRequires: gd-devel >= 2.0.1
67 BuildRequires: gdbm-devel
68 %{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
69 # I think jdk is better for java
71 %{?_with_java:BuildRequires: kaffe-devel}
72 BuildRequires: libjpeg-devel
73 BuildRequires: libltdl-devel >= 1.4
74 BuildRequires: libmcrypt-devel >= 2.4.4
75 BuildRequires: libpng >= 1.0.8
76 BuildRequires: libtiff-devel
77 BuildRequires: libtool >= 1.4
78 BuildRequires: libxml2-devel >= 2.2.7
79 BuildRequires: mhash-devel
80 BuildRequires: ming-devel >= 0.1.0
81 %{!?_without_mm:BuildRequires: mm-devel >= 1.1.3}
82 BuildRequires: mysql-devel >= 3.23.32
83 %{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
84 BuildRequires: pam-devel
85 BuildRequires: pdflib-devel >= 4.0.0
87 BuildRequires: pkgconfig
88 BuildRequires: postgresql-devel
89 BuildRequires: postgresql-backend-devel >= 7.2
90 %{!?_without_recode:BuildRequires: recode-devel >= 3.5d-3}
91 BuildRequires: t1lib-devel
92 %{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
93 %{!?_without_odbc:BuildRequires: unixODBC-devel}
95 BuildRequires: zlib-devel >= 1.0.9
96 #BuildRequires: fastcgi-devkit
97 %if %(expr %{?_with_openssl:1}%{!?_with_openssl:0} + %{!?_without_ldap:1}%{?_without_ldap:0})
98 %{!?_without_openssl:BuildRequires: openssl-devel >= 0.9.6a}
100 %{?_with_libcpdf:BuildRequires: libcpdf-devel >= 2.00}
101 %{?_with_xslt:BuildRequires: sablotron-devel}
102 %{?_with_xslt:BuildRequires: expat-devel}
103 %{?_with_xslt:BuildRequires: w3c-libwww-devel}
104 # apache 1.3 vs apache 2.0
106 PreReq: apache(EAPI) >= 2.0.35
108 PreReq: apache(EAPI) < 2.0.0
109 PreReq: apache(EAPI) >= 1.3.9
112 PreReq: %{_sbindir}/apxs
113 PreReq: %{name}-common = %{version}
114 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
116 Obsoletes: apache-mod_php
118 %define _sysconfdir /etc/php
119 %define extensionsdir %{_libdir}/php
120 %define peardir %{_datadir}/pear
123 PHP is an HTML-embedded scripting language. PHP attempts to make it
124 easy for developers to write dynamically generated web pages. PHP also
125 offers built-in database integration for several commercial and
126 non-commercial database management systems, so writing a
127 database-enabled web page with PHP is fairly simple. The most common
128 use of PHP coding is probably as a replacement for CGI scripts. The
129 mod_php module enables the Apache web server to understand and process
130 the embedded PHP language in web pages. This package contains PHP
131 version %{version}. If you use applications which specifically rely on
132 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
133 module contained in the phpfi package. If you're just starting with
134 PHP, you should install this package. You'll also need to install the
138 PHP est un langage de script embarque dans le HTM. PHP essaye de
139 rendre simple aux developpeurs d'ecrire des pages web generees
140 dynamiquement. PHP incorpore egalement une integration avec plusieurs
141 systemes de gestion de bases de donnees commerciaux et
142 non-connerciaux, qui rent facile la creation de pages web liees avec
143 des bases de donnees. L'utilisation la plus commune de PHP est
144 probablement en remplacement de scripts CGI. Le module mod_php permet
145 au serveur web apache de comprendre et de traiter le langage PHP
146 integre dans des pages web. Ce package contient PHP version
147 %{version}. Si vous utilisez des applications qui utilisent
148 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
149 dans le package mod_php. Si vous debutez avec PHP, vous devriez
150 installer ce package. Vous aurez egalement besoin d'installer le
154 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
155 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
156 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
157 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
158 zosta³a z jêzyków: C, Java i Perl.
161 Summary: PHP as CGI program
162 Summary(pl): PHP jako program CGI
164 PreReq: %{name}-common = %{version}
169 %description cgi -l pl
170 PHP jako program CGI.
173 Summary: Common files nneded by both apache module and CGI
174 Summary(pl): Wspólne pliki dla modu³u apacha i programu CGI
178 Common files needed by both apache module and CGI.
180 %description common -l pl
181 Wspólne pliki dla modu³u apacha i programu CGI.
184 Summary: MySQL database module for PHP
185 Summary(pl): Modu³ bazy danych MySQL dla PHP
187 Requires(post): %{name}-common = %{version}
188 Requires(preun): %{name}-common = %{version}
191 This is a dynamic shared object (DSO) for Apache that will add MySQL
192 database support to PHP. If you need back-end support for MySQL, you
193 should install this package in addition to the main %{name} package.
195 %description mysql -l pl
196 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
199 Summary: libPDF module for PHP
200 Summary(pl): Modu³ do tworzenia plików PDF dla PHP
202 Requires(post): %{name}-common = %{version}
203 Requires(preun): %{name}-common = %{version}
207 This is a dynamic shared object (DSO) for Apache that will add PDF
210 %description pdf -l pl
211 Modu³ PHP umo¿liwiaj±cy tworzenie plików PDF. Wykorzystuje bibliotekê
215 Summary: PostgreSQL database module for PHP
216 Summary(pl): Modu³ bazy danych PostgreSQL dla PHP
218 Requires(post): %{name}-common = %{version}
219 Requires(preun): %{name}-common = %{version}
222 This is a dynamic shared object (DSO) for Apache that will add
223 PostgreSQL database support to PHP. If you need back-end support for
224 PostgreSQL, you should install this package in addition to the main
227 %description pgsql -l pl
228 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
231 Summary: Oracle 8 database module for PHP
232 Summary(pl): Modu³ bazy danych Oracle 8 dla PHP
234 Requires(post): %{name}-common = %{version}
235 Requires(preun): %{name}-common = %{version}
239 This is a dynamic shared object (DSO) for Apache that will add Oracle
240 8 database support to PHP. If you need back-end support for Oracle 8,
241 you should install this package in addition to the main %{name}
244 %description oci8 -l pl
245 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
248 Summary: Oracle 7 database module for PHP
249 Summary(pl): Modu³ bazy danych Oracle 7 dla PHP
251 Requires(post): %{name}-common = %{version}
252 Requires(preun): %{name}-common = %{version}
256 This is a dynamic shared object (DSO) for Apache that will add Oracle
257 7 database support to PHP. If you need back-end support for Oracle 7,
258 you should install this package in addition to the main %{name}
261 %description oracle -l pl
262 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
265 Summary: GD extension module for PHP
266 Summary: Modu³ GD dla PHP
268 Requires(post): %{name}-common = %{version}
269 Requires(preun): %{name}-common = %{version}
272 This is a dynamic shared object (DSO) for Apache that will add GD
273 support to PHP. You should install this package in addition to the
274 main %{name} package if you want to create and manipulate images with
277 %description gd -l pl
278 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki
279 obrazków z poziomu PHP.
282 Summary: Java extension module for PHP
283 Summary(pl): Modu³ Javy dla PHP
285 Requires(post): %{name}-common = %{version}
286 Requires(preun): %{name}-common = %{version}
289 This is a dynamic shared object (DSO) for Apache that will add JAVA
290 support to PHP. This extension provides a simple and effective means
291 for creating and invoking methods on Java objects from PHP.
293 %description java -l pl
294 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
295 obiektów Javy z poziomu PHP.
298 Summary: XML extension module for PHP
299 Summary(pl): Modu³ XML dla PHP
301 Requires(post): %{name}-common = %{version}
302 Requires(preun): %{name}-common = %{version}
305 This is a dynamic shared object (DSO) for Apache that will add XML
306 support to PHP. This extension lets you create XML parsers and then
307 define handlers for different XML events. If you want to be able to
308 parse XML documents you should install this package in addition to the
309 main %{name} package.
311 %description xml -l pl
312 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
313 zwi±zanych z tymi plikami.
316 Summary: DBA extension module for PHP
317 Summary(pl): Modu³ DBA dla PHP
319 Requires(post): %{name}-common = %{version}
320 Requires(preun): %{name}-common = %{version}
323 This is a dynamic shared object (DSO) for Apache that will add
324 flat-file databases (DBA) support to PHP.
326 %description dba -l pl
327 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
328 wsparcie dla baz danych DBA.
331 Summary: ODBC extension module for PHP
332 Summary(pl): Modu³ ODBC dla PHP
334 Requires(post): %{name}-common = %{version}
335 Requires(preun): %{name}-common = %{version}
338 This is a dynamic shared object (DSO) for Apache that will add ODBC
341 %description odbc -l pl
342 Modu³ PHP ze wsparciem dla ODBC.
345 Summary: Calendar extension module for PHP
346 Summary(pl): Modu³ funkcji kalendarza dla PHP
348 Requires(post): %{name}-common = %{version}
349 Requires(preun): %{name}-common = %{version}
351 %description calendar
352 This is a dynamic shared object (DSO) for Apache that will add
353 calendar support to PHP.
355 %description calendar -l pl
356 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
357 wsparcie dla kalendarza.
360 Summary: DBase extension module for PHP
361 Summary(pl): Modu³ DBase dla PHP
363 Requires(post): %{name}-common = %{version}
364 Requires(preun): %{name}-common = %{version}
367 This is a dynamic shared object (DSO) for Apache that will add DBase
370 %description dbase -l pl
371 Modu³ PHP ze wsparciem dla DBase.
374 Summary: FilePro extension module for PHP
375 Summary(pl): Modu³ FilePro dla PHP
377 Requires(post): %{name}-common = %{version}
378 Requires(preun): %{name}-common = %{version}
381 This is a dynamic shared object (DSO) for Apache that will add FilePro
384 %description filepro -l pl
385 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
386 wsparcie dla FilePro.
389 Summary: POSIX extension module for PHP
390 Summary(pl): Modu³ POSIX dla PHP
392 Requires(post): %{name}-common = %{version}
393 Requires(preun): %{name}-common = %{version}
396 This is a dynamic shared object (DSO) for Apache that will add POSIX
397 functions support to PHP.
399 %description posix -l pl
400 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
403 Summary: PCRE extension module for PHP
404 Summary(pl): Modu³ PCRE dla PHP
406 Requires(post): %{name}-common = %{version}
407 Requires(preun): %{name}-common = %{version}
410 This is a dynamic shared object (DSO) for Apache that will add Perl
411 Compatible Regular Expression support to PHP.
413 %description pcre -l pl
414 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
415 (Perl Compatible Regular Expressions)
418 Summary: SysV sem extension module for PHP
419 Summary(pl): Modu³ SysV sem dla PHP
421 Requires(post): %{name}-common = %{version}
422 Requires(preun): %{name}-common = %{version}
425 This is a dynamic shared object (DSO) for Apache that will add SysV
426 semafores support to PHP.
428 %description sysvsem -l pl
429 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
432 Summary: SysV shm extension module for PHP
433 Summary(pl): Modu³ SysV shm dla PHP
435 Requires(post): %{name}-common = %{version}
436 Requires(preun): %{name}-common = %{version}
439 This is a dynamic shared object (DSO) for Apache that will add SysV
440 Shared Memory support to PHP.
442 %description sysvshm -l pl
443 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
446 Summary: NIS (yp) extension module for PHP
447 Summary(pl): Modu³ NIS (yp) dla PHP
449 Requires(post): %{name}-common = %{version}
450 Requires(preun): %{name}-common = %{version}
453 This is a dynamic shared object (DSO) for Apache that will add NIS
454 (Yellow Pages) support to PHP.
456 %description yp -l pl
457 Dynamiczny obiekt wspó³dzielony (DSO) dla Apache'a, dodaj±cy do PHP
458 wsparcie dla NIS (Yellow Pages).
461 Summary: bcmath extension module for PHP
462 Summary(pl): Modu³ bcmath dla PHP
464 Requires(post): %{name}-common = %{version}
465 Requires(preun): %{name}-common = %{version}
468 This is a dynamic shared object (DSO) for Apache that will add bc
469 style precision math functions support to PHP.
471 %description bcmath -l pl
472 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji
473 matematycznych takich jak w programie bc.
476 Summary: FTP extension module for PHP
477 Summary(pl): Modu³ FTP dla PHP
479 Requires(post): %{name}-common = %{version}
480 Requires(preun): %{name}-common = %{version}
483 This is a dynamic shared object (DSO) for Apache that will add FTP
486 %description ftp -l pl
487 Modu³ PHP dodaj±cy obs³ugê protoko³u FTP.
490 Summary: Zlib extension module for PHP
491 Summary(pl): Modu³ zlib dla PHP
493 Requires(post): %{name}-common = %{version}
494 Requires(preun): %{name}-common = %{version}
497 This is a dynamic shared object (DSO) for Apache that will add
498 compression (zlib) support to PHP.
500 %description zlib -l pl
501 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
504 Summary: Bzip2 extension module for PHP
505 Summary(pl): Modu³ bzip2 dla PHP
507 Requires(post): %{name}-common = %{version}
508 Requires(preun): %{name}-common = %{version}
511 This is a dynamic shared object (DSO) for Apache that will add
512 compression (bzip2) support to PHP.
514 %description bzip2 -l pl
515 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê bzip2).
518 Summary: exif extension module for PHP
519 Summary(pl): Modu³ exif dla PHP
521 Requires(post): %{name}-common = %{version}
522 Requires(preun): %{name}-common = %{version}
525 This is a dynamic shared object (DSO) for Apache that will add exif
528 %description exif -l pl
529 Modu³ PHP dodaj±cy obs³ugê plików EXIF.
532 Summary: recode extension module for PHP
533 Summary(pl): Modu³ recode dla PHP
535 Requires(post): %{name}-common = %{version}
536 Requires(preun): %{name}-common = %{version}
537 Requires: recode >= 3.5d-3
540 This is a dynamic shared object (DSO) for Apache that will add recode
543 %description recode -l pl
544 Modu³ PHP dodaj±cy mo¿liwo¶æ konwersji kodowania plików (poprzez
548 Summary: session extension module for PHP
549 Summary(pl): Modu³ session dla PHP
551 Requires(post): %{name}-common = %{version}
552 Requires(preun): %{name}-common = %{version}
555 This is a dynamic shared object (DSO) for Apache that will add session
558 %description session -l pl
559 Modu³ PHP dodaj±cy obs³ugê sesji.
562 Summary: gettext extension module for PHP
563 Summary(pl): Modu³ gettext dla PHP
565 Requires(post): %{name}-common = %{version}
566 Requires(preun): %{name}-common = %{version}
569 This is a dynamic shared object (DSO) for Apache that will add gettext
572 %description gettext -l pl
573 Modu³ PHP dodaj±cy obs³ugê lokalizacji przez gettext.
576 Summary: SNMP extension module for PHP
577 Summary(pl): Modu³ SNMP dla PHP
579 Requires(post): %{name}-common = %{version}
580 Requires(preun): %{name}-common = %{version}
583 This is a dynamic shared object (DSO) for Apache that will add SNMP
586 %description snmp -l pl
587 Modu³ PHP dodaj±cy obs³ugê SNMP.
590 Summary: IMAP extension module for PHP
591 Summary(pl): Modu³ IMAP dla PHP
593 Requires(post): %{name}-common = %{version}
594 Requires(preun): %{name}-common = %{version}
597 This is a dynamic shared object (DSO) for Apache that will add IMAP
600 %description imap -l pl
601 Modu³ PHP dodaj±cy obs³ugê skrzynek IMAP.
604 Summary: LDAP extension module for PHP
605 Summary(pl): Modu³ LDAP dla PHP
607 Requires(post): %{name}-common = %{version}
608 Requires(preun): %{name}-common = %{version}
611 This is a dynamic shared object (DSO) for Apache that will add LDAP
614 %description ldap -l pl
615 Modu³ PHP dodaj±cy obs³ugê LDAP.
618 Summary: sockets extension module for PHP
619 Summary(pl): Modu³ socket dla PHP
621 Requires(post): %{name}-common = %{version}
622 Requires(preun): %{name}-common = %{version}
625 This is a dynamic shared object (DSO) for Apache that will add sockets
628 %description sockets -l pl
629 Modu³ PHP dodaj±cy obs³ugê gniazdek.
632 Summary: mcrypt extension module for PHP
633 Summary(pl): Modu³ mcrypt dla PHP
635 Requires(post): %{name}-common = %{version}
636 Requires(preun): %{name}-common = %{version}
639 This is a dynamic shared object (DSO) for Apache that will add mcrypt
642 %description mcrypt -l pl
643 Modu³ PHP dodaj±cy mo¿liwo¶æ szyfrowania poprzez bibliotekê mcrypt.
646 Summary: mhash extension module for PHP
647 Summary(pl): Modu³ mhash dla PHP
649 Requires(post): %{name}-common = %{version}
650 Requires(preun): %{name}-common = %{version}
653 This is a dynamic shared object (DSO) for Apache that will add mhash
656 %description mhash -l pl
657 Modu³ PHP udostêpniaj±cy funkcje mieszaj±ce z biblioteki mhash.
660 Summary: Online manual for PHP
661 Summary(pl): Dokumentacja dla PHP
662 Group: Networking/Daemons
663 Obsoletes: php-manual
666 Comprehensive documentation for PHP, viewable through your web server,
669 %description doc -l pl
670 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
674 Summary: PEAR - PHP Extension and Application Repository
675 Summary(pl): PEAR - Rozszerzenie PHP i Repozytorium Aplikacji
676 Group: Development/Languages/PHP
677 Requires: %{name}-cgi = %{version}
678 Requires: %{name}-xml = %{version}
681 PEAR - PHP Extension and Application Repository.
683 %description pear -l pl
684 PEAR (PHP Extension and Application Repository) - Rozszerzenie PHP i
685 Repozytorium Aplikacji.
688 Summary: DOM XML module
689 Summary(pl): Modu³ DOM XML
690 Group: Development/Languages/PHP
695 %description domxml -l pl
699 Summary: Files for PHP modules development
700 Summary(pl): Pliki do kompilacji modu³ów PHP
701 Group: Development/Languages/PHP
702 Requires: %{name}-common = %{version}
705 Files for PHP modules development.
707 %description devel -l pl
708 Pliki potrzebne do kompilacji modu³ów PHP.
711 Summary: curl extension module for PHP
712 Summary(pl): Modu³ curl dla PHP
716 This is a dynamic shared object (DSO) for Apache that will add curl
719 %description curl -l pl
720 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki curl.
723 Summary: xslt extension module for PHP
724 Summary(pl): Modu³ xslt dla PHP
726 Requires(post): %{name}-common = %{version}
727 Requires(preun): %{name}-common = %{version}
730 This is a dynamic shared object (DSO) for Apache that will add xslt
733 %description xslt -l pl
734 Modu³ PHP umo¿liwiaj±cy korzystanie z technologii xslt.
737 Summary: wddx extension module for PHP
738 Summary(pl): Modu³ wddx dla PHP
740 Requires(post): %{name}-common = %{version}
741 Requires(preun): %{name}-common = %{version}
744 This is a dynamic shared object (DSO) for Apache that will add wddx
747 %description wddx -l pl
748 Modu³ PHP umo¿liwiaj±cy korzystanie z wddx.
751 Summary: ming extension module for PHP
752 Summary(pl): Modu³ ming dla PHP
754 Requires(post): %{name}-common = %{version}
755 Requires(preun): %{name}-common = %{version}
758 This is a dynamic shared object (DSO) for Apache that will add ming
759 (Flash - .swf files) support to PHP.
761 %description ming -l pl
762 Modu³ PHP dodaj±cy obs³ugê plików Flash (.swf) poprzez bibliotekê
766 Summary: cpdf extension module for PHP
767 Summary(pl): Modu³ cpdf dla PHP
769 Requires(post): %{name}-common = %{version}
770 Requires(preun): %{name}-common = %{version}
773 This is a dynamic shared object (DSO) for Apache that will add libcpdf
776 %description libcpdf -l pl
777 Modu³ PHP dodaj±cy obs³ugê libcpdf.
780 Summary: iconv extension module for PHP
781 Summary(pl): Modu³ iconv dla PHP
783 Requires(post): %{name}-common = %{version}
784 Requires(preun): %{name}-common = %{version}
787 This is a dynamic shared object (DSO) for Apache that will add iconv
790 %description iconv -l pl
791 Modu³ PHP dodaj±cy obs³ugê iconv.
794 Summary: gmp extension module for PHP
795 Summary(pl): Modu³ gmp dla PHP
797 Requires(post): %{name}-common = %{version}
798 Requires(preun): %{name}-common = %{version}
801 This is a dynamic shared object (DSO) for Apache that will add
802 arbitrary length number support with GNU MP library to PHP.
804 %description gmp -l pl
805 Modu³ PHP umorzliwiaj±cy korzystanie z biblioteki gmp.
808 Summary: Shared Memory Operations extension module for PHP
809 Summary(pl): Modu³ shmop dla PHP
811 Requires(post): %{name}-common = %{version}
812 Requires(preun): %{name}-common = %{version}
815 This is a dynamic shared object (DSO) for Apache that will add
816 Shared Memory Operations support to PHP.
818 %description shmop -l pl
819 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej.
837 bzip2 -dc %{SOURCE4} | tar -xf - -C manual
840 CFLAGS="%{rpmcflags} -DEAPI -I%{_prefix}/X11R6/include"; export CFLAGS
841 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
843 libtoolize --copy --force
846 #for i in cgi fastcgi apxs ; do
847 for i in cgi apxs ; do
849 `[ $i = cgi ] && echo --enable-discard-path` \
850 `[ $i = fastcgi ] && echo --enable-discard-path --with-fastcgi=%{_prefix}` \
851 `[ $i = apxs ] && echo --with-apxs%{?_apache2:2}=%{_sbindir}/apxs` \
852 --with-config-file-path=%{_sysconfdir} \
853 --with-exec-dir=%{_bindir} \
854 --%{!?debug:dis}%{?debug:en}able-debug \
855 --enable-bcmath=shared \
856 --enable-calendar=shared \
857 --enable-dba=shared \
858 --enable-exif=shared \
859 --enable-ftp=shared \
860 --enable-gd-native-ttf \
861 --enable-magic-quotes \
862 --enable-posix=shared \
865 --enable-shmop=shared \
866 --enable-sysvsem=shared \
867 --enable-sysvshm=shared \
868 --enable-track-vars \
871 --enable-sockets=shared \
873 --enable-ucd-snmp-hack \
874 --enable-xml=shared \
875 --with-expat-dir=/usr \
876 %{?_with_xslt:--enable-xslt=shared} \
878 %{?_with_libcpdf:--with-cpdflib=shared} \
879 --with-ctype=shared \
883 --with-dbase=shared \
884 --with-iconv=shared \
886 --with-dom-xslt=shared \
887 --with-filepro=shared \
888 --with-freetype-dir=shared \
889 --with-gettext=shared \
894 %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
895 %{?_with_java:--with-java} \
896 --with-jpeg-dir=shared \
897 %{!?_without_ldap:--with-ldap=shared} \
898 --with-mcrypt=shared \
899 --with-mysql=shared,%{_prefix} \
900 --with-mysql-sock=/var/lib/mysql/mysql.sock \
901 --with-mhash=shared \
903 %{!?_without_mm:--with-mm} \
904 %{!?_without_openssl:--with-openssl} \
905 %{?_with_oracle:--with-oracle=shared} \
906 %{?_with_oci8:--with-oci8=shared} \
907 --with-pear=%{peardir} \
908 --with-pcre-regex=shared \
909 --with-pdflib=shared \
910 --with-pgsql=shared,%{_prefix} \
911 --with-png-dir=shared \
912 %{!?_without_recode:--with-recode=shared} \
914 %{!?_without_sablot:--with-sablot=/usr/lib} \
915 %{!?_without_snmp:--with-snmp=shared} \
916 --with-t1lib=shared \
917 %{!?_without_odbc:--with-unixODBC=shared} \
918 %{?_with_wddx:--enable-wddx=shared} \
920 --with-zlib-dir=shared \
922 %{?_with_xslt:--with-xslt-sablot=shared}
925 # TODO --with-pspell=/usr,shared (pspell missing)
926 # --with-qtdom=shared
928 rm -f ext/xml/libs.mk
929 install %{SOURCE6} ext/xml/libs.mk
932 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" -C sapi/cgi
934 # Kill -rpath from php binary and libphp4.so
935 perl -pi -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
936 perl -pi -e 's|^runpath_var=.*|runpath_var=|g' libtool
937 %{__make} CFLAGS="%{rpmcflags} -DDISCARD_PATH=1" php
939 perl -pi -e 's|^hardcode_into_libs=.*|hardcode_into_libs=no|g' libtool
940 rm libphp4.la ; %{__make} libphp4.la
943 rm -rf $RPM_BUILD_ROOT
944 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
945 $RPM_BUILD_ROOT/home/httpd/icons \
946 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}} \
947 $RPM_BUILD_ROOT/var/run/php
950 INSTALL_ROOT=$RPM_BUILD_ROOT \
951 INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
953 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
956 #install .libs/*.so $RPM_BUILD_ROOT%{_pkglibdir}
957 #install modules/*.so $RPM_BUILD_ROOT%{_pkglibdir}/php
959 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
960 install %{SOURCE3} php4.gif $RPM_BUILD_ROOT/home/httpd/icons
961 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
965 gzip -9nf CODING_STANDARDS CREDITS \
966 EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
967 Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
970 rm -rf $RPM_BUILD_ROOT
973 %{_sbindir}/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
974 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
975 /etc/httpd/httpd.conf
976 if [ -f /var/lock/subsys/httpd ]; then
977 /etc/rc.d/init.d/httpd restart 1>&2
981 if [ "$1" = "0" ]; then
982 %{_sbindir}/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
984 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
985 /etc/httpd/httpd.conf
986 if [ -f /var/lock/subsys/httpd ]; then
987 /etc/rc.d/init.d/httpd restart 1>&2
991 %post common -p /sbin/ldconfig
992 %postun common -p /sbin/ldconfig
995 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/php.ini
998 if [ "$1" = "0" ]; then
999 %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/php.ini
1003 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/php.ini
1006 if [ "$1" = "0" ]; then
1007 %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/php.ini
1011 %{_sbindir}/php-module-install install dba %{_sysconfdir}/php.ini
1014 if [ "$1" = "0" ]; then
1015 %{_sbindir}/php-module-install remove dba %{_sysconfdir}/php.ini
1019 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/php.ini
1022 if [ "$1" = "0" ]; then
1023 %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/php.ini
1027 %{_sbindir}/php-module-install install exif %{_sysconfdir}/php.ini
1030 if [ "$1" = "0" ]; then
1031 %{_sbindir}/php-module-install remove exif %{_sysconfdir}/php.ini
1035 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/php.ini
1038 if [ "$1" = "0" ]; then
1039 %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/php.ini
1043 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/php.ini
1046 if [ "$1" = "0" ]; then
1047 %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/php.ini
1051 %{_sbindir}/php-module-install install gd %{_sysconfdir}/php.ini
1054 if [ "$1" = "0" ]; then
1055 %{_sbindir}/php-module-install remove gd %{_sysconfdir}/php.ini
1059 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/php.ini
1062 if [ "$1" = "0" ]; then
1063 %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/php.ini
1066 %if %{?_without_imap:0}%{!?_without_imap:1}
1068 %{_sbindir}/php-module-install install imap %{_sysconfdir}/php.ini
1071 if [ "$1" = "0" ]; then
1072 %{_sbindir}/php-module-install remove imap %{_sysconfdir}/php.ini
1076 %if %{?_with_java:1}%{!?_with_java:0}
1078 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/php.ini
1081 if [ "$1" = "0" ]; then
1082 %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/php.ini
1086 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1088 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/php.ini
1091 if [ "$1" = "0" ]; then
1092 %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/php.ini
1097 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/php.ini
1100 if [ "$1" = "0" ]; then
1101 %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/php.ini
1105 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/php.ini
1108 if [ "$1" = "0" ]; then
1109 %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/php.ini
1113 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/php.ini
1116 if [ "$1" = "0" ]; then
1117 %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/php.ini
1121 %{_sbindir}/php-module-install install libpdf_php %{_sysconfdir}/php.ini
1124 if [ "$1" = "0" ]; then
1125 %{_sbindir}/php-module-install remove libpdf_php %{_sysconfdir}/php.ini
1129 if [ "$1" = "0" ]; then
1130 %{_sbindir}/php-module-install remove domxml %{_sysconfdir}/php.ini
1134 %{_sbindir}/php-module-install install domxml %{_sysconfdir}/php.ini
1136 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1138 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/php.ini
1141 if [ "$1" = "0" ]; then
1142 %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/php.ini
1146 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1148 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/php.ini
1151 if [ "$1" = "0" ]; then
1152 %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/php.ini
1156 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1158 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/php.ini
1161 if [ "$1" = "0" ]; then
1162 %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/php.ini
1167 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/php.ini
1170 if [ "$1" = "0" ]; then
1171 %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/php.ini
1175 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/php.ini
1178 if [ "$1" = "0" ]; then
1179 %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/php.ini
1183 %{_sbindir}/php-module-install install posix %{_sysconfdir}/php.ini
1186 if [ "$1" = "0" ]; then
1187 %{_sbindir}/php-module-install remove posix %{_sysconfdir}/php.ini
1190 %if %{?_without_recode:0}%{!?_without_recode:1}
1192 %{_sbindir}/php-module-install install recode %{_sysconfdir}/php.ini
1195 if [ "$1" = "0" ]; then
1196 %{_sbindir}/php-module-install remove recode %{_sysconfdir}/php.ini
1201 %{_sbindir}/php-module-install install session %{_sysconfdir}/php.ini
1204 if [ "$1" = "0" ]; then
1205 %{_sbindir}/php-module-install remove session %{_sysconfdir}/php.ini
1208 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1210 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/php.ini
1213 if [ "$1" = "0" ]; then
1214 %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/php.ini
1219 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/php.ini
1222 if [ "$1" = "0" ]; then
1223 %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/php.ini
1227 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/php.ini
1230 if [ "$1" = "0" ]; then
1231 %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/php.ini
1235 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/php.ini
1238 if [ "$1" = "0" ]; then
1239 %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/php.ini
1243 %{_sbindir}/php-module-install install xml %{_sysconfdir}/php.ini
1246 if [ "$1" = "0" ]; then
1247 %{_sbindir}/php-module-install remove xml %{_sysconfdir}/php.ini
1251 %{_sbindir}/php-module-install install yp %{_sysconfdir}/php.ini
1254 if [ "$1" = "0" ]; then
1255 %{_sbindir}/php-module-install remove yp %{_sysconfdir}/php.ini
1259 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/php.ini
1262 if [ "$1" = "0" ]; then
1263 %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/php.ini
1267 %{_sbindir}/php-module-install install bz2 %{_sysconfdir}/php.ini
1270 if [ "$1" = "0" ]; then
1271 %{_sbindir}/php-module-install remove bz2 %{_sysconfdir}/php.ini
1275 %{_sbindir}/php-module-install install curl %{_sysconfdir}/php.ini
1278 if [ "$1" = "0" ]; then
1279 %{_sbindir}/php-module-install remove curl %{_sysconfdir}/php.ini
1283 %{_sbindir}/php-module-install install ming %{_sysconfdir}/php.ini
1286 if [ "$1" = "0" ]; then
1287 %{_sbindir}/php-module-install remove ming %{_sysconfdir}/php.ini
1290 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1292 %{_sbindir}/php-module-install install xslt %{_sysconfdir}/php.ini
1295 if [ "$1" = "0" ]; then
1296 %{_sbindir}/php-module-install remove xslt %{_sysconfdir}/php.ini
1300 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1302 %{_sbindir}/php-module-install install wddx %{_sysconfdir}/php.ini
1305 if [ "$1" = "0" ]; then
1306 %{_sbindir}/php-module-install remove wddx %{_sysconfdir}/php.ini
1310 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1312 %{_sbindir}/php-module-install install libcpdf %{_sysconfdir}/php.ini
1315 if [ "$1" = "0" ]; then
1316 %{_sbindir}/php-module-install remove libcpdf %{_sysconfdir}/php.ini
1321 %{_sbindir}/php-module-install install iconv %{_sysconfdir}/php.ini
1324 if [ "$1" = "0" ]; then
1325 %{_sbindir}/php-module-install remove iconv %{_sysconfdir}/php.ini
1329 %{_sbindir}/php-module-install install gmp %{_sysconfdir}/php.ini
1332 if [ "$1" = "0" ]; then
1333 %{_sbindir}/php-module-install remove gmp %{_sysconfdir}/php.ini
1337 %{_sbindir}/php-module-install install shmop %{_sysconfdir}/php.ini
1340 if [ "$1" = "0" ]; then
1341 %{_sbindir}/php-module-install remove shmop %{_sysconfdir}/php.ini
1345 %defattr(644,root,root,755)
1346 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1349 %defattr(644,root,root,755)
1350 %attr(755,root,root) %{_bindir}/php
1353 %defattr(644,root,root,755)
1354 %doc {CODING_STANDARDS,CREDITS,Zend/ZEND_CHANGES}.gz
1355 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz
1356 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1359 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/php.ini
1360 %attr(730,root,http) %dir %verify(not group mode) /var/run/php
1363 %attr(755,root,root) %{_sbindir}/*
1364 %attr(755,root,root) %{_libdir}/libphp_common*.so.*.*.*
1365 %dir %{extensionsdir}
1368 %defattr(644,root,root,755)
1370 %{_libdir}/php/build
1371 %attr(755,root,root) %{_bindir}/phpextdist
1372 %attr(755,root,root) %{_bindir}/phpize
1373 %attr(755,root,root) %{_bindir}/php-config
1376 %defattr(644,root,root,755)
1377 %attr(755,root,root) %{extensionsdir}/domxml.so
1380 %defattr(644,root,root,755)
1381 %attr(755,root,root) %{_bindir}/pear
1385 %defattr(644,root,root,755)
1386 %attr(755,root,root) %{extensionsdir}/mysql.so
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{extensionsdir}/libpdf_php.so
1393 %defattr(644,root,root,755)
1394 %attr(755,root,root) %{extensionsdir}/pgsql.so
1396 %if %{?_with_oracle:1}%{!?_with_oracle:0}
1398 %defattr(644,root,root,755)
1399 %attr(755,root,root) %{extensionsdir}/oracle.so
1402 %if %{?_with_oci8:1}%{!?_with_oci8:0}
1404 %defattr(644,root,root,755)
1405 %attr(755,root,root) %{extensionsdir}/oci8.so
1409 %defattr(644,root,root,755)
1410 %attr(755,root,root) %{extensionsdir}/gd.so
1413 %defattr(644,root,root,755)
1414 %attr(755,root,root) %{extensionsdir}/xml.so
1417 %defattr(644,root,root,755)
1418 %attr(755,root,root) %{extensionsdir}/dba.so
1421 %defattr(644,root,root,755)
1422 %attr(755,root,root) %{extensionsdir}/dbase.so
1425 %defattr(644,root,root,755)
1426 %attr(755,root,root) %{extensionsdir}/filepro.so
1429 %defattr(644,root,root,755)
1430 %attr(755,root,root) %{extensionsdir}/pcre.so
1433 %defattr(644,root,root,755)
1434 %attr(755,root,root) %{extensionsdir}/posix.so
1437 %defattr(644,root,root,755)
1438 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1441 %defattr(644,root,root,755)
1442 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1445 %defattr(644,root,root,755)
1446 %attr(755,root,root) %{extensionsdir}/yp.so
1449 %defattr(644,root,root,755)
1450 %attr(755,root,root) %{extensionsdir}/calendar.so
1453 %defattr(644,root,root,755)
1454 %attr(755,root,root) %{extensionsdir}/bcmath.so
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) %{extensionsdir}/ftp.so
1461 %defattr(644,root,root,755)
1462 %attr(755,root,root) %{extensionsdir}/zlib.so
1465 %defattr(644,root,root,755)
1466 %attr(755,root,root) %{extensionsdir}/bz2.so
1469 %defattr(644,root,root,755)
1470 %attr(755,root,root) %{extensionsdir}/exif.so
1472 %if %{?_without_recode:0}%{!?_without_recode:1}
1474 %defattr(644,root,root,755)
1475 %attr(755,root,root) %{extensionsdir}/recode.so
1479 #%defattr(644,root,root,755)
1480 #%attr(755,root,root) %{extensionsdir}/session.so
1483 %defattr(644,root,root,755)
1484 %attr(755,root,root) %{extensionsdir}/gettext.so
1486 %if %{?_without_imap:0}%{!?_without_imap:1}
1488 %defattr(644,root,root,755)
1489 %attr(755,root,root) %{extensionsdir}/imap.so
1492 %if %{?_without_snmp:0}%{!?_without_snmp:1}
1494 %defattr(644,root,root,755)
1495 %attr(755,root,root) %{extensionsdir}/snmp.so
1498 %if %{?_with_java:1}%{!?_with_java:0}
1500 %defattr(644,root,root,755)
1501 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1504 %if %{?_without_ldap:0}%{!?_without_ldap:1}
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{extensionsdir}/ldap.so
1511 %defattr(644,root,root,755)
1512 %attr(755,root,root) %{extensionsdir}/sockets.so
1515 %defattr(644,root,root,755)
1516 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1519 %defattr(644,root,root,755)
1520 %attr(755,root,root) %{extensionsdir}/mhash.so
1522 %if %{?_without_odbc:0}%{!?_without_odbc:1}
1524 %defattr(644,root,root,755)
1525 %attr(755,root,root) %{extensionsdir}/odbc.so
1529 %defattr(644,root,root,755)
1533 %defattr(644,root,root,755)
1534 %attr(755,root,root) %{extensionsdir}/curl.so
1537 %defattr(644,root,root,755)
1538 %attr(755,root,root) %{extensionsdir}/ming.so
1540 %if %{?_with_xslt:1}%{!?_with_xslt:0}
1542 %defattr(644,root,root,755)
1543 %attr(755,root,root) %{extensionsdir}/xslt.so
1546 %if %{?_with_wddx:1}%{!?_with_wddx:0}
1548 %defattr(644,root,root,755)
1549 %attr(755,root,root) %{extensionsdir}/wddx.so
1552 %if %{?_with_libcpdf:1}%{!?_with_libcpdf:0}
1554 %defattr(644,root,root,755)
1555 %attr(755,root,root) %{extensionsdir}/cpdf.so
1559 %defattr(644,root,root,755)
1560 %attr(755,root,root) %{extensionsdir}/iconv.so
1563 %defattr(644,root,root,755)
1564 %attr(755,root,root) %{extensionsdir}/gmp.so
1567 %defattr(644,root,root,755)
1568 %attr(755,root,root) %{extensionsdir}/shmop.so