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