source: projects/specs/trunk/p/php5/php5-vl.spec @ 521

Revision 521, 53.1 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1%global majorver 5
2%global _name php%{majorver}
3
4%global srcname php-%{version}
5#%%global srcname php5.2-200605090430
6
7%global php_confdir %{_sysconfdir}/%{_name}
8
9%{!?_without_pear:%global _with_pear 1}
10%global with_pear %{?_with_pear:1}%{!?_with_pear:0}
11%if %{with_pear}
12%global pear_rootdir %{_datadir}/%{_name}-pear
13%global pear_cachedir %{_localstatedir}/cache/%{_name}-pear
14%endif
15
16%global apache1_confdir %{_sysconfdir}/httpd/conf.d
17%global apache1_moduledir %{_libdir}/apache
18%global apache1_contentdir /home/httpd
19%global apache1_cgidir %{apache1_contentdir}/cgi-bin
20%global apache1_fcgidir %{apache1_contentdir}/fcgi-bin
21
22%global apache2_confdir %{_sysconfdir}/apache2/conf.d
23%global apache2_moduledir %{_libdir}/apache2/modules
24%global apache2_contentdir /var/www
25%global apache2_cgidir %{apache2_contentdir}/cgi-bin
26%global apache2_fcgidir %{apache2_contentdir}/fcgi-bin
27
28Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
29Name: php5
30Version: 5.3.1
31Release: 1%{_dist_release}
32License: The PHP License
33Group: Development/Languages
34URL: http://www.php.net/
35
36Source0: http://www.php.net/distributions/%{srcname}.tar.bz2
37
38Source20: README.vine
39Source21: php.ini-vine
40Source23: php5.conf-apache1
41Source24: php5.conf-apache2
42
43Patch33: php-5.2.4-phpincludedir.patch
44# Additional feature
45Patch51: php-5.3.0-session_strict_mode.patch
46
47# ad-hoc patch for compiling php-imap with uw-imap-2006b
48# Patch1000: php-4.4.4-utf8_mime2text.patch
49
50BuildRoot: %{_tmppath}/%{name}-%{version}-root
51BuildRequires: autoconf
52BuildRequires: automake
53BuildRequires: bison
54BuildRequires: bzip2
55BuildRequires: bzip2-devel
56BuildRequires: curl-devel
57BuildRequires: db4-devel
58BuildRequires: coreutils
59BuildRequires: flex
60BuildRequires: freetype2-devel
61BuildRequires: gcc-c++
62BuildRequires: gd-devel
63BuildRequires: gdbm-devel
64BuildRequires: gmp-devel
65BuildRequires: libjpeg-devel
66BuildRequires: libpng-devel
67BuildRequires: libstdc++34-devel
68BuildRequires: libtool >= 1.4.3
69BuildRequires: libtool-ltdl-devel
70BuildRequires: libxml2-devel
71BuildRequires: libxslt-devel >= 1.0.18
72BuildRequires: ncurses-devel
73BuildRequires: openssl-devel
74BuildRequires: pam-devel
75BuildRequires: pcre-devel
76BuildRequires: perl
77BuildRequires: pkgconfig
78BuildRequires: postfix
79BuildRequires: readline-devel
80BuildRequires: sqlite3-devel
81BuildRequires: zlib-devel
82%if %{?_dist_release}!="vl4"
83BuildRequires: krb5-devel
84%endif
85PreReq: alternatives
86%{?_with_pear:Requires: %{name}-pear = %{version}-%{release}}
87Conflicts: php <= 4.4.2-0vl1.2
88Provides: php = %{version}-%{release}
89
90%description
91PHP is an HTML-embedded scripting language. PHP attempts to make it
92easy for developers to write dynamically generated webpages. PHP also
93offers built-in database integration for several commercial and
94non-commercial database management systems, so writing a
95database-enabled webpage with PHP is fairly simple. The most common
96use of PHP coding is probably as a replacement for CGI scripts. The
97mod_php module enables the Apache Web server to understand and process
98the embedded PHP language in Web pages.
99
100%description -l ja
101PHP はHTML埋め込み型のスクリプト言語です。開発者にとって、動的に生成され
102るWeb ページを簡単に書けるように考えて作られています。さらに、商用、非商
103用を問わず、数々のデータベース管理システムについての統合データベース環境
104が組み込まれています。このため、データベースを使ったWeb ページがかなり簡
105単に書けます。PHP の用途のほとんどは、既存のCGI スクリプトの置き換えに使
106われているのではないでしょうか。また mod_php を使うと、Apache Web サーバ
107がWeb ページに埋めこまれたPHP 言語を理解して処理できるようになります。
108
109#----------------------------------------------------------------------
110%package devel
111Group: Development/Libraries
112Summary: Files needed for building PHP extensions.
113Requires: %{name} = %{version}-%{release}
114Requires: autoconf
115Requires: automake
116Conflicts: php-devel
117
118%description devel
119The php-devel package contains the files needed for building PHP
120extensions. If you need to compile your own PHP extensions, you will
121need to install this package.
122
123#----------------------------------------------------------------------
124%if %{with_pear}
125%package pear
126Group: Development/Languages
127Summary: PHP Extension and Application Repository Components
128PreReq: alternatives
129Requires: %{name} = %{version}-%{release}
130Conflicts: php-pear <= 4.4.2-0vl2
131Provides: php-pear = %{version}-%{release}
132
133%description pear
134PEAR is a framework and distribution system for reusable PHP
135components.  This package contains the basic PEAR components.
136%endif
137
138#----------------------------------------------------------------------
139%package apache
140Group: System Environment/Daemons
141Summary: php5 module for Apache version 1
142Summary(ja): Apache バージョン 1 用の php5 モジュール
143BuildRequires: apache-devel
144PreReq: %{name} = %{version}-%{release}
145PreReq: apache
146Provides: php-apache = %{version}-%{release}
147
148%description apache
149This package contains the php5 module for Apache version 1.
150
151#----------------------------------------------------------------------
152%package apache2
153Group: System Environment/Daemons
154Summary: php5 module for Apache version 2
155Summary(ja): Apache バージョン 2 用の php5 モジュール
156BuildRequires: apache2-devel >= 2.0.50-0vl2
157PreReq: %{name} = %{version}-%{release}
158PreReq: apache2 >= 2.0.50-0vl2
159Provides: php-apache2 = %{version}-%{release}
160
161%description apache2
162This package contains the php5 module for Apache version 2.
163
164#======================================================================
165# modules
166#----------------------------------------------------------------------
167%package dba
168Summary: A database abstraction layer module for PHP applications
169Group: Development/Languages
170Requires: %{name} = %{version}-%{release}
171Provides: php-dba = %{version}-%{release}
172
173%description dba
174The php-dba package contains a dynamic shared object that will add
175support for using the DBA database abstraction layer to PHP.
176
177#----------------------------------------------------------------------
178%package imap
179Summary: A module for PHP applications that use IMAP.
180Group: Development/Languages
181BuildRequires: uw-imap-devel >= 2000c-1.6.0
182BuildRequires: openssl-devel
183Requires: %{name} = %{version}-%{release}
184Provides: php-imap = %{version}-%{release}
185
186%description imap
187The php-imap package contains a dynamic shared object (DSO) for the
188Apache Web server. When compiled into Apache, the php-imap module will
189add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a
190protocol for retrieving and uploading e-mail messages on mail
191servers. PHP is an HTML-embedded scripting language. If you need IMAP
192support for PHP applications, you will need to install this package
193and the php package.
194
195#----------------------------------------------------------------------
196%package ldap
197Summary: A module for PHP applications that use LDAP.
198Group: Development/Languages
199BuildRequires: cyrus-sasl-devel
200BuildRequires: openldap-devel
201BuildRequires: openssl-devel
202Requires: %{name} = %{version}-%{release}
203Provides: php-ldap = %{version}-%{release}
204
205%description ldap
206The php-ldap package is a dynamic shared object (DSO) for the Apache
207Web server that adds Lightweight Directory Access Protocol (LDAP)
208support to PHP. LDAP is a set of protocols for accessing directory
209services over the Internet. PHP is an HTML-embedded scripting
210language. If you need LDAP support for PHP applications, you will
211need to install this package in addition to the php package.
212
213#----------------------------------------------------------------------
214%package mcrypt
215Summary: A module for PHP applications that use mcrypt
216Group: Development/Languages
217BuildRequires: libmcrypt-devel >= 2.5.6
218Requires: %{name} = %{version}-%{release}
219Provides: php-mcrypt = %{version}-%{release}
220
221%description mcrypt
222The php-mcrypt package contains a dynamic shared object that will add
223support for encrypt/decrypt functions to PHP.
224
225#----------------------------------------------------------------------
226%package mysql
227Summary: A module for PHP applications that use MySQL databases.
228Group: Development/Languages
229BuildRequires: MySQL-devel >= 5.1.40
230# for MySQL-devel Requires bug..
231Requires: %{name} = %{version}-%{release}
232Requires: %{name}-pdo
233Provides: %{name}_database
234Provides: php-mysql = %{version}-%{release}
235
236%description mysql
237The php-mysql package contains a dynamic shared object that will add
238MySQL database support to PHP. MySQL is an object-relational database
239management system. PHP is an HTML-embeddable scripting language. If
240you need MySQL support for PHP applications, you will need to install
241this package and the php or mod_php package.
242
243#----------------------------------------------------------------------
244%package odbc
245Group: Development/Languages
246Summary: A module for PHP applications that use ODBC databases.
247BuildRequires: unixODBC-devel
248Requires: %{name} = %{version}-%{release}
249Requires: %{name}-pdo
250Provides: %{name}_database
251Provides: php-odbc = %{version}-%{release}
252
253%description odbc
254The php-odbc package contains a dynamic shared object that will add
255database support through ODBC to PHP. ODBC is an open specification
256which provides a consistent API for developers to use for accessing
257data sources (which are often, but not always, databases). PHP is an
258HTML-embeddable scripting language. If you need ODBC support for PHP
259applications, you will need to install this package and the php
260package.
261
262#----------------------------------------------------------------------
263%package pdo
264Summary: A database access abstraction module for PHP applications
265Group: Development/Languages
266Requires: %{name} = %{version}-%{release}
267Provides: php-pdo = %{version}-%{release}
268
269%description pdo
270The php-pdo package contains a dynamic shared object that will add
271a database access abstraction layer to PHP.  This module provides
272a common interface for accessing MySQL, PostgreSQL or other
273databases.
274
275#----------------------------------------------------------------------
276%package pgsql
277Summary: A PostgreSQL database module for PHP.
278Group: Development/Languages
279BuildRequires: openssl-devel
280BuildRequires: postgresql-devel
281Requires: %{name} = %{version}-%{release}
282Requires: %{name}-pdo
283Provides: %{name}_database
284Provides: php-pgsql = %{version}-%{release}
285
286%description pgsql
287The php-pgsql package includes a dynamic shared object (DSO) that can
288be compiled in to the Apache Web server to add PostgreSQL database
289support to PHP. PostgreSQL is an object-relational database management
290system that supports almost all SQL constructs. PHP is an
291HTML-embedded scripting language. If you need back-end support for
292PostgreSQL, you should install this package in addition to the main
293php package.
294
295#----------------------------------------------------------------------
296%package snmp
297Summary: A module for PHP applications that query SNMP-managed devices.
298Group: Development/Languages
299BuildRequires: bzip2-devel
300BuildRequires: glibc-devel
301BuildRequires: libelf-devel
302BuildRequires: net-snmp-devel >= 5.1.1
303BuildRequires: popt
304BuildRequires: rpm-devel
305BuildRequires: zlib-devel
306Requires: %{name} = %{version}-%{release}
307Provides: php-snmp = %{version}-%{release}
308
309%description snmp
310The php-snmp package contains a dynamic shared object that will add
311support for querying SNMP devices to PHP.  PHP is an HTML-embeddable
312scripting language. If you need SNMP support for PHP applications, you
313will need to install this package and the php package.
314
315#----------------------------------------------------------------------
316%package sqlite
317Summary: A module for PHP applications that use SQLite databases.
318Group: Development/Languages
319Requires: %{name} = %{version}-%{release}
320Requires: %{name}-pdo
321Provides: %{name}_database
322Provides: php-sqlite = %{version}-%{release}
323
324%description sqlite
325The php-sqlite package includes a dynamic shared object (DSO) that can
326be compiled in to the Apache Web server to add SQLite database support
327to PHP. SQLite is a C library that implements an embeddable SQL database
328engine. Programs that link with the SQLite library can have SQL database
329access without running a separate RDBMS process.
330
331#----------------------------------------------------------------------
332%package xmlrpc
333Summary: A module for PHP applications which use the XML-RPC protocol
334Group: Development/Languages
335Requires: %{name} = %{version}-%{release}
336Provides: php-xmlrpc = %{version}-%{release}
337
338%description xmlrpc
339The php-xmlrpc package contains a dynamic shared object that will add
340support for the XML-RPC protocol to PHP.
341
342#======================================================================
343%prep
344%setup -q -n %{srcname}
345
346%patch33 -p1 -b .phpincludedir
347%patch51 -p1 -b .strict_session
348
349# ad-hoc patch for Vine Linux 4.0
350#%patch1000 -p1 -b .utf8_mime2text
351
352# Prevent %%doc confusion over LICENSE files
353cp Zend/LICENSE Zend/ZEND_LICENSE
354cp Zend/ChangeLog Zend/ZEND_ChangeLog
355cp TSRM/LICENSE TSRM_LICENSE
356cp %{SOURCE20} README.vine
357
358# Source is built three times:
359# once for /usr/bin/php, once for the Apache1 module, once for the Apache2 module.
360mkdir build-cgi build-apache build-apache2
361
362#======================================================================
363%build
364%if %{?_dist_release} != "vl4"
365# Vine Linux 5
366# aclocal workaround - to be improved
367cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4
368
369# Force use of system libtool:
370libtoolize --force --copy
371cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >build/libtool.m4
372%else
373# Vine Linux 4
374# Force use of system libtool:
375libtoolize --force --copy
376cat `aclocal --print-ac-dir`/libtool.m4 >build/libtool.m4
377%endif
378
379# Regenerate configure scripts (patches change config.m4's)
380./buildconf --force
381
382# Install extension modules in %{_libdir}/%{_name}
383export EXTENSION_DIR=%{_libdir}/%{_name}
384
385# Shell function to configure and build a PHP tree.
386build() {
387ln -sf ../configure
388CFLAGS="-fPIC" \
389%configure \
390  --cache-file=../config.cache \
391  --prefix=%{_prefix} \
392  --libdir=%{_libdir}/%{_name} \
393  --with-libdir=%{_lib} \
394  --sysconfdir=%{php_confdir} \
395  --program-suffix=%{majorver} \
396  --enable-safe-mode \
397  --disable-rpath \
398  --enable-bcmath \
399  --enable-calendar \
400  --enable-exif \
401  --enable-ftp \
402  --enable-mbstring \
403  --enable-shmop \
404  --enable-soap \
405  --enable-sockets \
406  --with-sqlite=shared \
407  --enable-sqlite-utf8 \
408  --enable-sysvmsg --enable-sysvsem --enable-sysvshm \
409  --enable-wddx \
410  --enable-inline-optimization \
411  --enable-zend-multibyte \
412  --with-layout=GNU \
413  --with-config-file-path=%{php_confdir} \
414  --with-config-file-scan-dir=%{php_confdir}/php.d \
415  --with-exec-dir=%{_libdir}/%{_name}/bin \
416  --with-openssl \
417  --with-zlib \
418  --with-bz2 \
419  --with-curl \
420  --enable-dba=shared --with-gdbm --with-db4 \
421  --with-gd --with-jpeg-dir=%{_prefix} --with-png-dir=%{_prefix} --with-freetype-dir=%{_prefix} \
422  --with-gettext \
423  --with-gmp \
424  --with-imap=shared --with-imap-ssl \
425%if %{?_dist_release} != "vl4"
426  --with-kerberos \
427%endif
428  --with-ldap=shared \
429  --with-mcrypt=shared,%{_prefix} \
430  --with-mysql=shared,%{_prefix} \
431  --with-mysqli=shared \
432  --with-unixODBC=shared,%{_prefix} \
433  --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,%{_prefix} --with-pdo-mysql=shared,%{_prefix} --with-pdo-pgsql=shared,%{_prefix} --with-pdo-sqlite=shared,%{_prefix} \
434  --with-pgsql=shared \
435  --with-snmp=shared,%{_prefix} \
436  --with-xmlrpc=shared \
437  --with-xsl \
438  %{?_with_pear:--with-pear=%{pear_rootdir}}%{!?_with_pear:--without-pear} \
439  --with-pic \
440  $*
441if test $? != 0; then
442  tail -500 config.log
443  : configure failed
444  exit 1
445fi
446
447make %{?_smp_mflags}
448}
449
450#----------------------------------------------------------------------
451# Build /usr/bin/php{,-cgi}, and all the shared extensions
452pushd build-cgi
453build \
454  --enable-force-cgi-redirect --enable-discard-path \
455  --with-ncurses \
456  --with-readline
457popd
458
459#----------------------------------------------------------------------
460# Build Apache1 module
461pushd build-apache
462build \
463  --with-apxs=%{_sbindir}/apxs
464popd
465
466#----------------------------------------------------------------------
467# Build Apache2 module
468pushd build-apache2
469build \
470  --with-apxs2=%{_bindir}/apxs
471popd
472
473#======================================================================
474%install
475[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
476
477#export PHP_PEAR_SYSCONF_DIR=%{php_confdir}
478#export PHP_PEAR_TEMP_DIR=%{pear_cachedir}
479#export PHP_PEAR_CACHE_DIR=%{buildroot}%{pear_cachedir}
480#export PHP_PEAR_DOWNLOAD_DIR=%{pear_cachedir}
481#export PHP_PEAR_PHP_BIN=%{_bindir}/%{_name}
482
483export PHP_PEAR_SYSCONF_DIR=%{php_confdir}
484export PHP_PEAR_TEMP_DIR=%{buildroot}%{pear_cachedir}
485export PHP_PEAR_CACHE_DIR=%{buildroot}%{pear_cachedir}
486export PHP_PEAR_DOWNLOAD_DIR=%{buildroot}%{pear_cachedir}
487export PHP_PEAR_PHP_BIN=%{buildroot}%{_bindir}/%{_name}
488unset http_proxy
489
490#----------------------------------------------------------------------
491pushd build-cgi
492# Install everything from the CGI SAPI build
493make install INSTALL_ROOT=$RPM_BUILD_ROOT
494#cp $RPM_BUILD_ROOT%{_bindir}/%{_name}{,-cgi}
495# Install the CLI SAPI as /usr/bin/%{_name}
496#make install-cli INSTALL_ROOT=$RPM_BUILD_ROOT
497popd
498
499# Install the default configuration file
500%{__install} -m 755 -d $RPM_BUILD_ROOT%{php_confdir}
501%{__install} -m 644 php.ini-production $RPM_BUILD_ROOT%{php_confdir}/php.ini
502
503# Append php.ini-vine
504cat %{SOURCE21} >> $RPM_BUILD_ROOT%{php_confdir}/php.ini
505# Use correct libdir
506sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{php_confdir}/php.ini
507
508# Remove suffix
509cp $RPM_BUILD_ROOT%{_bindir}/php-config{%{majorver},}
510cp $RPM_BUILD_ROOT%{_bindir}/phpize{%{majorver},}
511%{__install} -m 755 scripts/dev/phpextdist $RPM_BUILD_ROOT%{_bindir}
512cp $RPM_BUILD_ROOT%{_mandir}/man1/php-config{%{majorver},}.1
513cp $RPM_BUILD_ROOT%{_mandir}/man1/phpize{%{majorver},}.1
514
515%if %{with_pear}
516# http://pear.php.net/bugs/bug.php?id=6154
517perl -pi -e 's#s:([0-9]+):(.)(%{buildroot})+#"s:".($1-length($3)).":$2"#eg;' %{buildroot}%{php_confdir}/pear.conf
518
519for cmd in pear peardev pecl; do
520  cp $RPM_BUILD_ROOT%{_bindir}/${cmd}{,%{majorver}}
521done
522%{__install} -m 755 -d $RPM_BUILD_ROOT%{pear_cachedir}
523%endif
524
525# Install cgi/fcgi binaries
526mv $RPM_BUILD_ROOT%{_bindir}/php-cgi%{majorver} $RPM_BUILD_ROOT%{_bindir}/%{_name}-cgi
527
528# Install the Apache1 module, CGI SAPI, config fragment
529%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_moduledir}
530%{__install} -m 755 build-apache/libs/lib%{_name}.so $RPM_BUILD_ROOT%{apache1_moduledir}
531%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_cgidir}
532%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_fcgidir}
533ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache1_cgidir}/%{_name}-cgi
534ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache1_fcgidir}/%{_name}-fcgi
535%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache1_confdir}
536%{__install} -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{apache1_confdir}/%{_name}.conf
537
538# Install the Apache2 module, CGI SAPI, config fragment
539%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache2_moduledir}
540%{__install} -m 755 build-apache2/libs/lib%{_name}.so $RPM_BUILD_ROOT%{apache2_moduledir}
541%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache2_cgidir}
542%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache2_fcgidir}
543ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache2_cgidir}/%{_name}-cgi
544ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache2_fcgidir}/%{_name}-fcgi
545%{__install} -m 755 -d $RPM_BUILD_ROOT%{apache2_confdir}
546%{__install} -m 644 %{SOURCE24} $RPM_BUILD_ROOT%{apache2_confdir}/%{_name}.conf
547
548%{__install} -m 755 -d $RPM_BUILD_ROOT%{php_confdir}/php.d
549%{__install} -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/%{_name}
550# for session.save_path
551%{__install} -m 770 -d $RPM_BUILD_ROOT%{_localstatedir}/%{_name}/session
552# for extension modules
553%{__install} -m 755 -d $RPM_BUILD_ROOT%{_libdir}/%{_name}
554# for --with-exec-dir
555%{__install} -m 755 -d $RPM_BUILD_ROOT%{_libdir}/%{_name}/bin
556
557#----------------------------------------------------------------------
558# Generate files lists and stub .ini files for each subpackage
559for mod in dba imap ldap mcrypt mysql mysqli odbc pgsql snmp sqlite xmlrpc \
560    pdo pdo_odbc pdo_mysql pdo_pgsql pdo_sqlite; do
561    cat > $RPM_BUILD_ROOT%{php_confdir}/php.d/${mod}.ini <<EOF
562; Enable ${mod} extension module
563extension=${mod}.so
564EOF
565    cat > files.${mod} <<EOF
566%attr(0755,root,root) %{_libdir}/%{_name}/${mod}.so
567%config(noreplace) %attr(0644,root,root) %{php_confdir}/php.d/${mod}.ini
568EOF
569done
570
571# append mysqli module to mysql module.
572cat files.mysqli >> files.mysql
573
574# Split out the PDO modules
575cat files.pdo_mysql >> files.mysql
576cat files.pdo_odbc >> files.odbc
577cat files.pdo_pgsql >> files.pgsql
578
579# Package pdo_sqlite with pdo; isolating the sqlite dependency
580# isn't useful at this time since rpm itself requires sqlite.
581cat files.pdo_sqlite >> files.pdo
582
583#----------------------------------------------------------------------
584# Remove unpackaged files
585rm -f $RPM_BUILD_ROOT%{_libdir}/%{_name}/*.a
586
587# Remove irrelevant docs
588rm -f README.{Zeus,QNX,CVS-RULES}
589
590# fix symlink for phar.
591
592%{__rm} -f %{buildroot}%{_bindir}/phar
593%{__ln_s} ./phar.phar %{buildroot}%{_bindir}/phar
594
595# ad-hoc fix for incorrect paths to php5
596for X in pear5 peardev5 pecl5 ; do
597  sed -e 's|%{buildroot}||g' %{buildroot}%{_bindir}/$X \
598        > %{buildroot}%{_bindir}/$X.new
599  mv -f %{buildroot}%{_bindir}/$X.new %{buildroot}%{_bindir}/$X
600  chmod 0755 %{buildroot}%{_bindir}/$X
601done
602
603#----------------------------------------------------------------------
604%post
605update-alternatives --install %{_bindir}/php php %{_bindir}/php%{majorver} %{majorver}0
606
607# fix broken symlink if it's there
608if [ ! -f %{_bindir}/php ] ; then
609  update-alternatives --auto php
610fi
611
612%triggerpostun -- php5 < 5.1.4-0vl1
613update-alternatives --auto php
614
615%preun
616if [ "$1" = 0 ]; then
617  update-alternatives --remove php %{_bindir}/php%{majorver}
618  update-alternatives --auto php
619fi
620
621%post pear
622update-alternatives \
623  --install %{_bindir}/pear     pear    %{_bindir}/pear%{majorver} %{majorver}0 \
624  --slave   %{_bindir}/peardev  peardev %{_bindir}/peardev%{majorver} \
625  --slave   %{_bindir}/pecl     pecl    %{_bindir}/pecl%{majorver}
626
627# fix broken symlink if it's there
628if [ ! -f %{_bindir}/pear ] ; then
629  update-alternatives --auto pear
630fi
631
632%triggerpostun pear -- php5-pear < 5.1.4-0vl1
633update-alternatives --auto pear
634
635%preun pear
636if [ "$1" = "0" ]; then
637  update-alternatives --remove pear %{_bindir}/pear%{majorver}
638  update-alternatives --auto pear
639fi
640
641%post apache
642chown root:apache %{_localstatedir}/%{_name}/session 2>/dev/null || true
643
644%post apache2
645chown root:apache %{_localstatedir}/%{_name}/session 2>/dev/null || true
646
647%clean
648[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
649rm -f files.*
650
651#======================================================================
652%files
653%defattr(-,root,root)
654%doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
655%doc Zend/ZEND_* TSRM_LICENSE
656%doc php.ini-{development,production}
657%doc php.gif
658%{_mandir}/man1/%{_name}.1*
659%config(noreplace) %{php_confdir}/php.ini
660%{_bindir}/%{_name}
661%{_bindir}/%{_name}-cgi
662%{_bindir}/phar
663%{_bindir}/phar.phar
664%dir %{php_confdir}
665%dir %{php_confdir}/php.d
666%dir %{_libdir}/%{_name}
667%dir %{_libdir}/%{_name}/bin
668%dir %{_localstatedir}/%{_name}
669%attr(0770,root,apache) %dir %{_localstatedir}/%{_name}/session
670
671%files devel
672%defattr(-,root,root)
673%{_mandir}/man1/php-config.1*
674%{_mandir}/man1/phpize.1*
675%{_bindir}/php-config
676%{_bindir}/phpize
677%{_bindir}/phpextdist
678%{_includedir}/%{_name}
679%{_libdir}/%{_name}/build
680
681%if %{with_pear}
682%files pear
683%defattr(-,root,root)
684%config %{php_confdir}/pear.conf
685%{_bindir}/pear%{majorver}
686%{_bindir}/peardev%{majorver}
687%{_bindir}/pecl%{majorver}
688%{pear_rootdir}
689%dir %{pear_cachedir}
690%endif
691
692%files apache
693%defattr(-,root,root)
694%config %{apache1_confdir}/%{_name}.conf
695%{apache1_moduledir}/lib%{_name}.so
696%{apache1_cgidir}/%{_name}-cgi
697%{apache1_fcgidir}/%{_name}-fcgi
698
699%files apache2
700%defattr(-,root,root)
701%config %{apache2_confdir}/%{_name}.conf
702%{apache2_moduledir}/lib%{_name}.so
703%{apache2_cgidir}/%{_name}-cgi
704%{apache2_fcgidir}/%{_name}-fcgi
705
706%files dba -f files.dba
707%files imap -f files.imap
708%files ldap -f files.ldap
709%files mcrypt -f files.mcrypt
710%files mysql -f files.mysql
711%files odbc -f files.odbc
712%files pdo -f files.pdo
713%files pgsql -f files.pgsql
714%files snmp -f files.snmp
715%files sqlite -f files.sqlite
716%files xmlrpc -f files.xmlrpc
717
718#======================================================================
719%changelog
720* Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.1-1
721- new upstream release.
722
723* Tue Sep  1 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.3.0-2
724- fix incorrect path in {pear,peardev,pecl}5 ([vine-users:079537])
725
726* Thu Jul  2 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.0-1
727- new upstream release.
728- updated patch51.
729- removed /usr/bin/php5-fcgi.
730
731* Sat Jun 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.10-1
732- new upstream release.
733- updated patch51.
734
735* Tue Jun 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.2.9-6
736- update php.ini
737  - use UTF-8 for default charset and internal_encoding
738
739* Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-5
740- rebuilt with MySQL-shared-5.1.34.
741
742* Sat May 16 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.9-4
743- rebuilt with libc-client-2007e
744- added --with-kerberos option (VineSeed)
745
746* Fri Apr 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.9-3
747- rebuilt with openldap-2.4.11
748
749* Fri Mar 27 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-2
750- rebuilt with net-snmp-5.4.2.1-3 (VineSeed x86_64).
751
752* Thu Mar 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-1
753- new upstream release.
754- wrote specfile in UTF-8.
755
756* Tue May  6 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.6-2
757- move php5-{cgi,fcgi} to %%{_bindir}.
758
759* Tue May  6 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.6-1
760- new upstream release.
761- update %%Patch51.
762
763* Sat Apr 26 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.5-1
764- add FastCGI support.
765
766* Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 5.2.5-0vl5
767- rebuilt with postgresql-8.2.6
768
769* Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 5.2.5-0vl4
770- rebuilt with net-snmp-5.4.1
771
772* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2.5-0vl3
773- for VineSeed: rebuilt with MySQL-5.0.27-0vl7
774
775* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2.5-0vl2
776- rebuilt with MySQL-5.0.27-0vl6
777
778* Fri Nov 23 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.5-0vl1
779- new upstream release.
780
781* Thu Sep 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.4-0vl3
782- rebuilt with postgresql-devel 8.2.5
783
784* Sat Sep 15 2007 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.4-0vl2
785- replaced BuildRequires: libstdc++3-devel with libstdc++34-devel
786
787* Sun Sep  9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.4-0vl1
788- rebuilt for VineSeed
789
790* Tue Sep  4 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.4-0vl0.40
791- new upstream release.
792- update Patch33.
793
794* Thu Jun  7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.3-0vl2
795- rebuilt for VineSeed
796
797* Tue Jun 05 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.3-0vl1
798- new upstream release.
799- fix install script.
800
801* Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.2-0vl5
802- rebuilt with new toolchain (for VineSeed)
803
804* Wed May 16 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl4
805- remove "Provides: php-devel" from devel subpackage
806
807* Mon May 14 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl3
808- fix Source24(php5.conf-apache2)
809
810* Fri May 11 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl2
811- add Provides tag to subpackages.
812
813* Tue May 08 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl1
814- new upstream release.
815- add 'Provides: php = %%{version}-%%{release}' to main package.
816
817* Sun Mar 25 2007 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.1-0vl3
818- added --with-libdir=%%{_lib} configure option
819
820* Mon Feb 26 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.1-0vl2
821- built for VineSeed.
822
823* Fri Feb 16 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.1-0vl1
824- new upstream release.
825- remove unnecessary 'Obsoletes: php-domxml, php-manual'
826
827* Sat Dec 02 2006 Atsushi SHICHI <ats777@gmail.com> 5.2.0-0vl4
828- change session.save_path to /var/php5/session in php.ini-vine <BTS:412>
829- unset http_proxy in %%install
830
831* Tue Nov  7 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.0-0vl3
832- new upstream release.
833
834* Sun Oct 29 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.1.6-0vl6
835- build with MySQL-5.0.27.
836
837* Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.1.6-0vl5
838- build with MySQL-5.0.26.
839- add mysqli module.
840- modify %%BuildRequires 'imap-devel' to 'uw-imap-devel'.
841
842* Sun Oct 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.6-0vl4
843- fixed %triggerpostun section
844- added update-alternatives for checking symlink to %post section
845
846* Sat Oct 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.6-0vl3
847- rebuilt for Vine Linux 4.0 <BTS:289>
848- added Patch1000 for building with uw-imap-2006b
849
850* Mon Sep 11 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.6-0vl2
851- rebuild for VinePlus/4.0
852- change 'BuildRequires: fileutils' to coreutils
853- add 'BuildRequires: libtool-ltdl-devel' to main package
854
855* Fri Aug 25 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.6-0vl1
856- new upstream release
857
858* Wed Aug 23 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.5-0vl1
859- new upstream release
860- fix bug [vine-users:074749]
861-- move php.gif from apache{,2} subpackage to main package
862- fix bug [VineLinux:0070], [VineLinux:0106]
863-- add 'Conflicts: php-devel' to devel subpackage
864-- remove suffix from {php-config,phpize,phpextdist}
865-- add alternatives support for {peardev5,pecl5}
866
867* Mon Jun 19 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.4
868- add 'Requires: %%{name}-pdo' to sqlite subpackage [vine-php:137]
869
870* Sun Jun 18 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.3
871- enable sqlite extension and add sqlite subpackage [vine-users:074695]
872
873* Tue May 30 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.2
874- update Source0
875- change Requires: to PreReq: in apache{,2} subpackages [vine-php:113]
876- fix %%post apache{,2} script
877
878* Tue May 16 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.1
879- fix /etc/httpd/conf.d/php5.conf [VinePlus:02967]
880
881* Sat May 13 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1
882- new upstream release
883- revive apache{,2} subpackage
884- add 'Source24: php.conf-apache2'
885- remove php-dbg, mod_php, phpfi, stronghold-php from Obsoletes
886- fix Requires of main package and dba subpackage
887- remove 'Conflicts: php-apache' from apache subpackage
888- remove 'Conflicts: php-apache2' from apache2 subpackage
889- add %%post apache{,2} script to chown session directory to root:apache
890- modify %%files section
891
892* Sun Apr 30 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.3
893- update to 5.1.3RC3
894- fix %%post script and add %%triggerpostun script
895
896* Sat Apr 08 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.3
897- drop 'Source10: pear.sh'
898- fix 'Source20: README.vine', 'Source21: php.ini-vine', 'Source23: php.conf'
899- add alternatives support
900-- add 'PreReq: alternatives' to main package and pear subpackage
901-- add 'Conflicts: php < 4.4.2-0vl1.1' to main package
902-- add 'Conflicts: php-pear < 4.4.2-0vl1.1' to pear subpackage
903-- add %%post, %%preun scripts
904
905* Wed Apr 05 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.2
906- fix 'Source10: pear.sh'
907- add --sysconfdir=%%{php_confdir} to configure
908
909* Tue Apr 04 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.1
910- add 'Source10: pear.sh' to replace /usr/bin/{pear,peardev,pecl}
911- add 'Patch33: php-5.1.3RC2-phpincludedir.patch'
912- remove 'Conflicts: php, php-*'
913- add 'export PHP_PEAR_SYSCONF_DIR, PHP_PEAR_CACHE_DIR, PHP_PEAR_PHP_BIN'
914  to %%Install section
915  -- move pear.conf to %%{_sysconfdir}/%%{_name}
916  -- add '%%dir %%{pear_cachedir}' to '%%files pear'
917  -- fix php_bin in pear.conf
918- rename phpextdist to phpextdist5
919
920* Fri Mar 31 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2
921- update to 5.1.3RC2
922
923* Mon Mar 20 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.3-0vl0.1
924- new upstream release
925- add Source23: php5.conf
926- drop Patch21: php-4.3.1-odbc.patch
927- drop Patch30: php-4.3.6-dlopen.patch
928- drop Patch32: php-4.3.11-mbfilter.patch
929- apply strict session patch, thanks to Yasuo Ohgaki
930  -- add Patch51: php-5.1.2-session_strict_mode.patch
931  -- add session.use_strict_mode = 1 to php.ini-vine
932- add BuildRequires: autoconf, automake, bison, flex, gcc-c++,
933  readline-devel, sqlite3-devel
934- drop BuildRequires: automake15, expat-devel, unixODBC-devel
935- build with Apache2. Apache1.3 is still able to used by rebuilding
936  with --with apache1
937  -- add Requires: apache2
938  -- merge apache{,2} subpackage into main package
939  -- add Obsoletes: php5-apache, php5-apache2
940- add Requires: autoconf, automake to devel subpackage
941- add dba, pdo subpackage
942- add Requires: php5-pdo to {mysql,odbc,pgsql} subpackage
943- drop BuildRequires: expat-devel from xmlrpc subpackage
944- add --program-suffix=5 to configure
945- add missing files to %%files
946
947* Thu Jan 12 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.2-0vl1
948- new upstream release
949- remove workaround for install-pear-nozlib.phar bug (PHP Bug #35780, PEAR Bug #6154)
950  -- remove Source2: relocate.php
951  -- remove Source10: pear.sh
952  -- remove Source11: pecl.sh
953  -- remove Source12: peardev.sh
954- remove old XSLT extension stuff
955  -- remove BuildRequires: libsablotron0-devel
956  -- remove --enable-xslt, --with-xslt-sablot configure option
957
958* Thu Dec 07 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.1-0vl2
959- add %%{with_test}
960- drop Patch5: php-4.3.3-install.patch
961- drop Patch6: php-5.1.0-tests.patch
962- drop Patch7: php-5.1.0-libtool15.patch
963- drop Patch8: php-5.0.0RC3-miscfix.patch
964- drop Patch10: php-5.1.0-sqlite_m4.patch
965- change BuildPrereq tag to BuildRequires tag
966- add BuildRequires: rpm-devel, popt, bzip2-devel, zlib-devel, glibc-devel
967  to snmp subpackage
968- comment out CFLAGS, LIBS, IMAP_SHARED_LIBADD environment variable settings
969- remove support for FreeType 1.x
970  -- remove BuildRequires: freetype, freetype-devel from main package
971  -- remove --enable-gd-native-ttf, --with-ttf configure option
972- drop --enable-ucd-snmp-hack configure option
973- add workaround for install-pear-nozlib.phar bug
974  -- add Source2: relocate.php
975  -- add Source10: pear.sh
976  -- add Source11: pecl.sh
977  -- add Source12: peardev.sh
978  -- remove include_path entry from vine.ini
979- include phpextdist in devel subpackage again
980- move pear.conf from main package to pear subpackage
981- include pecl, peardev in pear subpackage
982- move php.gif from main package to apache/apache2 subpackage
983  -- fix %%{contentdir}
984- fix typo in %%changelog
985
986* Tue Dec 06 2005 HOTTA Michihide <hotta@net-newbie.com> 5.1.1-0vl1
987- new upstream release
988- drop Patch #4 (php-4.2.2-cxx.patch)
989- change Patch #6 (php-4.3.1-tests.patch) to php-5.1.0-tests.patch
990- change Patch #7 (php-4.3.2-libtool15.patch) to php-5.1.0-libtool15.patch
991- change Patch #10 (php-5.0.5-sqlite_m4.patch) to php-5.1.0-sqlite_m4.patch
992- drop Patch #101 (php-5.0.5-mbfilter.patch)
993- append include_path entry to vine.ini
994
995* Sat Oct 15 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl5
996- rebuild for VineSeedPlus
997
998* Thu Oct 06 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.0.5-0vl4
999- modify Source21: vine.ini
1000
1001* Tue Oct 06 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl3
1002- drop Patch3: php-5.0.5-lib64.patch
1003- drop Patch11: php-5.0.5-phpize_in.patch [VinePlus:02737]
1004- add --libdir=%%{_libdir}/php option to configure [VinePlus:02737]
1005
1006* Tue Oct 04 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl2
1007- add mbfilter.c.patch
1008
1009* Sun Sep 18 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.0.5-0vl1
1010- upstream release
1011- add Source21: vine.ini (additional settings to php.ini-recommened)
1012- add Source22: ltmain.sh.vine
1013- drop Patch2: php-5.0.3-config.patch
1014- fix Patch3: php-5.0.5-lib64.patch
1015- drop Patch9: php-5.0.0RC3-oniguruma.patch
1016- fix Patch10: php-5.0.5-sqlite_m4.patch
1017- add Patch11: php-5.0.5-phpize_in.patch
1018- drop Patch246: php-4.3.6-fixattr.patch
1019- add %%define __libtoolize true
1020- drop %%{_bindir}phpextdist
1021
1022* Fri Jun 17 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 5.0.3-0vl3.2
1023- added a security patch for CAN-2005-0524 and CAN-2005-0525 from SuSE.
1024
1025* Thu May 16 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl3.1
1026- for VinePlus/3.0
1027- add README.vine again
1028- add php-4.3.11-mbfilter.patch for workaround against degrade at 5.0.3
1029- remove veserion specification on BuildPrereq: curl-devel
1030
1031* Fri Feb 25 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl3
1032- drop BuildPrereq: apache2-apr-devel
1033- drop php-4.2.1-ldap-TSRM.patch
1034
1035* Sat Dec 25 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl1
1036- upstream release
1037- drop php-4.3.2-db4.patch
1038- add BuildPrereq: apache2-apr-devel
1039
1040* Mon Oct 18 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.2-0vl1
1041- upstream release
1042- regenerate php5-imap
1043
1044* Fri Aug 13 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.1-0vl1
1045- upstream release
1046
1047* Tue Aug 03 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.0-0vl1
1048- upstream release : many thanks to YOSHIMURA Keitaro <ramsy AT ramix DOT jp>
1049- remove php4_{namazu,kakasi,chasen} (not supported)
1050- drop some patches for 4.3.x
1051- Build fix for oniguruma(re_registers dups)
1052- remove domxml (updated to libxml2)
1053- add Conflicts: php, php-*
1054- add php-5.0.0-authuser.patch (BUG#29129)
1055
1056* Thu Jul 15 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.8-0vl1
1057- upstream release
1058- add BuildPrereq: freetype
1059
1060* Sun Jul 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3.7-0vl5
1061- remove explicit buildprereq to build-essential
1062- build apache2 module
1063  split apache1/2 module to php-apache/php-apache2
1064  thanks to jax <jax AT morejams DOT no-ip DOT com>
1065- add Obsoletes: php < %%{version}-%%{release} in php-apache sub-package
1066  for upgrade.
1067
1068* Wed Jul 07 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl4
1069- add Obsoletes: php-imap, php-manual
1070
1071* Sat Jun 26 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.3.7-0vl3
1072- enable mcrypt module.
1073
1074* Mon Jun 07 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl2
1075- fix bug #28385 <http://bugs.php.net/bug.php?id=28385>
1076
1077* Fri Jun 04 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl1
1078- upstream release
1079
1080* Wed May 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.6-0vl2
1081- rebuild with namazu-2.0.13
1082
1083* Fri Apr 30 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.6-0vl1
1084- upstream release
1085
1086* Mon Mar 15 2004 Tomoya TAKA <taka@vinelinux.org> 4.3.4-0vl2
1087- fix location of session save path, %%{_localstatedir} is defined as
1088  /var/lib in Vine's rpm
1089
1090* Sat Feb 21 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.4-0vl1
1091- upstream release
1092- sync to fedora(php-4.3.4-7)
1093- drop BuildRequires : aspell
1094- add workaround for inconsistent dependency of php-devel
1095- drop --enable-versioning to prevent ext modules loading error
1096
1097* Thu Feb 05 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.2-0vl4
1098- rebuild with new toolchains (and resolved dependancy about libxslt)
1099- added patch7 to build with libtool-1.5
1100- added patch100 to build newest freetype2 library
1101- force to use automake-1.5
1102- added BuildPrereq: curl-devel, automake15
1103- fixed BuildRequires of php-snmp: net-snmp-devel
1104
1105* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl3
1106- add README.vine
1107
1108* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl2
1109- install sapi/cgi/php as php-cgi, sapi/cli/php as php
1110
1111* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl1
1112- upstream release (sync to rawhide)
1113- add printf patch, PEAR_Registry patch etc.
1114- drop package php-manual
1115
1116* Fri Jan 24 2003 HOTTA Michihide <hotta@net-newbie.com> 4.2.3-0vl3
1117- add zend_highlight.c-patch
1118- add -DHAVE_PQESCAPE to build_ext pgsql
1119
1120* Wed Jan 22 2003 MACHINO Satoshi <machino@vinelinux.org> 4.2.3-0vl2
1121- rebuild against gmp-4.1 and sablotron-0.97
1122
1123* Mon Sep 9 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.3-0vl1
1124- for VineSeedPlus
1125  -- Updated to 4.2.3
1126  -- added php-4.2.3-mbstr-20020908-2.patch
1127
1128* Sun Aug 18 2002 Rui HIROKAWA <hirokawa@php.gr.jp> 4.2.2-0vl3
1129- applied php-4.2.2-mb_output_handler.patch to enable output encoding
1130for text/hdml.     
1131- applied php-4.2.2-mb-decode.patch to fix decode problem of GET parameters.
1132- Patch to fix a problem where, given multiple cookies to set, only the last one would be made (#67853)
1133
1134* Tue Jul 24 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.2-0vl2
1135- for VineSeedPlus
1136  -- applied php-4.2.2-multibyte.patch.gz which obsolets 4.2.1's
1137  -- dropped --enable-trans-sid configure option which is no longer meaningful
1138
1139* Tue Jul 23 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.2-0vl1
1140- for VineSeedPlus
1141  -- Updated to 4.2.2
1142  -- dropped domxml.patch (merged into original)
1143
1144* Fri Jul 05 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.1-0vl8
1145- for VineSeedPlus
1146  -- added i18n patch by Fujimoto
1147  -- dropped php4_mbregex extention (merged into original)
1148
1149* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl7
1150- added gmp support
1151- for VineSeedPlus
1152
1153* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl6
1154- for VineSeedPlus
1155        -- added xslt support
1156       
1157* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl5
1158- added expat-devel in BuildPreReq
1159
1160* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl4
1161- added mail functions
1162- added postfix in BuildPreReq
1163- updated manual_en(03-Jun-2002)
1164- updated manual_ja(29-May-2002)
1165- for VinePlus
1166        -- dropped xslt support
1167
1168* Thu May 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl3
1169- for VineSeed Plus
1170- added xslt support
1171        -- added enable-xslt, with-xslt-sablot, with-dom-xslt
1172        -- added BuildPrereq: libxslt-devel, libsablotron0-devel
1173
1174* Thu May 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl2
1175- for VinePlus 2.5
1176- added php.in-dist.patch
1177
1178* Wed May 15 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl1
1179- updated php-4.2.1
1180- updated php_manual_en
1181- dropped reg.patch
1182- modified configured option
1183  -- added --with-dom, --with-bz2, --with-png-dir, --with-expat-dir
1184
1185* Thu May 09 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-99vl1
1186- updated php-4.2.1RC1
1187- fixed ereg_replace patch (4.2.1-reg.patch)
1188
1189* Thu May 09 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-0vl2
1190- added ereg_replace patch (4.2.0-reg.patch)
1191- updated manual(en, ja)
1192
1193* Thu Apr 30 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-0vl1
1194- updated php-4.2.0
1195
1196* Fri Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1.2-0vl1
1197- updated php-4.1.2
1198- updated php4_mbregex-1.3.1
1199- updated php4_namazu-2.1.0
1200- updated php4_kakasi-0.3.0
1201- REMOVED php4_iconv
1202- fixed patch
1203        -- added domxml.patch
1204        -- dropped old patches
1205
1206* Mon Dec  3 2001 Jun Nishii <jun@vinelinux.org>
1207- 4.0.6-5vl3
1208- added --enable-mbstr-enc-trans
1209
1210* Wed Aug 22 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
1211- 4.0.6-5vl2
1212- fix contentdir
1213
1214* Tue Aug 21 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
1215- 4.0.6-5vl1
1216- add configure options for Vine
1217- add ldap, mysql and odbc modules.
1218
1219* Fri Aug 10 2001 Tim Powers <timp@redhat.com>
1220- only english in php-manuals, space constraints :P
1221
1222* Thu Aug  9 2001 Nalin Dahyabhai <nalin@redhat.com>
1223- include %{_libdir}/%{name}/build instead of %{_libdir}/%{name}4/build (#51141)
1224
1225* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com>
1226- add build deps on pam-devel, pspell-devel, gdbm-devel (#49878)
1227- add some conditional logic if %%{oracle} is defined (from Antony Nguyen)
1228
1229* Mon Jul  9 2001 Nalin Dahyabhai <nalin@redhat.com>
1230- don't obsolete subpackages we ended up not merging
1231
1232* Mon Jul  2 2001 Nalin Dahyabhai <nalin@redhat.com>
1233- cleanups
1234- add manuals in multiple languages (using ko instead of kr for Korean)
1235- merge all of the manuals into a single -manual subpackage
1236- use libtool to install binary files which libtool builds
1237- don't strip any binaries; let the buildroot policies take care of it
1238
1239* Thu Jun 28 2001 Nalin Dahyabhai <nalin@redhat.com>
1240- update to 4.0.6 (preliminary)
1241
1242* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
1243- enable ttf in the build because the gd support needs it
1244- add -lfreetype to the LIBS for the same reason
1245
1246* Wed Jun  6 2001 Nalin Dahyabhai <nalin@redhat.com>
1247- rebuild in new environment
1248
1249* Wed May 16 2001 Nalin Dahyabhai <nalin@redhat.com>
1250- actually use two source trees to build things
1251- add %%post and %%postun scriptlets to run ldconfig
1252
1253* Tue May 15 2001 Nalin Dahyabhai <nalin@redhat.com>
1254- quote part of the AC_ADD_LIBRARY macro to make newer autoconf happy
1255
1256* Mon May 14 2001 Nalin Dahyabhai <nalin@redhat.com>
1257- fix error in %%install
1258- depend on the imap-devel which supplies linkage.c
1259- modify trigger to disable php versions less than 4.0.0 instead of 3.0.15
1260- enable DOM support via libxml2 (suggested by Sylvain Berg
1261- build the OpenSSL extension again
1262
1263* Mon May  7 2001 Nalin Dahyabhai <nalin@redhat.com>
1264- enable pspell extensions
1265- update to 4.0.5
1266
1267* Mon Apr 30 2001 Nalin Dahyabhai <nalin@redhat.com>
1268- build the ODBC extension
1269
1270* Mon Apr 30 2001 Bill Nottingham <notting@redhat.com>
1271- build on ia64
1272
1273* Fri Mar  2 2001 Nalin Dahyabhai <nalin@redhat.com>
1274- rebuild in new environment
1275
1276* Fri Feb 23 2001 Nalin Dahyabhai <nalin@redhat.com>
1277- obsolete the old phpfi (PHP 2.x) package
1278
1279* Thu Feb  8 2001 Nalin Dahyabhai <nalin@redhat.com>
1280- add a commented-out curl extension to the config file (part of #24933)
1281- fix the PEAR-installation-directory-not-being-eval'ed problem (#24938)
1282- find the right starting point for multipart form data (#24933)
1283
1284* Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
1285- aaarrgh, the fix breaks something else, aaarrgh; revert it (#24933)
1286- terminate variable names at the right place (#24933)
1287
1288* Sat Jan 20 2001 Nalin Dahyabhai <nalin@redhat.com>
1289- tweak the fix some more
1290
1291* Thu Jan 18 2001 Nalin Dahyabhai <nalin@redhat.com>
1292- extract stas's fix for quoting problems from CVS for testing
1293- tweak the fix, ask the PHP folks about the tweak
1294- tweak the fix some more
1295
1296* Wed Jan 17 2001 Nalin Dahyabhai <nalin@redhat.com>
1297- merge mod_php into the main php package (#22906)
1298
1299* Fri Dec 29 2000 Nalin Dahyabhai <nalin@redhat.com>
1300- try to fix a quoting problem
1301
1302* Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
1303- update to 4.0.4 to get a raft of bug fixes
1304- enable sockets
1305- enable wddx
1306
1307* Fri Nov  3 2000 Nalin Dahyabhai <nalin@redhat.com>
1308- rebuild in updated environment
1309
1310* Thu Nov  2 2000 Nalin Dahyabhai <nalin@redhat.com>
1311- add more commented-out modules to the default config file (#19276)
1312
1313* Wed Nov  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1314- fix not-using-gd problem (#20137)
1315
1316* Tue Oct 17 2000 Nalin Dahyabhai <nalin@redhat.com>
1317- update to 4.0.3pl1 to get some bug fixes
1318
1319* Sat Oct 14 2000 Nalin Dahyabhai <nalin@redhat.com>
1320- build for errata
1321
1322* Wed Oct 11 2000 Nalin Dahyabhai <nalin@redhat.com>
1323- update to 4.0.3 to get security fixes integrated
1324- patch around problems configuring without Oracle support
1325- add TSRM to include path when building individual modules
1326
1327* Fri Sep  8 2000 Nalin Dahyabhai <nalin@redhat.com>
1328- rebuild in new environment
1329- enable OpenSSL support
1330
1331* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1332- update to 4.0.2, and move the peardir settings to configure (#17171)
1333- require %%{version}-%%{release} for subpackages
1334- add db2-devel and db3-devel prereqs (#17168)
1335
1336* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
1337- rebuild in new environment (new imap-devel)
1338
1339* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1340- fix summary and descriptions to match the specspo package
1341
1342* Wed Aug  9 2000 Nalin Dahyabhai <nalin@redhat.com>
1343- hard-code the path to apxs in build_ext() (#15799)
1344
1345* Tue Aug  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1346- add "." to the include path again, which is the default
1347
1348* Wed Jul 19 2000 Nalin Dahyabhai <nalin@redhat.com>
1349- enable PEAR and add it to the include path
1350- add the beginnings of a -devel subpackage
1351
1352* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1353- automatic rebuild
1354
1355* Fri Jul  7 2000 Nalin Dahyabhai <nalin@redhat.com>
1356- tweaks to post and postun from Bill Peck
1357
1358* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1359- fixes from Nils for building the MySQL client
1360- change back to requiring %{version} instead of %{version}-%{release}
1361
1362* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1363- update to 4.0.1pl2
1364- enable MySQL client
1365- move the php.ini file to %{_sysconfdir}
1366
1367* Fri Jun 30 2000 Nils Philippsen <nils@redhat.de>
1368- build_ext defines HAVE_PGSQL so pgsql.so in fact contains symbols
1369- post/un scripts tweak php.ini correctly now
1370
1371* Thu Jun 28 2000 Nalin Dahyabhai <nalin@redhat.com>
1372- update to 4.0.1
1373- refresh manual
1374
1375* Tue Jun 26 2000 Nalin Dahyabhai <nalin@redhat.com>
1376- rebuild against new krb5 package
1377
1378* Mon Jun 19 2000 Nalin Dahyabhai <nalin@redhat.com>
1379- rebuild against new db3 package
1380
1381* Sat Jun 17 2000 Nalin Dahyabhai <nalin@redhat.com>
1382- Fix syntax error in post and preun scripts.
1383- Disable IMAP, LDAP, PgSql in the standalone version because it picks up
1384  the extensions.
1385
1386* Fri Jun 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1387- Unexclude the Sparc arch.
1388- Exclude the ia64 arch until we get a working Postgres build.
1389- Stop stripping extensions as aggressively.
1390- Start linking the IMAP module to libpam again.
1391- Work around extension loading problems.
1392- Reintroduce file-editing post and preun scripts for the mod_php extensions
1393  until we come up with a better way to do it.
1394
1395* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
1396- ExcludeArch: sparc for now
1397
1398* Sun Jun  4 2000 Nalin Dahyabhai <nalin@redhat.com>
1399- add Obsoletes: phpfi, because their content handler names are the same
1400- add standalone binary, rename module packages to mod_php
1401- FHS fixes
1402
1403* Tue May 23 2000 Nalin Dahyabhai <nalin@redhat.com>
1404- change license from "GPL" to "PHP"
1405- add URL: tag
1406- disable mysql support by default (license not specified)
1407
1408* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
1409- update to PHP 4.0.0
1410- nuke the -mysql subpackage (php comes with a bundled mysql client lib now)
1411
1412* Tue May 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1413- link IMAP module against GSS-API and PAM to get dependencies right
1414- change most of the Requires to Prereqs, because the post edits config files
1415- move the PHP *Apache* module back to the right directory
1416- fix broken postun trigger that broke the post
1417- change most of the postuns to preuns in case php gets removed before subpkgs
1418
1419* Thu May 11 2000 Trond Eivind Glomsr <teg@redhat.com>
1420- rebuilt against new postgres libraries
1421
1422* Tue May 09 2000 Preston Brown <pbrown@redhat.com>
1423- php3 .so modules moved to /usr/lib/php3 from /usr/lib/apache (was incorrect)
1424
1425* Mon Apr 10 2000 Nalin Dahyabhai <nalin@redhat.com>
1426- make subpackages require php = %{version} (bug #10671)
1427
1428* Thu Apr 06 2000 Nalin Dahyabhai <nalin@redhat.com>
1429- update to 3.0.16
1430
1431* Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com>
1432- fixed the post script to work when upgrading a package
1433- add triggere to fix the older packages
1434
1435* Tue Feb 29 2000 Nalin Dahyabhai <nalin@redhat.com>
1436- update to 3.0.15
1437- add build-time dependency for openldap-devel
1438- enable db,ftp,shm,sem support to fix bug #9648
1439
1440* Fri Feb 25 2000 Nalin Dahyabhai <nalin@redhat.com>
1441- add dependency for imap subpackage
1442- rebuild against Apache 1.3.12
1443
1444* Thu Feb 24 2000 Preston Brown <pbrown@redhat.com>
1445- don't include old, outdated manual.  package one from the php distribution.
1446
1447* Tue Feb 01 2000 Cristian Gafton <gafton@redhat.com>
1448- rebuild to fix dependency problem
1449
1450* Fri Jan 14 2000 Preston Brown <pbrown@redhat.com>
1451- added commented out mysql module, thanks to Jason Duerstock
1452  (jason@sdi.cluephone.com). Uncomment to build if you have mysql installed.
1453
1454* Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
1455- rely on imap-devel, don't include imap in src.rpm (#5099).
1456- xml enabled (#5393)
1457
1458* Tue Nov 02 1999 Preston Brown <pborwn@redhat.com>
1459- added post/postun sections to modify httpd.conf (#5259)
1460- removed old obsolete faq and gif (#5260)
1461- updated manual.tar.gz package (#5261)
1462
1463* Thu Oct 07 1999 Matt Wilson <msw@redhat.com>
1464- rebuilt for sparc glibc brokenness
1465
1466* Fri Sep 24 1999 Preston Brown <pbrown@redhat.com>
1467- --with-apxs --> --with-apxs=/usr/sbin/apxs (# 5094)
1468- ldap support (# 5097)
1469
1470* Thu Sep 23 1999 Preston Brown <pbrown@redhat.com>
1471- fix cmdtuples for postgresql, I had it slightly wrong
1472
1473* Tue Aug 31 1999 Bill Nottingham <notting@redhat.com>
1474- subpackages must obsolete old stuff...
1475
1476* Sun Aug 29 1999 Preston Brown <pbrown@redhat.com>
1477- added -DHAVE_PGCMDTUPLES for postgresql module (bug # 4767)
1478
1479* Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
1480- name change to php to follow real name of package
1481- fix up references to php3 to refer to php
1482- upgrade to 3.0.12
1483- fixed typo in pgsql postun script (bug # 4686)
1484
1485* Mon Jun 14 1999 Preston Brown <pbrown@redhat.com>
1486- upgraded to 3.0.9
1487- fixed postgresql module and made separate package
1488- separated manual into separate documentation package
1489
1490* Mon May 24 1999 Preston Brown <pbrown@redhat.com>
1491- upgraded to 3.0.8, which fixes problems with glibc 2.1.
1492- took some ideas grom Gomez's RPM.
1493
1494* Tue May 04 1999 Preston Brown <pbrown@redhat.com>
1495- hacked in imap support in an ugly way until imap gets an official
1496  shared library implementation
1497
1498* Fri Apr 16 1999 Preston Brown <pbrown@redhat.com>
1499- pick up php3.ini
1500
1501* Wed Mar 24 1999 Preston Brown <pbrown@redhat.com>
1502- build against apache 1.3.6
1503
1504* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
1505- auto rebuild in the new build environment (release 2)
1506
1507* Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
1508- upgraded to 3.0.7.
1509
1510* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
1511- Injected new description and group.
1512
1513* Sun Feb 07 1999 Preston Brown <pbrown@redhat.com>
1514- upgrade to php 3.0.6, built against apache 1.3.4
1515
1516* Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
1517- rebuild for apache 1.3.3
1518
1519* Thu Oct 08 1998 Preston Brown <pbrown@redhat.com>
1520- updated to 3.0.5, fixes nasty bugs in 3.0.4.
1521
1522* Sun Sep 27 1998 Cristian Gafton <gafton@redhat.com>
1523- updated to 3.0.4 and recompiled for apache 1.3.2
1524
1525* Thu Sep 03 1998 Preston Brown <pbrown@redhat.com>
1526- improvements; builds with apache-devel package installed.
1527
1528* Tue Sep 01 1998 Preston Brown <pbrown@redhat.com>
1529- Made initial cut for PHP3.
Note: See TracBrowser for help on using the repository browser.