]> git.pld-linux.org Git - packages/php.git/commitdiff
- build cleanups, use permanent config.cache if configured
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Apr 2006 00:47:36 +0000 (00:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- CFLAGS mungling unneccessary, all goes via apxs

Changed files:
    php.spec -> 1.568

php.spec

index ab07ac193965bcc47333c0efe648e9553680bca6..1d039084b223165c628091570bf3b528a7bb8c47 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -72,7 +72,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %undefine      with_msession
 %endif
 
-%define        _rel 9.5
+%define        _rel 9.6
 Summary:       PHP: Hypertext Preprocessor
 Summary(fr):   Le langage de script embarque-HTML PHP
 Summary(pl):   Jêzyk skryptowy PHP
@@ -1580,9 +1580,6 @@ patch -p1 < %{PATCH30} || exit 1
 # conflict seems to be resolved by recode patches
 rm -f ext/recode/config9.m4
 
-# new apr
-sed -i -e 's#apr-config#apr-1-config#g' sapi/apache*/*.m4
-
 # remove all bundled libraries not to link with them accidentally
 #rm -rf ext/sqlite/libsqlite
 #rm -rf ext/bcmath/libbcmath
@@ -1614,12 +1611,6 @@ if API=$(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' Zend/zend_extensions.h)
        exit 1
 fi
 
-CFLAGS="%{rpmcflags} -DEAPI=1 -I/usr/X11R6/include"
-%if %{with apache2}
-# Apache2 CFLAGS. harmless for other SAPIs.
-CFLAGS="$CFLAGS $(%{_bindir}/apr-1-config --includes) $(%{_bindir}/apu-1-config --includes)"
-%endif
-
 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 if [ ! -f _built-conf ]; then # configure once (for faster debugging purposes)
        rm -f Makefile.{fcgi,cgi,cli,apxs{1,2}} # now remove Makefile copies
@@ -1667,7 +1658,9 @@ for sapi in $sapis; do
        ;;
        esac
        ` \
+%if "%{!?configure_cache:0}%{?configure_cache}" == "0"
        --cache-file=config.cache \
+%endif
        --with-libdir=%{_lib} \
        --with-config-file-path=%{_sysconfdir} \
        --with-config-file-scan-dir=%{_sysconfdir}/conf.d \
This page took 0.292288 seconds and 4 git commands to generate.