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