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