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

Revision 1772, 52.8 KB checked in by inagaki, 14 years ago (diff)

update: kdelibs, meanwhile, php5

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