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

Revision 3425, 54.4 KB checked in by owa, 13 years ago (diff)

rebuild with postgresql-9.0.3

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: 3%{_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* Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 5.3.6-3
744- rebuilt with postgresql-9.0.3
745
746* Sat Apr  9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.3.6-2
747- new upstream release
748- dropt apache subpackage on VineSeed (apache1 will be orphaned on Vine 6)
749
750* Mon Mar 28 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.6-1
751- new upstream release.
752- added tags "Vendor:", "Distribution:" and "Packager:".
753
754* Mon Jan 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.5-1
755- new upstream release.
756
757* Fri Dec 10 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.4-1
758- new upstream release.
759- added a sub-package "php5-intl".
760
761* Sun Sep  5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.3.3-1
762- new upstream release
763
764* Fri Nov 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.1-1
765- new upstream release.
766
767* Tue Sep  1 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.3.0-2
768- fix incorrect path in {pear,peardev,pecl}5 ([vine-users:079537])
769
770* Thu Jul  2 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.0-1
771- new upstream release.
772- updated patch51.
773- removed /usr/bin/php5-fcgi.
774
775* Sat Jun 20 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.10-1
776- new upstream release.
777- updated patch51.
778
779* Tue Jun 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.2.9-6
780- update php.ini
781  - use UTF-8 for default charset and internal_encoding
782
783* Thu May 21 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-5
784- rebuilt with MySQL-shared-5.1.34.
785
786* Sat May 16 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.9-4
787- rebuilt with libc-client-2007e
788- added --with-kerberos option (VineSeed)
789
790* Fri Apr 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.9-3
791- rebuilt with openldap-2.4.11
792
793* Fri Mar 27 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-2
794- rebuilt with net-snmp-5.4.2.1-3 (VineSeed x86_64).
795
796* Thu Mar 19 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.9-1
797- new upstream release.
798- wrote specfile in UTF-8.
799
800* Tue May  6 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.6-2
801- move php5-{cgi,fcgi} to %%{_bindir}.
802
803* Tue May  6 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.6-1
804- new upstream release.
805- update %%Patch51.
806
807* Sat Apr 26 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.5-1
808- add FastCGI support.
809
810* Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 5.2.5-0vl5
811- rebuilt with postgresql-8.2.6
812
813* Sun Jan 06 2008 Shu KONNO <owa@bg.wakwak.com> 5.2.5-0vl4
814- rebuilt with net-snmp-5.4.1
815
816* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2.5-0vl3
817- for VineSeed: rebuilt with MySQL-5.0.27-0vl7
818
819* Thu Dec 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.2.5-0vl2
820- rebuilt with MySQL-5.0.27-0vl6
821
822* Fri Nov 23 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.5-0vl1
823- new upstream release.
824
825* Thu Sep 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.4-0vl3
826- rebuilt with postgresql-devel 8.2.5
827
828* Sat Sep 15 2007 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.4-0vl2
829- replaced BuildRequires: libstdc++3-devel with libstdc++34-devel
830
831* Sun Sep  9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.4-0vl1
832- rebuilt for VineSeed
833
834* Tue Sep  4 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.4-0vl0.40
835- new upstream release.
836- update Patch33.
837
838* Thu Jun  7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.3-0vl2
839- rebuilt for VineSeed
840
841* Tue Jun 05 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.3-0vl1
842- new upstream release.
843- fix install script.
844
845* Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.2.2-0vl5
846- rebuilt with new toolchain (for VineSeed)
847
848* Wed May 16 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl4
849- remove "Provides: php-devel" from devel subpackage
850
851* Mon May 14 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl3
852- fix Source24(php5.conf-apache2)
853
854* Fri May 11 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl2
855- add Provides tag to subpackages.
856
857* Tue May 08 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.2-0vl1
858- new upstream release.
859- add 'Provides: php = %%{version}-%%{release}' to main package.
860
861* Sun Mar 25 2007 NAKAMURA Kenta <kenta@vinelinux.org> 5.2.1-0vl3
862- added --with-libdir=%%{_lib} configure option
863
864* Mon Feb 26 2007 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.1-0vl2
865- built for VineSeed.
866
867* Fri Feb 16 2007 Atsushi SHICHI <ats777@gmail.com> 5.2.1-0vl1
868- new upstream release.
869- remove unnecessary 'Obsoletes: php-domxml, php-manual'
870
871* Sat Dec 02 2006 Atsushi SHICHI <ats777@gmail.com> 5.2.0-0vl4
872- change session.save_path to /var/php5/session in php.ini-vine <BTS:412>
873- unset http_proxy in %%install
874
875* Tue Nov  7 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.2.0-0vl3
876- new upstream release.
877
878* Sun Oct 29 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.1.6-0vl6
879- build with MySQL-5.0.27.
880
881* Fri Oct 27 2006 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.1.6-0vl5
882- build with MySQL-5.0.26.
883- add mysqli module.
884- modify %%BuildRequires 'imap-devel' to 'uw-imap-devel'.
885
886* Sun Oct 22 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.6-0vl4
887- fixed %triggerpostun section
888- added update-alternatives for checking symlink to %post section
889
890* Sat Oct 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.1.6-0vl3
891- rebuilt for Vine Linux 4.0 <BTS:289>
892- added Patch1000 for building with uw-imap-2006b
893
894* Mon Sep 11 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.6-0vl2
895- rebuild for VinePlus/4.0
896- change 'BuildRequires: fileutils' to coreutils
897- add 'BuildRequires: libtool-ltdl-devel' to main package
898
899* Fri Aug 25 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.6-0vl1
900- new upstream release
901
902* Wed Aug 23 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.5-0vl1
903- new upstream release
904- fix bug [vine-users:074749]
905-- move php.gif from apache{,2} subpackage to main package
906- fix bug [VineLinux:0070], [VineLinux:0106]
907-- add 'Conflicts: php-devel' to devel subpackage
908-- remove suffix from {php-config,phpize,phpextdist}
909-- add alternatives support for {peardev5,pecl5}
910
911* Mon Jun 19 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.4
912- add 'Requires: %%{name}-pdo' to sqlite subpackage [vine-php:137]
913
914* Sun Jun 18 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.3
915- enable sqlite extension and add sqlite subpackage [vine-users:074695]
916
917* Tue May 30 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.2
918- update Source0
919- change Requires: to PreReq: in apache{,2} subpackages [vine-php:113]
920- fix %%post apache{,2} script
921
922* Tue May 16 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1.1
923- fix /etc/httpd/conf.d/php5.conf [VinePlus:02967]
924
925* Sat May 13 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.4-0vl1
926- new upstream release
927- revive apache{,2} subpackage
928- add 'Source24: php.conf-apache2'
929- remove php-dbg, mod_php, phpfi, stronghold-php from Obsoletes
930- fix Requires of main package and dba subpackage
931- remove 'Conflicts: php-apache' from apache subpackage
932- remove 'Conflicts: php-apache2' from apache2 subpackage
933- add %%post apache{,2} script to chown session directory to root:apache
934- modify %%files section
935
936* Sun Apr 30 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.3
937- update to 5.1.3RC3
938- fix %%post script and add %%triggerpostun script
939
940* Sat Apr 08 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.3
941- drop 'Source10: pear.sh'
942- fix 'Source20: README.vine', 'Source21: php.ini-vine', 'Source23: php.conf'
943- add alternatives support
944-- add 'PreReq: alternatives' to main package and pear subpackage
945-- add 'Conflicts: php < 4.4.2-0vl1.1' to main package
946-- add 'Conflicts: php-pear < 4.4.2-0vl1.1' to pear subpackage
947-- add %%post, %%preun scripts
948
949* Wed Apr 05 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.2
950- fix 'Source10: pear.sh'
951- add --sysconfdir=%%{php_confdir} to configure
952
953* Tue Apr 04 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2.1
954- add 'Source10: pear.sh' to replace /usr/bin/{pear,peardev,pecl}
955- add 'Patch33: php-5.1.3RC2-phpincludedir.patch'
956- remove 'Conflicts: php, php-*'
957- add 'export PHP_PEAR_SYSCONF_DIR, PHP_PEAR_CACHE_DIR, PHP_PEAR_PHP_BIN'
958  to %%Install section
959  -- move pear.conf to %%{_sysconfdir}/%%{_name}
960  -- add '%%dir %%{pear_cachedir}' to '%%files pear'
961  -- fix php_bin in pear.conf
962- rename phpextdist to phpextdist5
963
964* Fri Mar 31 2006 Atsushi SHICHI <ats777@gmail.com> 5.1.3-0vl0.2
965- update to 5.1.3RC2
966
967* Mon Mar 20 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.3-0vl0.1
968- new upstream release
969- add Source23: php5.conf
970- drop Patch21: php-4.3.1-odbc.patch
971- drop Patch30: php-4.3.6-dlopen.patch
972- drop Patch32: php-4.3.11-mbfilter.patch
973- apply strict session patch, thanks to Yasuo Ohgaki
974  -- add Patch51: php-5.1.2-session_strict_mode.patch
975  -- add session.use_strict_mode = 1 to php.ini-vine
976- add BuildRequires: autoconf, automake, bison, flex, gcc-c++,
977  readline-devel, sqlite3-devel
978- drop BuildRequires: automake15, expat-devel, unixODBC-devel
979- build with Apache2. Apache1.3 is still able to used by rebuilding
980  with --with apache1
981  -- add Requires: apache2
982  -- merge apache{,2} subpackage into main package
983  -- add Obsoletes: php5-apache, php5-apache2
984- add Requires: autoconf, automake to devel subpackage
985- add dba, pdo subpackage
986- add Requires: php5-pdo to {mysql,odbc,pgsql} subpackage
987- drop BuildRequires: expat-devel from xmlrpc subpackage
988- add --program-suffix=5 to configure
989- add missing files to %%files
990
991* Thu Jan 12 2006 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.2-0vl1
992- new upstream release
993- remove workaround for install-pear-nozlib.phar bug (PHP Bug #35780, PEAR Bug #6154)
994  -- remove Source2: relocate.php
995  -- remove Source10: pear.sh
996  -- remove Source11: pecl.sh
997  -- remove Source12: peardev.sh
998- remove old XSLT extension stuff
999  -- remove BuildRequires: libsablotron0-devel
1000  -- remove --enable-xslt, --with-xslt-sablot configure option
1001
1002* Thu Dec 07 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.1.1-0vl2
1003- add %%{with_test}
1004- drop Patch5: php-4.3.3-install.patch
1005- drop Patch6: php-5.1.0-tests.patch
1006- drop Patch7: php-5.1.0-libtool15.patch
1007- drop Patch8: php-5.0.0RC3-miscfix.patch
1008- drop Patch10: php-5.1.0-sqlite_m4.patch
1009- change BuildPrereq tag to BuildRequires tag
1010- add BuildRequires: rpm-devel, popt, bzip2-devel, zlib-devel, glibc-devel
1011  to snmp subpackage
1012- comment out CFLAGS, LIBS, IMAP_SHARED_LIBADD environment variable settings
1013- remove support for FreeType 1.x
1014  -- remove BuildRequires: freetype, freetype-devel from main package
1015  -- remove --enable-gd-native-ttf, --with-ttf configure option
1016- drop --enable-ucd-snmp-hack configure option
1017- add workaround for install-pear-nozlib.phar bug
1018  -- add Source2: relocate.php
1019  -- add Source10: pear.sh
1020  -- add Source11: pecl.sh
1021  -- add Source12: peardev.sh
1022  -- remove include_path entry from vine.ini
1023- include phpextdist in devel subpackage again
1024- move pear.conf from main package to pear subpackage
1025- include pecl, peardev in pear subpackage
1026- move php.gif from main package to apache/apache2 subpackage
1027  -- fix %%{contentdir}
1028- fix typo in %%changelog
1029
1030* Tue Dec 06 2005 HOTTA Michihide <hotta@net-newbie.com> 5.1.1-0vl1
1031- new upstream release
1032- drop Patch #4 (php-4.2.2-cxx.patch)
1033- change Patch #6 (php-4.3.1-tests.patch) to php-5.1.0-tests.patch
1034- change Patch #7 (php-4.3.2-libtool15.patch) to php-5.1.0-libtool15.patch
1035- change Patch #10 (php-5.0.5-sqlite_m4.patch) to php-5.1.0-sqlite_m4.patch
1036- drop Patch #101 (php-5.0.5-mbfilter.patch)
1037- append include_path entry to vine.ini
1038
1039* Sat Oct 15 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl5
1040- rebuild for VineSeedPlus
1041
1042* Thu Oct 06 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.0.5-0vl4
1043- modify Source21: vine.ini
1044
1045* Tue Oct 06 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl3
1046- drop Patch3: php-5.0.5-lib64.patch
1047- drop Patch11: php-5.0.5-phpize_in.patch [VinePlus:02737]
1048- add --libdir=%%{_libdir}/php option to configure [VinePlus:02737]
1049
1050* Tue Oct 04 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.5-0vl2
1051- add mbfilter.c.patch
1052
1053* Sun Sep 18 2005 Atsushi SHICHI <ats7@a.email.ne.jp> 5.0.5-0vl1
1054- upstream release
1055- add Source21: vine.ini (additional settings to php.ini-recommened)
1056- add Source22: ltmain.sh.vine
1057- drop Patch2: php-5.0.3-config.patch
1058- fix Patch3: php-5.0.5-lib64.patch
1059- drop Patch9: php-5.0.0RC3-oniguruma.patch
1060- fix Patch10: php-5.0.5-sqlite_m4.patch
1061- add Patch11: php-5.0.5-phpize_in.patch
1062- drop Patch246: php-4.3.6-fixattr.patch
1063- add %%define __libtoolize true
1064- drop %%{_bindir}phpextdist
1065
1066* Fri Jun 17 2005 IKEDA Katsumi <ikeda@webmasters.gr.jp> 5.0.3-0vl3.2
1067- added a security patch for CAN-2005-0524 and CAN-2005-0525 from SuSE.
1068
1069* Thu May 16 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl3.1
1070- for VinePlus/3.0
1071- add README.vine again
1072- add php-4.3.11-mbfilter.patch for workaround against degrade at 5.0.3
1073- remove veserion specification on BuildPrereq: curl-devel
1074
1075* Fri Feb 25 2005 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl3
1076- drop BuildPrereq: apache2-apr-devel
1077- drop php-4.2.1-ldap-TSRM.patch
1078
1079* Sat Dec 25 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.3-0vl1
1080- upstream release
1081- drop php-4.3.2-db4.patch
1082- add BuildPrereq: apache2-apr-devel
1083
1084* Mon Oct 18 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.2-0vl1
1085- upstream release
1086- regenerate php5-imap
1087
1088* Fri Aug 13 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.1-0vl1
1089- upstream release
1090
1091* Tue Aug 03 2004 HOTTA Michihide <hotta@net-newbie.com> 5.0.0-0vl1
1092- upstream release : many thanks to YOSHIMURA Keitaro <ramsy AT ramix DOT jp>
1093- remove php4_{namazu,kakasi,chasen} (not supported)
1094- drop some patches for 4.3.x
1095- Build fix for oniguruma(re_registers dups)
1096- remove domxml (updated to libxml2)
1097- add Conflicts: php, php-*
1098- add php-5.0.0-authuser.patch (BUG#29129)
1099
1100* Thu Jul 15 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.8-0vl1
1101- upstream release
1102- add BuildPrereq: freetype
1103
1104* Sun Jul 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3.7-0vl5
1105- remove explicit buildprereq to build-essential
1106- build apache2 module
1107  split apache1/2 module to php-apache/php-apache2
1108  thanks to jax <jax AT morejams DOT no-ip DOT com>
1109- add Obsoletes: php < %%{version}-%%{release} in php-apache sub-package
1110  for upgrade.
1111
1112* Wed Jul 07 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl4
1113- add Obsoletes: php-imap, php-manual
1114
1115* Sat Jun 26 2004 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 4.3.7-0vl3
1116- enable mcrypt module.
1117
1118* Mon Jun 07 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl2
1119- fix bug #28385 <http://bugs.php.net/bug.php?id=28385>
1120
1121* Fri Jun 04 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.7-0vl1
1122- upstream release
1123
1124* Wed May 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.6-0vl2
1125- rebuild with namazu-2.0.13
1126
1127* Fri Apr 30 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.6-0vl1
1128- upstream release
1129
1130* Mon Mar 15 2004 Tomoya TAKA <taka@vinelinux.org> 4.3.4-0vl2
1131- fix location of session save path, %%{_localstatedir} is defined as
1132  /var/lib in Vine's rpm
1133
1134* Sat Feb 21 2004 HOTTA Michihide <hotta@net-newbie.com> 4.3.4-0vl1
1135- upstream release
1136- sync to fedora(php-4.3.4-7)
1137- drop BuildRequires : aspell
1138- add workaround for inconsistent dependency of php-devel
1139- drop --enable-versioning to prevent ext modules loading error
1140
1141* Thu Feb 05 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.2-0vl4
1142- rebuild with new toolchains (and resolved dependancy about libxslt)
1143- added patch7 to build with libtool-1.5
1144- added patch100 to build newest freetype2 library
1145- force to use automake-1.5
1146- added BuildPrereq: curl-devel, automake15
1147- fixed BuildRequires of php-snmp: net-snmp-devel
1148
1149* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl3
1150- add README.vine
1151
1152* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl2
1153- install sapi/cgi/php as php-cgi, sapi/cli/php as php
1154
1155* Tue Jul 08 2003 HOTTA Michihide <hotta@net-newbie.com> 4.3.2-0vl1
1156- upstream release (sync to rawhide)
1157- add printf patch, PEAR_Registry patch etc.
1158- drop package php-manual
1159
1160* Fri Jan 24 2003 HOTTA Michihide <hotta@net-newbie.com> 4.2.3-0vl3
1161- add zend_highlight.c-patch
1162- add -DHAVE_PQESCAPE to build_ext pgsql
1163
1164* Wed Jan 22 2003 MACHINO Satoshi <machino@vinelinux.org> 4.2.3-0vl2
1165- rebuild against gmp-4.1 and sablotron-0.97
1166
1167* Mon Sep 9 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.3-0vl1
1168- for VineSeedPlus
1169  -- Updated to 4.2.3
1170  -- added php-4.2.3-mbstr-20020908-2.patch
1171
1172* Sun Aug 18 2002 Rui HIROKAWA <hirokawa@php.gr.jp> 4.2.2-0vl3
1173- applied php-4.2.2-mb_output_handler.patch to enable output encoding
1174for text/hdml.     
1175- applied php-4.2.2-mb-decode.patch to fix decode problem of GET parameters.
1176- Patch to fix a problem where, given multiple cookies to set, only the last one would be made (#67853)
1177
1178* Tue Jul 24 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.2-0vl2
1179- for VineSeedPlus
1180  -- applied php-4.2.2-multibyte.patch.gz which obsolets 4.2.1's
1181  -- dropped --enable-trans-sid configure option which is no longer meaningful
1182
1183* Tue Jul 23 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.2-0vl1
1184- for VineSeedPlus
1185  -- Updated to 4.2.2
1186  -- dropped domxml.patch (merged into original)
1187
1188* Fri Jul 05 2002 HOTTA Michihide <hotta@net-newbie.com> 4.2.1-0vl8
1189- for VineSeedPlus
1190  -- added i18n patch by Fujimoto
1191  -- dropped php4_mbregex extention (merged into original)
1192
1193* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl7
1194- added gmp support
1195- for VineSeedPlus
1196
1197* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl6
1198- for VineSeedPlus
1199        -- added xslt support
1200       
1201* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl5
1202- added expat-devel in BuildPreReq
1203
1204* Tue Jun 04 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl4
1205- added mail functions
1206- added postfix in BuildPreReq
1207- updated manual_en(03-Jun-2002)
1208- updated manual_ja(29-May-2002)
1209- for VinePlus
1210        -- dropped xslt support
1211
1212* Thu May 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl3
1213- for VineSeed Plus
1214- added xslt support
1215        -- added enable-xslt, with-xslt-sablot, with-dom-xslt
1216        -- added BuildPrereq: libxslt-devel, libsablotron0-devel
1217
1218* Thu May 16 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl2
1219- for VinePlus 2.5
1220- added php.in-dist.patch
1221
1222* Wed May 15 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.1-0vl1
1223- updated php-4.2.1
1224- updated php_manual_en
1225- dropped reg.patch
1226- modified configured option
1227  -- added --with-dom, --with-bz2, --with-png-dir, --with-expat-dir
1228
1229* Thu May 09 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-99vl1
1230- updated php-4.2.1RC1
1231- fixed ereg_replace patch (4.2.1-reg.patch)
1232
1233* Thu May 09 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-0vl2
1234- added ereg_replace patch (4.2.0-reg.patch)
1235- updated manual(en, ja)
1236
1237* Thu Apr 30 2002 Satoshi MACHINO <machino@vinelinux.org> 4.2.0-0vl1
1238- updated php-4.2.0
1239
1240* Fri Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 4.1.2-0vl1
1241- updated php-4.1.2
1242- updated php4_mbregex-1.3.1
1243- updated php4_namazu-2.1.0
1244- updated php4_kakasi-0.3.0
1245- REMOVED php4_iconv
1246- fixed patch
1247        -- added domxml.patch
1248        -- dropped old patches
1249
1250* Mon Dec  3 2001 Jun Nishii <jun@vinelinux.org>
1251- 4.0.6-5vl3
1252- added --enable-mbstr-enc-trans
1253
1254* Wed Aug 22 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
1255- 4.0.6-5vl2
1256- fix contentdir
1257
1258* Tue Aug 21 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
1259- 4.0.6-5vl1
1260- add configure options for Vine
1261- add ldap, mysql and odbc modules.
1262
1263* Fri Aug 10 2001 Tim Powers <timp@redhat.com>
1264- only english in php-manuals, space constraints :P
1265
1266* Thu Aug  9 2001 Nalin Dahyabhai <nalin@redhat.com>
1267- include %{_libdir}/%{name}/build instead of %{_libdir}/%{name}4/build (#51141)
1268
1269* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com>
1270- add build deps on pam-devel, pspell-devel, gdbm-devel (#49878)
1271- add some conditional logic if %%{oracle} is defined (from Antony Nguyen)
1272
1273* Mon Jul  9 2001 Nalin Dahyabhai <nalin@redhat.com>
1274- don't obsolete subpackages we ended up not merging
1275
1276* Mon Jul  2 2001 Nalin Dahyabhai <nalin@redhat.com>
1277- cleanups
1278- add manuals in multiple languages (using ko instead of kr for Korean)
1279- merge all of the manuals into a single -manual subpackage
1280- use libtool to install binary files which libtool builds
1281- don't strip any binaries; let the buildroot policies take care of it
1282
1283* Thu Jun 28 2001 Nalin Dahyabhai <nalin@redhat.com>
1284- update to 4.0.6 (preliminary)
1285
1286* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
1287- enable ttf in the build because the gd support needs it
1288- add -lfreetype to the LIBS for the same reason
1289
1290* Wed Jun  6 2001 Nalin Dahyabhai <nalin@redhat.com>
1291- rebuild in new environment
1292
1293* Wed May 16 2001 Nalin Dahyabhai <nalin@redhat.com>
1294- actually use two source trees to build things
1295- add %%post and %%postun scriptlets to run ldconfig
1296
1297* Tue May 15 2001 Nalin Dahyabhai <nalin@redhat.com>
1298- quote part of the AC_ADD_LIBRARY macro to make newer autoconf happy
1299
1300* Mon May 14 2001 Nalin Dahyabhai <nalin@redhat.com>
1301- fix error in %%install
1302- depend on the imap-devel which supplies linkage.c
1303- modify trigger to disable php versions less than 4.0.0 instead of 3.0.15
1304- enable DOM support via libxml2 (suggested by Sylvain Berg
1305- build the OpenSSL extension again
1306
1307* Mon May  7 2001 Nalin Dahyabhai <nalin@redhat.com>
1308- enable pspell extensions
1309- update to 4.0.5
1310
1311* Mon Apr 30 2001 Nalin Dahyabhai <nalin@redhat.com>
1312- build the ODBC extension
1313
1314* Mon Apr 30 2001 Bill Nottingham <notting@redhat.com>
1315- build on ia64
1316
1317* Fri Mar  2 2001 Nalin Dahyabhai <nalin@redhat.com>
1318- rebuild in new environment
1319
1320* Fri Feb 23 2001 Nalin Dahyabhai <nalin@redhat.com>
1321- obsolete the old phpfi (PHP 2.x) package
1322
1323* Thu Feb  8 2001 Nalin Dahyabhai <nalin@redhat.com>
1324- add a commented-out curl extension to the config file (part of #24933)
1325- fix the PEAR-installation-directory-not-being-eval'ed problem (#24938)
1326- find the right starting point for multipart form data (#24933)
1327
1328* Tue Jan 30 2001 Nalin Dahyabhai <nalin@redhat.com>
1329- aaarrgh, the fix breaks something else, aaarrgh; revert it (#24933)
1330- terminate variable names at the right place (#24933)
1331
1332* Sat Jan 20 2001 Nalin Dahyabhai <nalin@redhat.com>
1333- tweak the fix some more
1334
1335* Thu Jan 18 2001 Nalin Dahyabhai <nalin@redhat.com>
1336- extract stas's fix for quoting problems from CVS for testing
1337- tweak the fix, ask the PHP folks about the tweak
1338- tweak the fix some more
1339
1340* Wed Jan 17 2001 Nalin Dahyabhai <nalin@redhat.com>
1341- merge mod_php into the main php package (#22906)
1342
1343* Fri Dec 29 2000 Nalin Dahyabhai <nalin@redhat.com>
1344- try to fix a quoting problem
1345
1346* Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
1347- update to 4.0.4 to get a raft of bug fixes
1348- enable sockets
1349- enable wddx
1350
1351* Fri Nov  3 2000 Nalin Dahyabhai <nalin@redhat.com>
1352- rebuild in updated environment
1353
1354* Thu Nov  2 2000 Nalin Dahyabhai <nalin@redhat.com>
1355- add more commented-out modules to the default config file (#19276)
1356
1357* Wed Nov  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1358- fix not-using-gd problem (#20137)
1359
1360* Tue Oct 17 2000 Nalin Dahyabhai <nalin@redhat.com>
1361- update to 4.0.3pl1 to get some bug fixes
1362
1363* Sat Oct 14 2000 Nalin Dahyabhai <nalin@redhat.com>
1364- build for errata
1365
1366* Wed Oct 11 2000 Nalin Dahyabhai <nalin@redhat.com>
1367- update to 4.0.3 to get security fixes integrated
1368- patch around problems configuring without Oracle support
1369- add TSRM to include path when building individual modules
1370
1371* Fri Sep  8 2000 Nalin Dahyabhai <nalin@redhat.com>
1372- rebuild in new environment
1373- enable OpenSSL support
1374
1375* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1376- update to 4.0.2, and move the peardir settings to configure (#17171)
1377- require %%{version}-%%{release} for subpackages
1378- add db2-devel and db3-devel prereqs (#17168)
1379
1380* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
1381- rebuild in new environment (new imap-devel)
1382
1383* Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1384- fix summary and descriptions to match the specspo package
1385
1386* Wed Aug  9 2000 Nalin Dahyabhai <nalin@redhat.com>
1387- hard-code the path to apxs in build_ext() (#15799)
1388
1389* Tue Aug  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1390- add "." to the include path again, which is the default
1391
1392* Wed Jul 19 2000 Nalin Dahyabhai <nalin@redhat.com>
1393- enable PEAR and add it to the include path
1394- add the beginnings of a -devel subpackage
1395
1396* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1397- automatic rebuild
1398
1399* Fri Jul  7 2000 Nalin Dahyabhai <nalin@redhat.com>
1400- tweaks to post and postun from Bill Peck
1401
1402* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
1403- fixes from Nils for building the MySQL client
1404- change back to requiring %{version} instead of %{version}-%{release}
1405
1406* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
1407- update to 4.0.1pl2
1408- enable MySQL client
1409- move the php.ini file to %{_sysconfdir}
1410
1411* Fri Jun 30 2000 Nils Philippsen <nils@redhat.de>
1412- build_ext defines HAVE_PGSQL so pgsql.so in fact contains symbols
1413- post/un scripts tweak php.ini correctly now
1414
1415* Thu Jun 28 2000 Nalin Dahyabhai <nalin@redhat.com>
1416- update to 4.0.1
1417- refresh manual
1418
1419* Tue Jun 26 2000 Nalin Dahyabhai <nalin@redhat.com>
1420- rebuild against new krb5 package
1421
1422* Mon Jun 19 2000 Nalin Dahyabhai <nalin@redhat.com>
1423- rebuild against new db3 package
1424
1425* Sat Jun 17 2000 Nalin Dahyabhai <nalin@redhat.com>
1426- Fix syntax error in post and preun scripts.
1427- Disable IMAP, LDAP, PgSql in the standalone version because it picks up
1428  the extensions.
1429
1430* Fri Jun 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1431- Unexclude the Sparc arch.
1432- Exclude the ia64 arch until we get a working Postgres build.
1433- Stop stripping extensions as aggressively.
1434- Start linking the IMAP module to libpam again.
1435- Work around extension loading problems.
1436- Reintroduce file-editing post and preun scripts for the mod_php extensions
1437  until we come up with a better way to do it.
1438
1439* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
1440- ExcludeArch: sparc for now
1441
1442* Sun Jun  4 2000 Nalin Dahyabhai <nalin@redhat.com>
1443- add Obsoletes: phpfi, because their content handler names are the same
1444- add standalone binary, rename module packages to mod_php
1445- FHS fixes
1446
1447* Tue May 23 2000 Nalin Dahyabhai <nalin@redhat.com>
1448- change license from "GPL" to "PHP"
1449- add URL: tag
1450- disable mysql support by default (license not specified)
1451
1452* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
1453- update to PHP 4.0.0
1454- nuke the -mysql subpackage (php comes with a bundled mysql client lib now)
1455
1456* Tue May 16 2000 Nalin Dahyabhai <nalin@redhat.com>
1457- link IMAP module against GSS-API and PAM to get dependencies right
1458- change most of the Requires to Prereqs, because the post edits config files
1459- move the PHP *Apache* module back to the right directory
1460- fix broken postun trigger that broke the post
1461- change most of the postuns to preuns in case php gets removed before subpkgs
1462
1463* Thu May 11 2000 Trond Eivind Glomsr <teg@redhat.com>
1464- rebuilt against new postgres libraries
1465
1466* Tue May 09 2000 Preston Brown <pbrown@redhat.com>
1467- php3 .so modules moved to /usr/lib/php3 from /usr/lib/apache (was incorrect)
1468
1469* Mon Apr 10 2000 Nalin Dahyabhai <nalin@redhat.com>
1470- make subpackages require php = %{version} (bug #10671)
1471
1472* Thu Apr 06 2000 Nalin Dahyabhai <nalin@redhat.com>
1473- update to 3.0.16
1474
1475* Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com>
1476- fixed the post script to work when upgrading a package
1477- add triggere to fix the older packages
1478
1479* Tue Feb 29 2000 Nalin Dahyabhai <nalin@redhat.com>
1480- update to 3.0.15
1481- add build-time dependency for openldap-devel
1482- enable db,ftp,shm,sem support to fix bug #9648
1483
1484* Fri Feb 25 2000 Nalin Dahyabhai <nalin@redhat.com>
1485- add dependency for imap subpackage
1486- rebuild against Apache 1.3.12
1487
1488* Thu Feb 24 2000 Preston Brown <pbrown@redhat.com>
1489- don't include old, outdated manual.  package one from the php distribution.
1490
1491* Tue Feb 01 2000 Cristian Gafton <gafton@redhat.com>
1492- rebuild to fix dependency problem
1493
1494* Fri Jan 14 2000 Preston Brown <pbrown@redhat.com>
1495- added commented out mysql module, thanks to Jason Duerstock
1496  (jason@sdi.cluephone.com). Uncomment to build if you have mysql installed.
1497
1498* Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
1499- rely on imap-devel, don't include imap in src.rpm (#5099).
1500- xml enabled (#5393)
1501
1502* Tue Nov 02 1999 Preston Brown <pborwn@redhat.com>
1503- added post/postun sections to modify httpd.conf (#5259)
1504- removed old obsolete faq and gif (#5260)
1505- updated manual.tar.gz package (#5261)
1506
1507* Thu Oct 07 1999 Matt Wilson <msw@redhat.com>
1508- rebuilt for sparc glibc brokenness
1509
1510* Fri Sep 24 1999 Preston Brown <pbrown@redhat.com>
1511- --with-apxs --> --with-apxs=/usr/sbin/apxs (# 5094)
1512- ldap support (# 5097)
1513
1514* Thu Sep 23 1999 Preston Brown <pbrown@redhat.com>
1515- fix cmdtuples for postgresql, I had it slightly wrong
1516
1517* Tue Aug 31 1999 Bill Nottingham <notting@redhat.com>
1518- subpackages must obsolete old stuff...
1519
1520* Sun Aug 29 1999 Preston Brown <pbrown@redhat.com>
1521- added -DHAVE_PGCMDTUPLES for postgresql module (bug # 4767)
1522
1523* Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
1524- name change to php to follow real name of package
1525- fix up references to php3 to refer to php
1526- upgrade to 3.0.12
1527- fixed typo in pgsql postun script (bug # 4686)
1528
1529* Mon Jun 14 1999 Preston Brown <pbrown@redhat.com>
1530- upgraded to 3.0.9
1531- fixed postgresql module and made separate package
1532- separated manual into separate documentation package
1533
1534* Mon May 24 1999 Preston Brown <pbrown@redhat.com>
1535- upgraded to 3.0.8, which fixes problems with glibc 2.1.
1536- took some ideas grom Gomez's RPM.
1537
1538* Tue May 04 1999 Preston Brown <pbrown@redhat.com>
1539- hacked in imap support in an ugly way until imap gets an official
1540  shared library implementation
1541
1542* Fri Apr 16 1999 Preston Brown <pbrown@redhat.com>
1543- pick up php3.ini
1544
1545* Wed Mar 24 1999 Preston Brown <pbrown@redhat.com>
1546- build against apache 1.3.6
1547
1548* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
1549- auto rebuild in the new build environment (release 2)
1550
1551* Mon Mar 08 1999 Preston Brown <pbrown@redhat.com>
1552- upgraded to 3.0.7.
1553
1554* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
1555- Injected new description and group.
1556
1557* Sun Feb 07 1999 Preston Brown <pbrown@redhat.com>
1558- upgrade to php 3.0.6, built against apache 1.3.4
1559
1560* Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
1561- rebuild for apache 1.3.3
1562
1563* Thu Oct 08 1998 Preston Brown <pbrown@redhat.com>
1564- updated to 3.0.5, fixes nasty bugs in 3.0.4.
1565
1566* Sun Sep 27 1998 Cristian Gafton <gafton@redhat.com>
1567- updated to 3.0.4 and recompiled for apache 1.3.2
1568
1569* Thu Sep 03 1998 Preston Brown <pbrown@redhat.com>
1570- improvements; builds with apache-devel package installed.
1571
1572* Tue Sep 01 1998 Preston Brown <pbrown@redhat.com>
1573- Made initial cut for PHP3.
Note: See TracBrowser for help on using the repository browser.