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

Revision 2539, 53.7 KB checked in by tomop, 13 years ago (diff)

new upstream release.

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