Lines 71-77
Link Here
|
71 |
|
71 |
|
72 |
# Automatically added by buildreq on Fri Oct 28 2005 (-bi) |
72 |
# Automatically added by buildreq on Fri Oct 28 2005 (-bi) |
73 |
BuildRequires: alternatives chrpath flex libexpat-devel libmm-devel libpcre-devel |
73 |
BuildRequires: alternatives chrpath flex libexpat-devel libmm-devel libpcre-devel |
74 |
BuildRequires: termutils zlib-devel |
74 |
BuildRequires: termutils zlib-devel sed |
75 |
|
75 |
|
76 |
%description |
76 |
%description |
77 |
PHP4 is an HTML-embeddable scripting language. PHP offers built-in database |
77 |
PHP4 is an HTML-embeddable scripting language. PHP offers built-in database |
Lines 158-163
Link Here
|
158 |
# Build CLI version |
158 |
# Build CLI version |
159 |
export oldstyleextdir=yes |
159 |
export oldstyleextdir=yes |
160 |
export EXTENSION_DIR=%php_libdir/extensions |
160 |
export EXTENSION_DIR=%php_libdir/extensions |
|
|
161 |
%__subst s@PHP_PCRE_REGEX/lib@PHP_PCRE_REGEX/%_lib@ configure |
162 |
%__subst s@/lib/libexpat@/%_lib/libexpat@g configure |
161 |
|
163 |
|
162 |
%configure \ |
164 |
%configure \ |
163 |
--prefix=%_prefix \ |
165 |
--prefix=%_prefix \ |
Lines 200-205
Link Here
|
200 |
--with-expat-dir=%_usr \ |
202 |
--with-expat-dir=%_usr \ |
201 |
--without-pear |
203 |
--without-pear |
202 |
|
204 |
|
|
|
205 |
%__subst s@/lib/php/@/%_lib/php/@ Makefile.fragments |
206 |
%__subst s@/lib/php/@/%_lib/php/@ Makefile |
203 |
# PHP4's configuration system does not respect $prefix, we need to override |
207 |
# PHP4's configuration system does not respect $prefix, we need to override |
204 |
# all variables in order to install package in a safe manner |
208 |
# all variables in order to install package in a safe manner |
205 |
BUILD_ENV_VARS="top_srcdir=%_builddir/%php_name \ |
209 |
BUILD_ENV_VARS="top_srcdir=%_builddir/%php_name \ |
Lines 296-301
Link Here
|
296 |
%__cp -dpR main/internal_functions.c %buildroot%prefix/src/php-devel/sapi/BUILD |
300 |
%__cp -dpR main/internal_functions.c %buildroot%prefix/src/php-devel/sapi/BUILD |
297 |
%__cp -dpR include %buildroot%prefix/src/php-devel/sapi/BUILD |
301 |
%__cp -dpR include %buildroot%prefix/src/php-devel/sapi/BUILD |
298 |
|
302 |
|
|
|
303 |
# Fix x86_64 phpize |
304 |
%__subst s@ix/lib/@ix/%_lib/@ %buildroot%_bindir/phpize |
305 |
|
306 |
# Fix library paths for x86_64 |
307 |
%__subst s@/usr/lib@%_libdir@g %buildroot/%php_sysconfdir/%php_sapi/php.ini |
308 |
%__subst s@/usr/lib@%_libdir@g %buildroot/%_sysconfdir/control.d/facilities/php4_%php_sapi |
309 |
|
310 |
|
311 |
|
299 |
%triggerpostun -n php -- php < 1:4.3.12-alt0.cvs20050530 |
312 |
%triggerpostun -n php -- php < 1:4.3.12-alt0.cvs20050530 |
300 |
if ! grep -qs "\<alt_sapi_config_ini_scan_dir\>" "%php_sysconfdir/%php_sapi/php.ini"; then |
313 |
if ! grep -qs "\<alt_sapi_config_ini_scan_dir\>" "%php_sysconfdir/%php_sapi/php.ini"; then |
301 |
printf '\n%%s\n' 'alt_sapi_config_ini_scan_dir = "/etc/php/%php_version/cli/php.d"' >> "%php_sysconfdir/%php_sapi/php.ini" |
314 |
printf '\n%%s\n' 'alt_sapi_config_ini_scan_dir = "/etc/php/%php_version/cli/php.d"' >> "%php_sysconfdir/%php_sapi/php.ini" |