|
|
@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
|
|
|
Group: Language
|
|
|
License: PHP
|
|
|
Version: 4.3.1
|
|
|
-Release: 20030220
|
|
|
+Release: 20030307
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.php.net/distributions/php-%{version}.tar.gz
|
|
|
@@ -67,6 +67,7 @@ Source0: http://www.php.net/distributions/php-%{version}.tar.gz
|
|
|
%option with_wddx no
|
|
|
%option with_gdbm no
|
|
|
%option with_versioning no
|
|
|
+%option with_pear no
|
|
|
|
|
|
# fixing implicit inter-module dependencies and correlations
|
|
|
%if "%{with_freetype}" == "yes"
|
|
|
@@ -184,6 +185,8 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{with_mysql}" == "yes"
|
|
|
--with-mysql=%{l_prefix} \
|
|
|
+%else
|
|
|
+ --without-mysql \
|
|
|
%endif
|
|
|
%if "%{with_gd}" == "yes"
|
|
|
--with-gd=%{l_prefix} \
|
|
|
@@ -277,6 +280,11 @@ AutoReqProv: no
|
|
|
--enable-versioning \
|
|
|
%endif
|
|
|
--enable-cli \
|
|
|
+%if "%{with_pear}" == "yes"
|
|
|
+ --with-pear \
|
|
|
+%else
|
|
|
+ --without-pear \
|
|
|
+%endif
|
|
|
--enable-force-cgi-redirect \
|
|
|
--enable-discard-path \
|
|
|
--enable-track-vars
|
|
|
@@ -291,8 +299,11 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/include/php/main \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/include/php/Zend \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/include/php/TSRM \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/include/php/regex
|
|
|
- %{l_shtool} install -c -s -m 755 sapi/cli/php $RPM_BUILD_ROOT%{l_prefix}/cgi/
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/include/php/regex \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/lib/php
|
|
|
+ %{l_shtool} install -c -s -m 755 \
|
|
|
+ sapi/cli/php \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/cgi/
|
|
|
ln $RPM_BUILD_ROOT%{l_prefix}/cgi/php \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/php
|
|
|
%{l_shtool} install -c -m 644 /dev/null \
|
|
|
@@ -309,11 +320,21 @@ AutoReqProv: no
|
|
|
TSRM/*.h $RPM_BUILD_ROOT%{l_prefix}/include/php/TSRM
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
regex/*.h $RPM_BUILD_ROOT%{l_prefix}/include/php/regex
|
|
|
+%if "%{with_pear}" == "yes"
|
|
|
+ ( cd $RPM_BUILD_DIR/%{name}-%{version}/pear
|
|
|
+ export INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin/php -n -dsafe_mode=0 \
|
|
|
+ install-pear.php package-*.xml
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/bin/php -n -dsafe_mode=0 \
|
|
|
+ install-pear.php packages/*.tar
|
|
|
+ ) || exit 1
|
|
|
+%endif
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
- '%config %{l_prefix}/etc/php/php.ini'
|
|
|
+ '%config %{l_prefix}/etc/php/php.ini' \
|
|
|
+ '%dir %attr(0755,%{l_musr},%{l_mgrp}) %{l_prefix}/lib/php' \
|
|
|
+ '%not %dir %attr(0644,%{l_musr},%{l_mgrp}) %{l_prefix}/lib/php'
|
|
|
|
|
|
%files -f files
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-
|