]> git.pld-linux.org Git - packages/php.git/blob - php.spec
- release 0.7,
[packages/php.git] / php.spec
1 #
2 # Conditional build:
3 # bcond_on_oracle  - with oracle support 
4 # bcond_on_oci8    - with oci8 support
5 # bcond_on_java    - with Java support
6 # bcond_on_openssl - with OpenSSL support
7 # bcond_off_imap   - without IMAP support
8 # bcond_off_ldap   - without LDAP support
9 # bcond_off_odbc   - without ODBC support
10 # bcond_off_snmp   - without SNMP support
11 #
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
15 Name:           php
16 Version:        4.0.4pl1
17 Release:        0.7
18 Epoch:          1
19 Group:          Libraries
20 Group(de):      Libraries
21 Group(es):      Bibliotecas
22 Group(fr):      Librairies
23 Group(pl):      Biblioteki
24 License:        The PHP license (see "LICENSE" file included in distribution)
25 Source0:        http://www.php.net/distributions/%{name}-%{version}.tar.gz
26 Source1:        FAQ.php
27 Source2:        %{name}.ini
28 Source3:        zend.gif
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 Patch5:         %{name}-no_libnsl.patch
35 Patch6:         %{name}-DESTDIR.patch
36 Patch7:         %{name}-gd-shared.patch
37 Patch8:         %{name}-apache-fixes.patch
38 Patch9:         %{name}-system-expat.patch
39 Patch10:        %{name}-quotes.patch
40 Icon:           php4.gif
41 URL:            http://www.php.net/
42 BuildRequires:  apache(EAPI)-devel
43 BuildRequires:  zip
44 BuildRequires:  bison
45 BuildRequires:  flex
46 BuildRequires:  db3-devel >= 3.1.17
47 BuildRequires:  freetype-devel
48 BuildRequires:  gd-devel >= 1.8.3
49 BuildRequires:  gdbm-devel
50 %{!?bcond_off_imap:BuildRequires: imap-devel >= 4.7b-1}
51 # I think jdk is better for java
52 # BuildRequires:        jdk
53 %{?bcond_on_java:BuildRequires: kaffe-devel}
54 BuildRequires:  libjpeg-devel
55 BuildRequires:  libltdl-devel
56 BuildRequires:  libpng >= 1.0.8
57 BuildRequires:  libtiff-devel
58 BuildRequires:  mm-devel >= 1.1.3
59 BuildRequires:  mysql-devel >= 3.23.32
60 %{!?bcond_off_ldap:BuildRequires: openldap-devel >= 2.0}
61 BuildRequires:  pam-devel
62 BuildRequires:  pdflib-devel >= 3.0
63 #BuildRequires: libxml-devel >= 2.0.0
64 BuildRequires:  postgresql-devel
65 BuildRequires:  recode-devel >= 3.5
66 BuildRequires:  t1lib-devel
67 %{!?bcond_off_odbc:BuildRequires: unixODBC-devel}
68 BuildRequires:  zlib-devel >= 1.0.9
69 %{!?bcond_off_snmp:BuildRequires: ucd-snmp-devel >= 4.1}
70 BuildRequires:  libmcrypt-devel >= 2.4.4
71 BuildRequires:  mhash-devel
72 BuildRequires:  bzip2-devel
73 BuildRequires:  gmp-devel
74 BuildRequires:  curl-devel
75 %if %(expr %{?bcond_on_openssl:1}%{!?bcond_on_openssl:0} + %{!?bcond_off_ldap:1}%{?bcond_off_ldap:0})
76 BuildRequires:  openssl-devel >= 0.9.6
77 %endif
78 Requires:       apache(EAPI) >= 1.3.9
79 Prereq:         perl
80 Prereq:         /usr/sbin/apxs
81 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
83 %define         _sysconfdir     /etc/php
84 # check ZEND_MODULE_API_NO in  Zend/modules.h
85 %define         extensionsdir   %{_libdir}/php/extensions/no-debug-non-zts-20001214
86
87 %description
88 PHP is an HTML-embedded scripting language. PHP attempts to make it
89 easy for developers to write dynamically generated web pages. PHP also
90 offers built-in database integration for several commercial and
91 non-commercial database management systems, so writing a
92 database-enabled web page with PHP is fairly simple. The most common
93 use of PHP coding is probably as a replacement for CGI scripts. The
94 mod_php module enables the Apache web server to understand and process
95 the embedded PHP language in web pages. This package contains PHP
96 version %{version}. If you use applications which specifically rely on
97 PHP/FI (PHP v2 and earlier), you should instead install the PHP/FI
98 module contained in the phpfi package. If you're just starting with
99 PHP, you should install this package. You'll also need to install the
100 Apache web server.
101
102 %description -l fr
103 PHP est un langage de script embarque dans le HTM. PHP essaye de
104 rendre simple aux developpeurs d'ecrire des pages web generees
105 dynamiquement. PHP incorpore egalement une integration avec plusieurs
106 systemes de gestion de bases de donnees commerciaux et
107 non-connerciaux, qui rent facile la creation de pages web liees avec
108 des bases de donnees. L'utilisation la plus commune de PHP est
109 probablement en remplacement de scripts CGI. Le module mod_php permet
110 au serveur web apache de comprendre et de traiter le langage PHP
111 integre dans des pages web. Ce package contient PHP version
112 %{version}. Si vous utilisez des applications qui utilisent
113 specifiquement PHP/FI, vous devrez installer le module PHP/FI inclus
114 dans le package mod_php. Si vous debutez avec PHP, vous devriez
115 installer ce package. Vous aurez egalement besoin d'installer le
116 serveur web Apache.
117
118 %description -l pl
119 PHP jest jêzykiem skryptowym, którego polecenia umieszcza siê w
120 plikach HTML. Pakiet ten zawiera modu³ przeznaczony dla serwera HTTP
121 (jak np. Apache), który interpretuje te polecenia. Umo¿liwia to
122 tworzenie dynamicznie stron WWW. Spora czê¶æ sk³adni PHP zapo¿yczona
123 zosta³a z jêzyków: C, Java i Perl.
124
125 %package mysql
126 Summary:        MySQL database module for PHP
127 Summary(pl):    Modu³ bazy danych MySQL dla PHP
128 Group:          Libraries
129 Group(de):      Libraries
130 Group(es):      Bibliotecas
131 Group(fr):      Librairies
132 Group(pl):      Biblioteki
133 PreReq: %{name} = %{version}
134
135 %description mysql
136 This is a dynamic shared object (DSO) for Apache that will add MySQL
137 database support to PHP. If you need back-end support for MySQL, you
138 should install this package in addition to the main %{name} package.
139
140 %description mysql -l pl
141 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych MySQL.
142
143 %package pgsql
144 Summary:        PostgreSQL database module for PHP
145 Summary(pl):    Modu³ bazy danych PostgreSQL dla PHP
146 Group:          Libraries
147 Group(de):      Libraries
148 Group(es):      Bibliotecas
149 Group(fr):      Librairies
150 Group(pl):      Biblioteki
151 PreReq: %{name} = %{version}
152
153 %description pgsql
154 This is a dynamic shared object (DSO) for Apache that will add
155 PostgreSQL database support to PHP. If you need back-end support for
156 PostgreSQL, you should install this package in addition to the main
157 %{name} package.
158
159 %description pgsql -l pl
160 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych PostgreSQL.
161
162 %package oci8
163 Summary:        Oracle 8 database module for PHP
164 Summary(pl):    Modu³ bazy danych Oracle 8 dla PHP
165 Group:          Libraries
166 Group(de):      Libraries
167 Group(es):      Bibliotecas
168 Group(fr):      Librairies
169 Group(pl):      Biblioteki
170 PreReq: %{name} = %{version}
171 Autoreq:        false
172
173 %description oci8
174 This is a dynamic shared object (DSO) for Apache that will add Oracle
175 8 database support to PHP. If you need back-end support for Oracle 8,
176 you should install this package in addition to the main %{name}
177 package.
178
179 %description oci8 -l pl
180 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 8.
181
182 %package oracle
183 Summary:        Oracle 7 database module for PHP
184 Summary(pl):    Modu³ bazy danych Oracle 7 dla PHP
185 Group:          Libraries
186 Group(de):      Libraries
187 Group(es):      Bibliotecas
188 Group(fr):      Librairies
189 Group(pl):      Biblioteki
190 PreReq: %{name} = %{version}
191 Autoreq:        false
192
193 %description oracle
194 This is a dynamic shared object (DSO) for Apache that will add Oracle
195 7 database support to PHP. If you need back-end support for Oracle 7,
196 you should install this package in addition to the main %{name}
197 package.
198
199 %description oracle -l pl
200 Modu³ PHP umo¿liwiaj±cy dostêp do bazy danych Oracle 7.
201
202 %package gd
203 Summary:        GD extension module for PHP
204 Summary:        Modu³ GD dla PHP
205 Group:          Libraries
206 Group(de):      Libraries
207 Group(es):      Bibliotecas
208 Group(fr):      Librairies
209 Group(pl):      Biblioteki
210 PreReq: %{name} = %{version}
211
212 %description gd
213 This is a dynamic shared object (DSO) for Apache that will add GD
214 support to PHP. You should install this package in addition to the
215 main %{name} package if you want to create and manipulate images with
216 PHP.
217
218 %description gd -l pl
219 Modu³ PHP umo¿liwiaj±cy korzystanie z biblioteki GD - do obróbki obrazków
220 z poziomu PHP.
221
222 %package java
223 Summary:        Java extension module for PHP
224 Summary(pl):    Modu³ Javy dla PHP
225 Group:          Libraries
226 Group(de):      Libraries
227 Group(es):      Bibliotecas
228 Group(fr):      Librairies
229 Group(pl):      Biblioteki
230 PreReq: %{name} = %{version}
231
232 %description java
233 This is a dynamic shared object (DSO) for Apache that will add JAVA
234 support to PHP. This extension provides a simple and effective means
235 for creating and invoking methods on Java objects from PHP.
236
237 %description java -l pl
238 Modu³ PHP dodaj±cy wsparcie dla Javy. Umo¿liwia odwo³ywanie siê do
239 obiektów Javy z poziomu PHP.
240
241 %package xml
242 Summary:        XML extension module for PHP
243 Summary(pl):    Modu³ XML dla PHP
244 Group:          Libraries
245 Group(de):      Libraries
246 Group(es):      Bibliotecas
247 Group(fr):      Librairies
248 Group(pl):      Biblioteki
249 PreReq: %{name} = %{version}
250
251 %description xml
252 This is a dynamic shared object (DSO) for Apache that will add XML
253 support to PHP. This extension lets you create XML parsers and then
254 define handlers for different XML events. If you want to be able to
255 parse XML documents you should install this package in addition to the
256 main %{name} package.
257
258 %description xml -l pl
259 Modu³ PHP umo¿liwiaj±cy parsowanie plików XML i obs³ugê zdarzeñ
260 zwi±zanych z tymi plikami.
261
262 %package dba
263 Summary:        DBA extension module for PHP
264 Summary(pl):    Modu³ DBA dla PHP
265 Group:          Libraries
266 Group(de):      Libraries
267 Group(es):      Bibliotecas
268 Group(fr):      Librairies
269 Group(pl):      Biblioteki
270 PreReq: %{name} = %{version}
271
272 %description dba
273 This is a dynamic shared object (DSO) for Apache that will add
274 flat-file databases (DBA) support to PHP.
275
276 #%description dba -l pl
277
278 %package odbc
279 Summary:        ODBC extension module for PHP
280 Summary(pl):    Modu³ ODBC dla PHP
281 Group:          Libraries
282 Group(de):      Libraries
283 Group(es):      Bibliotecas
284 Group(fr):      Librairies
285 Group(pl):      Biblioteki
286 PreReq: %{name} = %{version}
287
288 %description odbc
289 This is a dynamic shared object (DSO) for Apache that will add
290 ODBC support to PHP.
291
292 %description odbc -l pl
293 Modu³ PHP ze wsparciem dla ODBC.
294
295 %package calendar
296 Summary:        Calendar extension module for PHP
297 Summary(pl):    Modu³ funkcji kalendarza dla PHP
298 Group:          Libraries
299 Group(de):      Libraries
300 Group(es):      Bibliotecas
301 Group(fr):      Librairies
302 Group(pl):      Biblioteki
303 PreReq: %{name} = %{version}
304
305 %description calendar
306 This is a dynamic shared object (DSO) for Apache that will add
307 calendar support to PHP.
308
309 #%description calendar -l pl
310
311 %package dbase
312 Summary:        DBase extension module for PHP
313 Summary(pl):    Modu³ DBase dla PHP
314 Group:          Libraries
315 Group(de):      Libraries
316 Group(es):      Bibliotecas
317 Group(fr):      Librairies
318 Group(pl):      Biblioteki
319 PreReq: %{name} = %{version}
320
321 %description dbase
322 This is a dynamic shared object (DSO) for Apache that will add DBase
323 support to PHP.
324
325 %description dbase -l pl
326 Modu³ PHP ze wsparciem dla DBase.
327
328 %package filepro
329 Summary:        FilePro extension module for PHP
330 Summary(pl):    Modu³ FilePro dla PHP
331 Group:          Libraries
332 Group(de):      Libraries
333 Group(es):      Bibliotecas
334 Group(fr):      Librairies
335 Group(pl):      Biblioteki
336 PreReq: %{name} = %{version}
337
338 %description filepro
339 This is a dynamic shared object (DSO) for Apache that will add FilePro
340 support to PHP.
341
342 #%description filepro -l pl
343
344 %package posix
345 Summary:        POSIX extension module for PHP
346 Summary(pl):    Modu³ POSIX dla PHP
347 Group:          Libraries
348 Group(de):      Libraries
349 Group(es):      Bibliotecas
350 Group(fr):      Librairies
351 Group(pl):      Biblioteki
352 PreReq: %{name} = %{version}
353
354 %description posix
355 This is a dynamic shared object (DSO) for Apache that will add POSIX
356 functions support to PHP.
357
358 %description posix -l pl
359 Modu³ PHP umo¿liwiaj±cy korzystanie z funkcji POSIX.
360
361 %package pcre
362 Summary:        PCRE extension module for PHP
363 Summary(pl):    Modu³ PCRE dla PHP
364 Group:          Libraries
365 Group(de):      Libraries
366 Group(es):      Bibliotecas
367 Group(fr):      Librairies
368 Group(pl):      Biblioteki
369 PreReq: %{name} = %{version}
370
371 %description pcre
372 This is a dynamic shared object (DSO) for Apache that will add Perl
373 Compatible Regular Expression support to PHP.
374
375 %description pcre -l pl
376 Modu³ PHP umo¿liwiaj±cy korzystanie z perlowych wyra¿eñ regularnych
377 (Perl Compatible Regular Expressions)
378
379 %package sysvsem
380 Summary:        SysV sem extension module for PHP
381 Summary(pl):    Modu³ SysV sem dla PHP
382 Group:          Libraries
383 Group(de):      Libraries
384 Group(es):      Bibliotecas
385 Group(fr):      Librairies
386 Group(pl):      Biblioteki
387 PreReq: %{name} = %{version}
388
389 %description sysvsem
390 This is a dynamic shared object (DSO) for Apache that will add SysV
391 semafores support to PHP.
392
393 %description sysvsem -l pl
394 Modu³ PHP umo¿liwiaj±cy korzystanie z semaforów SysV.
395
396 %package sysvshm
397 Summary:        SysV shm extension module for PHP
398 Summary(pl):    Modu³ SysV shm dla PHP
399 Group:          Libraries
400 Group(de):      Libraries
401 Group(es):      Bibliotecas
402 Group(fr):      Librairies
403 Group(pl):      Biblioteki
404 PreReq: %{name} = %{version}
405
406 %description sysvshm
407 This is a dynamic shared object (DSO) for Apache that will add SysV
408 Shared Memory support to PHP.
409
410 %description sysvshm -l pl
411 Modu³ PHP umo¿liwiaj±cy korzystanie z pamiêci dzielonej SysV.
412
413 %package yp
414 Summary:        NIS (yp) extension module for PHP
415 Summary(pl):    Modu³ NIS (yp) dla PHP
416 Group:          Libraries
417 Group(de):      Libraries
418 Group(es):      Bibliotecas
419 Group(fr):      Librairies
420 Group(pl):      Biblioteki
421 PreReq: %{name} = %{version}
422
423 %description yp
424 This is a dynamic shared object (DSO) for Apache that will add NIS
425 (Yellow Pages) support to PHP.
426
427 #%description yp -l pl
428
429 %package bcmath
430 Summary:        bcmath extension module for PHP
431 Summary(pl):    Modu³ bcmath dla PHP
432 Group:          Libraries
433 Group(de):      Libraries
434 Group(es):      Bibliotecas
435 Group(fr):      Librairies
436 Group(pl):      Biblioteki
437 PreReq: %{name} = %{version}
438
439 %description bcmath
440 This is a dynamic shared object (DSO) for Apache that will add bc
441 style precision math functions support to PHP.
442
443 %description bcmath -l pl
444 Modu³ PHP umo¿liwiaj±cy korzystanie z dok³adnych funkcji matematycznych
445 takich jak w programie bc.
446
447 %package ftp
448 Summary:        FTP extension module for PHP
449 Summary(pl):    Modu³ FTP dla PHP
450 Group:          Libraries
451 Group(de):      Libraries
452 Group(es):      Bibliotecas
453 Group(fr):      Librairies
454 Group(pl):      Biblioteki
455 PreReq: %{name} = %{version}
456
457 %description ftp
458 This is a dynamic shared object (DSO) for Apache that will add FTP
459 support to PHP.
460
461 #%description ftp -l pl
462
463 %package zlib
464 Summary:        Zlib extension module for PHP
465 Summary(pl):    Modu³ zlib dla PHP
466 Group:          Libraries
467 Group(de):      Libraries
468 Group(es):      Bibliotecas
469 Group(fr):      Librairies
470 Group(pl):      Biblioteki
471 PreReq: %{name} = %{version}
472
473 %description zlib
474 This is a dynamic shared object (DSO) for Apache that will add
475 compression (zlib) support to PHP.
476
477 %description zlib -l pl
478 Modu³ PHP umo¿liwiaj±cy u¿ywanie kompresji (poprzez bibliotekê zlib).
479
480 %package exif
481 Summary:        exifextension module for PHP
482 Summary(pl):    Modu³ exif dla PHP
483 Group:          Libraries
484 Group(de):      Libraries
485 Group(es):      Bibliotecas
486 Group(fr):      Librairies
487 Group(pl):      Biblioteki
488 PreReq: %{name} = %{version}
489
490 %description exif
491 This is a dynamic shared object (DSO) for Apache that will add exif
492 support to PHP.
493
494 #%description exif -l pl
495
496 %package recode
497 Summary:        recodeextension module for PHP
498 Summary(pl):    Modu³ recode dla PHP
499 Group:          Libraries
500 Group(de):      Libraries
501 Group(es):      Bibliotecas
502 Group(fr):      Librairies
503 Group(pl):      Biblioteki
504 PreReq: %{name} = %{version}
505
506 %description recode
507 This is a dynamic shared object (DSO) for Apache that will add recode
508 support to PHP.
509
510 #%description recode -l pl
511
512 %package session
513 Summary:        sessionextension module for PHP
514 Summary(pl):    Modu³ session dla PHP
515 Group:          Libraries
516 Group(de):      Libraries
517 Group(es):      Bibliotecas
518 Group(fr):      Librairies
519 Group(pl):      Biblioteki
520 PreReq: %{name} = %{version}
521
522 %description session
523 This is a dynamic shared object (DSO) for Apache that will add session
524 support to PHP.
525
526 #%description session -l pl
527
528 %package gettext
529 Summary:        gettextextension module for PHP
530 Summary(pl):    Modu³ gettext dla PHP
531 Group:          Libraries
532 Group(de):      Libraries
533 Group(es):      Bibliotecas
534 Group(fr):      Librairies
535 Group(pl):      Biblioteki
536 PreReq: %{name} = %{version}
537
538 %description gettext
539 This is a dynamic shared object (DSO) for Apache that will add gettext
540 support to PHP.
541
542 #%description gettext -l pl
543
544 %package snmp
545 Summary:        snmpextension module for PHP
546 Summary(pl):    Modu³ snmp dla PHP
547 Group:          Libraries
548 Group(de):      Libraries
549 Group(es):      Bibliotecas
550 Group(fr):      Librairies
551 Group(pl):      Biblioteki
552 PreReq: %{name} = %{version}
553
554 %description snmp
555 This is a dynamic shared object (DSO) for Apache that will add snmp
556 support to PHP.
557
558 #%description snmp -l pl
559
560 %package imap
561 Summary:        imapextension module for PHP
562 Summary(pl):    Modu³ imap dla PHP
563 Group:          Libraries
564 Group(de):      Libraries
565 Group(es):      Bibliotecas
566 Group(fr):      Librairies
567 Group(pl):      Biblioteki
568 PreReq: %{name} = %{version}
569
570 %description imap
571 This is a dynamic shared object (DSO) for Apache that will add imap
572 support to PHP.
573
574 #%description imap -l pl
575
576 %package ldap
577 Summary:        LDAP extension module for PHP
578 Summary(pl):    Modu³ LDAP dla PHP
579 Group:          Libraries
580 Group(de):      Libraries
581 Group(es):      Bibliotecas
582 Group(fr):      Librairies
583 Group(pl):      Biblioteki
584 PreReq: %{name} = %{version}
585
586 %description ldap
587 This is a dynamic shared object (DSO) for Apache that will add LDAP
588 support to PHP.
589
590 #%description ldap -l pl
591
592 %package sockets
593 Summary:        sockets extension module for PHP
594 Summary(pl):    Modu³ socket dla PHP
595 Group:          Libraries
596 Group(de):      Libraries
597 Group(es):      Bibliotecas
598 Group(fr):      Librairies
599 Group(pl):      Biblioteki
600 PreReq: %{name} = %{version}
601
602 %description sockets
603 This is a dynamic shared object (DSO) for Apache that will add sockets
604 support to PHP.
605
606 #%description sockets -l pl
607
608 %package mcrypt
609 Summary:        mcrypt extension module for PHP
610 Summary(pl):    Modu³ mcrypt dla PHP
611 Group:          Libraries
612 Group(de):      Libraries
613 Group(es):      Bibliotecas
614 Group(fr):      Librairies
615 Group(pl):      Biblioteki
616 PreReq: %{name} = %{version}
617
618 %description mcrypt
619 This is a dynamic shared object (DSO) for Apache that will add mcrypt
620 support to PHP.
621
622 #%description mcrypt -l pl
623
624 %package mhash
625 Summary:        mhash extension module for PHP
626 Summary(pl):    Modu³ mhash dla PHP
627 Group:          Libraries
628 Group(de):      Libraries
629 Group(es):      Bibliotecas
630 Group(fr):      Librairies
631 Group(pl):      Biblioteki
632 PreReq: %{name} = %{version}
633
634 %description mhash
635 This is a dynamic shared object (DSO) for Apache that will add mhash
636 support to PHP.
637
638 #%description mcrypt -l pl
639
640 %package doc
641 Summary:        Online manual for PHP
642 Summary(pl):    Dokumentacja dla PHP
643 Group:          Networking/Daemons
644 Group(de):      Netzwerkwesen/Server
645 Group(pl):      Sieciowe/Serwery
646
647 %description doc
648 Comprehensive documentation for PHP, viewable through your web
649 server, too!
650
651 %description doc -l pl
652 Dokumentacja dla pakietu PHP. Mo¿na j± równie¿ ogl±daæ poprzez serwer
653 WWW.
654
655 %package pear
656 Summary:        PEAR
657 Group:          Development/Languages/PHP
658
659 %description pear
660 PEAR.
661
662 %package devel
663 Summary:        Files for PHP modules development
664 Group:          Development/Languages/PHP
665
666 %description devel
667 Files for PHP modules development.
668
669 %prep
670 %setup  -q
671 %patch0 -p1
672 %patch1 -p1
673 %patch2 -p1
674 %patch5 -p1
675 %patch6 -p1
676 %patch7 -p1
677 %patch8 -p1
678 #%patch9 -p1
679 %patch10 -p1
680
681 %build
682 CFLAGS="$RPM_OPT_FLAGS -DEAPI -I/usr/X11R6/include"; export CFLAGS
683 ./buildconf
684 %configure \
685         --with-apxs=/usr/sbin/apxs \
686         --with-config-file-path=%{_sysconfdir}/apache \
687         --with-exec-dir=%{_bindir} \
688         --disable-debug \
689         --enable-magic-quotes \
690         --enable-shared \
691         --enable-track-vars \
692         --enable-safe-mode \
693         --enable-trans-sid \
694         --enable-sysvsem=shared \
695         --enable-sysvshm=shared \
696         --enable-shmop=shared \
697         --enable-session \
698         --enable-exif=shared \
699         --with-regex=system \
700         --with-gettext=shared \
701         %{!?bcond_off_ldap:--with-ldap=shared} \
702         --with-mysql=shared,/usr \
703         --with-mysql-sock=/var/lib/mysql/mysql.sock \
704         --with-gd=shared \
705         --enable-gd-imgstrttf \
706         --with-dbase=shared \
707         --with-filepro=shared \
708         --enable-ftp=shared \
709         --with-hyperwave \
710         --with-pdflib=shared \
711         --with-cpdflib=shared \
712         %{?bcond_on_java:--with-java} \
713         --with-pgsql=shared,/usr \
714         %{!?bcond_off_imap:--with-imap=shared} \
715         --enable-bcmath=shared \
716         --enable-calendar=shared \
717         --with-mm \
718         --with-pcre-regex=shared \
719         --enable-posix=shared \
720         --with-ttf \
721         --with-t1lib \
722         --with-recode=shared \
723         --enable-ucd-snmp-hack \
724         --enable-dba=shared \
725         %{!?bcond_off_snmp:--with-snmp=shared} \
726         --with-gdbm \
727         --with-db3 \
728         --enable-yp=shared \
729         --with-xml=shared \
730         --enable-xml=shared \
731         --with-zlib=shared \
732         --with-mcrypt=shared \
733         --enable-sockets=shared \
734         --with-bz2=shared \
735         --with-ctype=shared \
736         --with-mhash=shared \
737         --with-curl=shared \
738         --with-gmp=shared \
739         %{?bcond_on_openssl:--with-openssl} \
740         %{!?bcond_off_odbc:--with-unixODBC=shared} \
741         %{?bcond_on_oracle:--with-oracle=shared} \
742         %{?bcond_on_oci8:--with-oci8=shared} \
743         --without-db2 
744
745 # TODO --with-pspell=/usr,shared (pspell missing)
746
747 # --with-dom need libxml >= 2.2.7 \
748
749 %{__make}
750
751 %install
752 rm -rf $RPM_BUILD_ROOT
753 install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}} \
754                 $RPM_BUILD_ROOT/home/httpd/html/{icons,docs,docs/php4-doc} \
755                 $RPM_BUILD_ROOT/%{_sbindir}
756
757 %{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL_IT="install .libs/*.so $RPM_BUILD_ROOT%{_libdir}/apache/"
758 #exit 1
759 #install .libs/*.so     $RPM_BUILD_ROOT%{_pkglibdir}
760 #install modules/*.so   $RPM_BUILD_ROOT%{_pkglibdir}/php
761
762 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/apache/php.ini
763 install %{SOURCE3} php4.gif     $RPM_BUILD_ROOT/home/httpd/html/icons
764 install %{SOURCE5} $RPM_BUILD_ROOT/%{_sbindir}
765
766 tar zxf %{SOURCE4} -C $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc
767 ln -s manual.html $RPM_BUILD_ROOT/home/httpd/html/docs/php4-doc/index.html
768
769 install %{SOURCE1} .
770 gzip -9nf CODING_STANDARDS CREDITS FUNCTION_LIST.txt \
771       EXTENSIONS NEWS TODO* LICENSE Zend/LICENSE \
772       Zend/ZEND_CHANGES README.SELF-CONTAINED-EXTENSIONS README.EXT_SKEL
773
774 %post
775 /usr/sbin/apxs -e -a -n php4 %{_pkglibdir}/libphp4.so 1>&2
776 perl -pi -e 's|^#AddType application/x-httpd-php \.php|AddType application/x-httpd-php .php|' \
777         /etc/httpd/httpd.conf
778 if [ -f /var/lock/subsys/httpd ]; then
779         /etc/rc.d/init.d/httpd restart 1>&2
780 fi
781
782 %preun
783 if [ "$1" = "0" ]; then
784         /usr/sbin/apxs -e -A -n php4 %{_pkglibdir}/libphp4.so 1>&2
785         perl -pi -e \
786                 's|^AddType application/x-httpd-php \.php|#AddType application/x-httpd-php .php|' \
787                 /etc/httpd/httpd.conf
788         if [ -f /var/lock/subsys/httpd ]; then
789                 /etc/rc.d/init.d/httpd restart 1>&2
790         fi
791 fi
792
793 %post bcmath
794 %{_sbindir}/php-module-install install bcmath %{_sysconfdir}/apache/php.ini
795
796 %preun bcmath
797 if [ "$1" = "0" ]; then
798         %{_sbindir}/php-module-install remove bcmath %{_sysconfdir}/apache/php.ini
799 fi
800
801 %post calendar
802 %{_sbindir}/php-module-install install calendar %{_sysconfdir}/apache/php.ini
803
804 %preun calendar
805 if [ "$1" = "0" ]; then
806         %{_sbindir}/php-module-install remove calendar %{_sysconfdir}/apache/php.ini
807 fi
808
809 %post dba
810 %{_sbindir}/php-module-install install dba %{_sysconfdir}/apache/php.ini
811
812 %preun dba
813 if [ "$1" = "0" ]; then
814         %{_sbindir}/php-module-install remove dba %{_sysconfdir}/apache/php.ini
815 fi
816
817 %post dbase
818 %{_sbindir}/php-module-install install dbase %{_sysconfdir}/apache/php.ini
819
820 %preun dbase
821 if [ "$1" = "0" ]; then
822         %{_sbindir}/php-module-install remove dbase %{_sysconfdir}/apache/php.ini
823 fi
824
825 %post exif
826 %{_sbindir}/php-module-install install exif %{_sysconfdir}/apache/php.ini
827
828 %preun exif
829 if [ "$1" = "0" ]; then
830         %{_sbindir}/php-module-install remove exif %{_sysconfdir}/apache/php.ini
831 fi
832
833 %post filepro
834 %{_sbindir}/php-module-install install filepro %{_sysconfdir}/apache/php.ini
835
836 %preun filepro
837 if [ "$1" = "0" ]; then
838         %{_sbindir}/php-module-install remove filepro %{_sysconfdir}/apache/php.ini
839 fi
840
841 %post ftp
842 %{_sbindir}/php-module-install install ftp %{_sysconfdir}/apache/php.ini
843
844 %preun ftp
845 if [ "$1" = "0" ]; then
846         %{_sbindir}/php-module-install remove ftp %{_sysconfdir}/apache/php.ini
847 fi
848
849 %post gd
850 %{_sbindir}/php-module-install install gd %{_sysconfdir}/apache/php.ini
851
852 %preun gd
853 if [ "$1" = "0" ]; then
854         %{_sbindir}/php-module-install remove gd %{_sysconfdir}/apache/php.ini
855 fi
856
857 %post gettext
858 %{_sbindir}/php-module-install install gettext %{_sysconfdir}/apache/php.ini
859
860 %preun gettext
861 if [ "$1" = "0" ]; then
862         %{_sbindir}/php-module-install remove gettext %{_sysconfdir}/apache/php.ini
863 fi
864
865 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
866 %post imap
867 %{_sbindir}/php-module-install install imap %{_sysconfdir}/apache/php.ini
868
869 %preun imap
870 if [ "$1" = "0" ]; then
871         %{_sbindir}/php-module-install remove imap %{_sysconfdir}/apache/php.ini
872 fi
873 %endif
874
875 %if %{?bond_on_java:1}%{!?bond_on_java:0}
876 %post java
877 %{_sbindir}/php-module-install install libphp_java %{_sysconfdir}/apache/php.ini
878
879 %preun java
880 if [ "$1" = "0" ]; then
881         %{_sbindir}/php-module-install remove libphp_java %{_sysconfdir}/apache/php.ini
882 fi
883 %endif
884
885 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
886 %post ldap
887 %{_sbindir}/php-module-install install ldap %{_sysconfdir}/apache/php.ini
888
889 %preun ldap
890 if [ "$1" = "0" ]; then
891         %{_sbindir}/php-module-install remove ldap %{_sysconfdir}/apache/php.ini
892 fi
893 %endif
894
895 %post mcrypt
896 %{_sbindir}/php-module-install install mcrypt %{_sysconfdir}/apache/php.ini
897
898 %preun mcrypt
899 if [ "$1" = "0" ]; then
900         %{_sbindir}/php-module-install remove mcrypt %{_sysconfdir}/apache/php.ini
901 fi
902
903 %post mhash
904 %{_sbindir}/php-module-install install mhash %{_sysconfdir}/apache/php.ini
905
906 %preun mhash
907 if [ "$1" = "0" ]; then
908         %{_sbindir}/php-module-install remove mhash %{_sysconfdir}/apache/php.ini
909 fi
910
911 %post mysql
912 %{_sbindir}/php-module-install install mysql %{_sysconfdir}/apache/php.ini
913
914 %preun mysql
915 if [ "$1" = "0" ]; then
916         %{_sbindir}/php-module-install remove mysql %{_sysconfdir}/apache/php.ini
917 fi
918
919 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
920 %post oci8
921 %{_sbindir}/php-module-install install oci8 %{_sysconfdir}/apache/php.ini
922
923 %preun oci8
924 if [ "$1" = "0" ]; then
925         %{_sbindir}/php-module-install remove oci8 %{_sysconfdir}/apache/php.ini
926 fi
927 %endif
928
929 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
930 %post odbc
931 %{_sbindir}/php-module-install install odbc %{_sysconfdir}/apache/php.ini
932
933 %preun odbc
934 if [ "$1" = "0" ]; then
935         %{_sbindir}/php-module-install remove odbc %{_sysconfdir}/apache/php.ini
936 fi
937 %endif
938
939 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
940 %post oracle
941 %{_sbindir}/php-module-install install oracle %{_sysconfdir}/apache/php.ini
942
943 %preun oracle
944 if [ "$1" = "0" ]; then
945         %{_sbindir}/php-module-install remove oracle %{_sysconfdir}/apache/php.ini
946 fi
947 %endif
948
949 %post pcre
950 %{_sbindir}/php-module-install install pcre %{_sysconfdir}/apache/php.ini
951
952 %preun pcre
953 if [ "$1" = "0" ]; then
954         %{_sbindir}/php-module-install remove pcre %{_sysconfdir}/apache/php.ini
955 fi
956
957 %post pgsql
958 %{_sbindir}/php-module-install install pgsql %{_sysconfdir}/apache/php.ini
959
960 %preun pgsql
961 if [ "$1" = "0" ]; then
962         %{_sbindir}/php-module-install remove pgsql %{_sysconfdir}/apache/php.ini
963 fi
964
965 %post posix
966 %{_sbindir}/php-module-install install posix %{_sysconfdir}/apache/php.ini
967
968 %preun posix
969 if [ "$1" = "0" ]; then
970         %{_sbindir}/php-module-install remove posix %{_sysconfdir}/apache/php.ini
971 fi
972
973 %post recode
974 %{_sbindir}/php-module-install install recode %{_sysconfdir}/apache/php.ini
975
976 %preun recode
977 if [ "$1" = "0" ]; then
978         %{_sbindir}/php-module-install remove recode %{_sysconfdir}/apache/php.ini
979 fi
980
981 %post session
982 %{_sbindir}/php-module-install install session %{_sysconfdir}/apache/php.ini
983
984 %preun session
985 if [ "$1" = "0" ]; then
986         %{_sbindir}/php-module-install remove session %{_sysconfdir}/apache/php.ini
987 fi
988
989 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
990 %post snmp
991 %{_sbindir}/php-module-install install snmp %{_sysconfdir}/apache/php.ini
992
993 %preun snmp
994 if [ "$1" = "0" ]; then
995         %{_sbindir}/php-module-install remove snmp %{_sysconfdir}/apache/php.ini
996 fi
997 %endif
998
999 %post sockets
1000 %{_sbindir}/php-module-install install sockets %{_sysconfdir}/apache/php.ini
1001
1002 %preun sockets
1003 if [ "$1" = "0" ]; then
1004         %{_sbindir}/php-module-install remove sockets %{_sysconfdir}/apache/php.ini
1005 fi
1006
1007 %post sysvsem
1008 %{_sbindir}/php-module-install install sysvsem %{_sysconfdir}/apache/php.ini
1009
1010 %preun sysvsem
1011 if [ "$1" = "0" ]; then
1012         %{_sbindir}/php-module-install remove sysvsem %{_sysconfdir}/apache/php.ini
1013 fi
1014
1015 %post sysvshm
1016 %{_sbindir}/php-module-install install sysvshm %{_sysconfdir}/apache/php.ini
1017
1018 %preun sysvshm
1019 if [ "$1" = "0" ]; then
1020         %{_sbindir}/php-module-install remove sysvshm %{_sysconfdir}/apache/php.ini
1021 fi
1022
1023 %post xml
1024 %{_sbindir}/php-module-install install xml %{_sysconfdir}/apache/php.ini
1025
1026 %preun xml
1027 if [ "$1" = "0" ]; then
1028         %{_sbindir}/php-module-install remove xml %{_sysconfdir}/apache/php.ini
1029 fi
1030
1031 %post yp
1032 %{_sbindir}/php-module-install install yp %{_sysconfdir}/apache/php.ini
1033
1034 %preun yp
1035 if [ "$1" = "0" ]; then
1036         %{_sbindir}/php-module-install remove yp %{_sysconfdir}/apache/php.ini
1037 fi
1038
1039 %post zlib
1040 %{_sbindir}/php-module-install install zlib %{_sysconfdir}/apache/php.ini
1041
1042 %preun zlib
1043 if [ "$1" = "0" ]; then
1044         %{_sbindir}/php-module-install remove zlib %{_sysconfdir}/apache/php.ini
1045 fi
1046
1047 %clean
1048 rm -rf $RPM_BUILD_ROOT
1049
1050 %files
1051 %defattr(644,root,root,755)
1052 %doc {CODING_STANDARDS,CREDITS,FUNCTION_LIST.txt,Zend/ZEND_CHANGES}.gz
1053 %doc {LICENSE,Zend/LICENSE,EXTENSIONS,NEWS,TODO*}.gz  
1054 %doc {README.EXT_SKEL,README.SELF-CONTAINED-EXTENSIONS}.gz
1055
1056 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache/*
1057
1058 /home/httpd/html/icons/*
1059
1060 %attr(755,root,root) %{_libdir}/apache/libphp4.so
1061 %attr(755,root,root) %{_sbindir}/*
1062
1063 %dir %{_libdir}/php
1064 %dir %{_libdir}/php/extensions
1065 %dir %{extensionsdir}
1066
1067 %files devel
1068 %defattr(644,root,root,755)
1069 %{_includedir}/php4
1070 %{_libdir}/php4/build
1071 %attr(755,root,root) %{_bindir}/phpextdist
1072 %attr(755,root,root) %{_bindir}/phpize
1073 %attr(755,root,root) %{_bindir}/php-config
1074
1075 %files pear
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_bindir}/pear
1078 %{_libdir}/php/Benchmark
1079 %{_libdir}/php/Crypt
1080 %{_libdir}/php/Date
1081 %{_libdir}/php/DB
1082 %{_libdir}/php/File
1083 %{_libdir}/php/HTML
1084 %{_libdir}/php/Mail
1085 %{_libdir}/php/Math
1086 %{_libdir}/php/Net
1087 %{_libdir}/php/Payment
1088 %{_libdir}/php/PEAR
1089 %{_libdir}/php/XML
1090 %{_libdir}/php/*.php
1091
1092 %files mysql
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{extensionsdir}/mysql.*
1095
1096 %files pgsql
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{extensionsdir}/pgsql.so
1099
1100 %if %{?bcond_on_oracle:1}%{!?bcond_on_oracle:0}
1101 %files oracle
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{extensionsdir}/oracle.so
1104 %endif
1105
1106 %if %{?bcond_on_oci8:1}%{!?bcond_on_oci8:0}
1107 %files oci8
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{extensionsdir}/oci8.so
1110 %endif
1111
1112 %files gd
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{extensionsdir}/gd.so
1115
1116 %files xml
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{extensionsdir}/xml.so
1119
1120 %files dba
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{extensionsdir}/dba.so
1123
1124 %files dbase
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{extensionsdir}/dbase.so
1127
1128 %files filepro
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{extensionsdir}/filepro.so
1131
1132 %files pcre
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{extensionsdir}/pcre.so
1135
1136 %files posix
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{extensionsdir}/posix.so
1139
1140 %files sysvsem
1141 %defattr(644,root,root,755)
1142 %attr(755,root,root) %{extensionsdir}/sysvsem.so
1143
1144 %files sysvshm
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{extensionsdir}/sysvshm.so
1147
1148 %files yp
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{extensionsdir}/yp.so
1151
1152 %files calendar
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{extensionsdir}/calendar.so
1155
1156 %files bcmath
1157 %defattr(644,root,root,755)
1158 %attr(755,root,root) %{extensionsdir}/bcmath.so
1159
1160 %files ftp
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{extensionsdir}/ftp.so
1163
1164 %files zlib
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{extensionsdir}/zlib.so
1167
1168 %files exif
1169 %defattr(644,root,root,755)
1170 %attr(755,root,root) %{extensionsdir}/exif.so
1171
1172 %files recode
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{extensionsdir}/recode.so
1175
1176 #%files session
1177 #%defattr(644,root,root,755)
1178 #%attr(755,root,root) %{extensionsdir}/session.so
1179
1180 %files gettext
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{extensionsdir}/gettext.so
1183
1184 %if %{?bcond_off_imap:0}%{!?bcond_off_imap:1}
1185 %files imap
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{extensionsdir}/imap.so
1188 %endif
1189
1190 %if %{?bcond_off_snmp:0}%{!?bcond_off_snmp:1}
1191 %files snmp
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{extensionsdir}/snmp.so
1194 %endif
1195
1196 %if %{?bcond_on_java:1}%{!?bcond_on_java:0}
1197 %files java
1198 %defattr(644,root,root,755)
1199 %attr(755,root,root) %{extensionsdir}/libphp_java.so
1200 %endif
1201
1202 %if %{?bcond_off_ldap:0}%{!?bcond_off_ldap:1}
1203 %files ldap
1204 %defattr(644,root,root,755)
1205 %attr(755,root,root) %{extensionsdir}/ldap.*
1206 %endif
1207
1208 %files sockets
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{extensionsdir}/sockets.so
1211
1212 %files mcrypt
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{extensionsdir}/mcrypt.so
1215
1216 %files mhash
1217 %defattr(644,root,root,755)
1218 %attr(755,root,root) %{extensionsdir}/mhash.so
1219
1220 %if %{?bcond_off_odbc:0}%{!?bcond_off_odbc:1}
1221 %files odbc
1222 %defattr(644,root,root,755)
1223 %attr(755,root,root) %{extensionsdir}/odbc.so
1224 %endif
1225
1226 %files doc
1227 %defattr(644,root,root,755)
1228 /home/httpd/html/docs/php4-doc
This page took 0.120852 seconds and 4 git commands to generate.