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

Revision 4139, 54.5 KB checked in by Takemikaduchi, 13 years ago (diff)

rebuild package

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