]> git.pld-linux.org Git - packages/php.git/commitdiff
- mhash backward compat layer enabled in hash extension only if --with-mhash enabled
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 7 Aug 2011 17:11:49 +0000 (17:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php.spec -> 1.943

php.spec

index f637d6b9e397b79dec9ce301ef09dfb8de87c489..5aecbe644601f6d34c505c1ef66704ccadaf3cf0 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -36,6 +36,7 @@
 %bcond_without kerberos5       # without Kerberos5 support
 %bcond_without litespeed       # build litespeed module
 %bcond_without ldap            # without LDAP extension module
+%bcond_without mhash           # without mhash extension (supported by hash extension)
 %bcond_without mm              # without mm support for session storage
 %bcond_without mssql           # without MS SQL extension module
 # don't turn it on by default; see TODO item for mysqlnd in this spec
@@ -812,9 +813,11 @@ Group:             Libraries
 URL:           http://www.php.net/manual/en/book.gmp.php
 Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Provides:      php(hash)
+%if %{with mhash}
 Provides:      php(mhash)
 Provides:      php-mhash = %{epoch}:%{version}-%{release}
 Obsoletes:     php-mhash < 4:5.3.0
+%endif
 Obsoletes:     php-pecl-hash
 
 %description hash
@@ -2045,6 +2048,7 @@ for sapi in $sapis; do
 %if %{with interbase} && %{without interbase_inst}
        --with-pdo-firebird=shared,/usr \
 %endif
+       %{?with_mhash:--with-mhash=yes} \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
        --with-pdo-mysql=shared%{?with_mysqlnd:,mysqlnd} \
        %{?with_oci8:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
This page took 0.052561 seconds and 4 git commands to generate.