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

Revision 3187, 53.9 KB checked in by tomop, 13 years ago (diff)

php5-5.3.6-1

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