auto-import changelog data from php-4.0.6-6.src.rpm
* Fri Aug 17 2001 Nalin Dahyabhai <nalin@redhat.com> - enable bzip2 extension - enable curl extension - enable use of mm - clean up use of libtool (#51958)
This commit is contained in:
parent
fe0769ca50
commit
646b7a045c
42
php.spec
42
php.spec
@ -1,15 +1,17 @@
|
|||||||
%define contentdir /var/www
|
%define contentdir /var/www
|
||||||
%define manual_langs en pt_BR cs nl fr de hu it ja kr es
|
%define manual_langs en
|
||||||
|
# pt_BR cs nl fr de hu it ja kr es
|
||||||
|
|
||||||
%{!?oracle:%define oracle 0}
|
%{!?oracle:%define oracle 0}
|
||||||
|
|
||||||
Summary: The PHP HTML-embedded scripting language.
|
Summary: The PHP HTML-embedded scripting language.
|
||||||
Name: php
|
Name: php
|
||||||
Version: 4.0.6
|
Version: 4.0.6
|
||||||
Release: 5
|
Release: 6
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
URL: http://www.php.net/
|
URL: http://www.php.net/
|
||||||
Source0: http://www.php.net/distributions/php-%{version}.tar.gz
|
Source0: http://www.php.net/distributions/php-%{version}.tar.gz
|
||||||
|
# Manuals from http://www.php.net/distributions/manual/
|
||||||
Source1: php-manual-en.tar.gz
|
Source1: php-manual-en.tar.gz
|
||||||
#Source2: php-manual-pt_BR.tar.gz
|
#Source2: php-manual-pt_BR.tar.gz
|
||||||
#Source3: php-manual-cs.tar.gz
|
#Source3: php-manual-cs.tar.gz
|
||||||
@ -35,7 +37,8 @@ Obsoletes: mod_php, php3, phpfi
|
|||||||
BuildPrereq: apache-devel, db2-devel, db3-devel, gdbm-devel, imap-devel >= 2000-9
|
BuildPrereq: apache-devel, db2-devel, db3-devel, gdbm-devel, imap-devel >= 2000-9
|
||||||
BuildPrereq: krb5-devel, mysql-devel, openssl-devel, postgresql-devel, pam-devel
|
BuildPrereq: krb5-devel, mysql-devel, openssl-devel, postgresql-devel, pam-devel
|
||||||
BuildPrereq: freetype-devel, gd-devel, libjpeg-devel, libpng-devel, zlib-devel
|
BuildPrereq: freetype-devel, gd-devel, libjpeg-devel, libpng-devel, zlib-devel
|
||||||
BuildPrereq: unixODBC-devel, libxml2-devel, pspell-devel
|
BuildPrereq: unixODBC-devel, libxml2-devel, pspell-devel, curl-devel >= 7.8
|
||||||
|
BuildPrereq: bzip2-devel >= 1.0.0, mm-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PHP is an HTML-embedded scripting language. PHP attempts to make it
|
PHP is an HTML-embedded scripting language. PHP attempts to make it
|
||||||
@ -182,38 +185,42 @@ popd
|
|||||||
cp -a %{name}-%{version} %{name}-%{version}-cgi
|
cp -a %{name}-%{version} %{name}-%{version}-cgi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define __libtoolize :
|
|
||||||
krb5libs="-L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
|
krb5libs="-L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
|
||||||
ssllibs="-lssl -lcrypto"
|
ssllibs="-lssl -lcrypto"
|
||||||
sasllibs="-lsasl $krb5libs $ssllibs"
|
sasllibs="-lsasl $krb5libs $ssllibs"
|
||||||
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
|
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
|
||||||
LIBS="-lttf -lfreetype -lpng -ljpeg -lz"; export LIBS
|
LIBS="-lttf -lfreetype -lpng -ljpeg -lz -lnsl"; export LIBS
|
||||||
REDO_ALL=yes; export REDO_ALL
|
REDO_ALL=yes; export REDO_ALL
|
||||||
EXTENSION_DIR=%{_libdir}/php4; export EXTENSION_DIR
|
EXTENSION_DIR=%{_libdir}/php4; export EXTENSION_DIR
|
||||||
|
|
||||||
compile() {
|
compile() {
|
||||||
./configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--with-config-file-path=%{_sysconfdir} \
|
--with-config-file-path=%{_sysconfdir} \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
--enable-pic \
|
--enable-pic \
|
||||||
|
--disable-rpath \
|
||||||
--enable-inline-optimization \
|
--enable-inline-optimization \
|
||||||
$* \
|
$* \
|
||||||
|
--with-bz2 \
|
||||||
|
--with-curl \
|
||||||
|
--with-db3 \
|
||||||
--with-dom \
|
--with-dom \
|
||||||
--with-exec-dir=%{_bindir} \
|
--with-exec-dir=%{_bindir} \
|
||||||
--with-regex=system \
|
|
||||||
--with-gettext \
|
|
||||||
--with-gd \
|
--with-gd \
|
||||||
|
--with-gdbm \
|
||||||
|
--with-gettext \
|
||||||
--with-jpeg-dir=%{_prefix} \
|
--with-jpeg-dir=%{_prefix} \
|
||||||
|
--with-mm \
|
||||||
|
--with-openssl \
|
||||||
--with-png \
|
--with-png \
|
||||||
|
--with-regex=system \
|
||||||
--with-ttf \
|
--with-ttf \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
--with-db3 \
|
|
||||||
--with-gdbm \
|
|
||||||
--with-openssl \
|
|
||||||
--with-layout=GNU \
|
--with-layout=GNU \
|
||||||
--enable-debugger \
|
--enable-debugger \
|
||||||
|
--enable-ftp \
|
||||||
--enable-magic-quotes \
|
--enable-magic-quotes \
|
||||||
--enable-safe-mode \
|
--enable-safe-mode \
|
||||||
--enable-sockets \
|
--enable-sockets \
|
||||||
@ -221,7 +228,6 @@ compile() {
|
|||||||
--enable-sysvshm \
|
--enable-sysvshm \
|
||||||
--enable-track-vars \
|
--enable-track-vars \
|
||||||
--enable-yp \
|
--enable-yp \
|
||||||
--enable-ftp \
|
|
||||||
--enable-wddx \
|
--enable-wddx \
|
||||||
--without-mysql \
|
--without-mysql \
|
||||||
--without-unixODBC \
|
--without-unixODBC \
|
||||||
@ -229,7 +235,6 @@ compile() {
|
|||||||
--without-oci8 \
|
--without-oci8 \
|
||||||
--with-pspell \
|
--with-pspell \
|
||||||
--with-xml
|
--with-xml
|
||||||
sh ltconfig ltmain.sh
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,6 +249,7 @@ compile --with-apxs=%{_sbindir}/apxs
|
|||||||
|
|
||||||
# Build individual PHP modules.
|
# Build individual PHP modules.
|
||||||
build_ext() {
|
build_ext() {
|
||||||
|
./libtool --mode=link \
|
||||||
%{__cc} -fPIC -shared $RPM_OPT_FLAGS \
|
%{__cc} -fPIC -shared $RPM_OPT_FLAGS \
|
||||||
-DCOMPILE_DL_`echo $1 | tr '[a-z]' '[A-Z]'` \
|
-DCOMPILE_DL_`echo $1 | tr '[a-z]' '[A-Z]'` \
|
||||||
-DHAVE_`echo $1 | tr '[a-z]' '[A-Z]'` \
|
-DHAVE_`echo $1 | tr '[a-z]' '[A-Z]'` \
|
||||||
@ -276,7 +282,6 @@ mkdir -p $RPM_BUILD_ROOT%{contentdir}/icons
|
|||||||
./libtool install -m755 libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache/
|
./libtool install -m755 libphp4.la $RPM_BUILD_ROOT%{_libdir}/apache/
|
||||||
|
|
||||||
pushd ../%{name}-%{version}-cgi
|
pushd ../%{name}-%{version}-cgi
|
||||||
./libtool install -m755 libphp4.la $RPM_BUILD_ROOT%{_libdir}/
|
|
||||||
./libtool install -m755 php $RPM_BUILD_ROOT%{_bindir}/php
|
./libtool install -m755 php $RPM_BUILD_ROOT%{_bindir}/php
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -330,7 +335,6 @@ perl -pi -e 's|^#AddModule mod_php3.c|AddModule mod_php3.c|g' \
|
|||||||
%{_bindir}/php
|
%{_bindir}/php
|
||||||
%{_datadir}/php
|
%{_datadir}/php
|
||||||
%{_libdir}/apache/libphp4.so
|
%{_libdir}/apache/libphp4.so
|
||||||
%{_libdir}/libphp4.so.0.0.0
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -436,8 +440,14 @@ fi
|
|||||||
#%lang(pt) %{contentdir}/html/manual/mod/mod_php4/pt_BR
|
#%lang(pt) %{contentdir}/html/manual/mod/mod_php4/pt_BR
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 17 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- enable bzip2 extension
|
||||||
|
- enable curl extension
|
||||||
|
- enable use of mm
|
||||||
|
- clean up use of libtool (#51958)
|
||||||
|
|
||||||
* Fri Aug 10 2001 Tim Powers <timp@redhat.com>
|
* Fri Aug 10 2001 Tim Powers <timp@redhat.com>
|
||||||
- only english in php-manuals, space constraints :P
|
- only english in php-manuals, space constraints
|
||||||
|
|
||||||
* Thu Aug 9 2001 Nalin Dahyabhai <nalin@redhat.com>
|
* Thu Aug 9 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
- include %{_libdir}/%{name}/build instead of %{_libdir}/%{name}4/build (#51141)
|
- include %{_libdir}/%{name}/build instead of %{_libdir}/%{name}4/build (#51141)
|
||||||
|
Loading…
Reference in New Issue
Block a user