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

Revision 3408, 54.3 KB checked in by inagaki, 13 years ago (diff)

updated: apr-util, gambas2, gambas3, openldap, php5, qt, qt4, unixODBC

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