diff options
-rw-r--r-- | php56.spec | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -56,6 +56,12 @@ %global with_libpcre 0 %endif +%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%global with_sqlite3 1 +%else +%global with_sqlite3 0 +%endif + %if 0%{?fedora} < 17 && 0%{?rhel} < 6 %global with_vpx 0 %else @@ -145,7 +151,7 @@ Version: 5.6.10 %if 0%{?snapdate:1}%{?rcver:1} Release: 0.1.%{?snapdate}%{?rcver}%{?dist} %else -Release: 1%{?dist} +Release: 1%{?dist}.1 %endif # All files licensed under PHP version 3.01, except # Zend is licensed under Zend @@ -231,7 +237,7 @@ BuildRequires: httpd-filesystem BuildRequires: nginx-filesystem %endif BuildRequires: libstdc++-devel, openssl-devel -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} # For Sqlite3 extension BuildRequires: sqlite-devel >= 3.6.0 %else @@ -519,7 +525,9 @@ Requires: php-common%{?_isa} = %{version}-%{release} # ABI/API check - Arch specific Provides: php-pdo-abi = %{pdover}%{isasuffix} Provides: php(pdo-abi) = %{pdover}%{isasuffix} +%if %{with_sqlite3} Provides: php-sqlite3, php-sqlite3%{?_isa} +%endif Provides: php-pdo_sqlite, php-pdo_sqlite%{?_isa} Obsoletes: php53-pdo, php53u-pdo, php54-pdo, php54w-pdo, php55u-pdo, php55w-pdo, php56u-pdo, php56w-pdo @@ -1253,7 +1261,7 @@ build --libdir=%{_libdir}/php \ --with-pdo-pgsql=shared,%{_prefix} \ --with-pdo-sqlite=shared,%{_prefix} \ --with-pdo-dblib=shared,%{_prefix} \ -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} --with-sqlite3=shared,%{_prefix} \ %else --without-sqlite3 \ @@ -1396,7 +1404,7 @@ build --includedir=%{_includedir}/php-zts \ --with-pdo-pgsql=shared,%{_prefix} \ --with-pdo-sqlite=shared,%{_prefix} \ --with-pdo-dblib=shared,%{_prefix} \ -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} --with-sqlite3=shared,%{_prefix} \ %else --without-sqlite3 \ @@ -1601,7 +1609,7 @@ for mod in pgsql odbc ldap snmp xmlrpc imap \ oci8 pdo_oci \ %endif interbase pdo_firebird \ -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} sqlite3 \ %endif enchant phar fileinfo intl \ @@ -1671,7 +1679,7 @@ cat files.shmop files.sysv* files.posix > files.process # Package sqlite3 and pdo_sqlite with pdo; isolating the sqlite dependency # isn't useful at this time since rpm itself requires sqlite. cat files.pdo_sqlite >> files.pdo -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} cat files.sqlite3 >> files.pdo %endif @@ -1966,6 +1974,9 @@ fi %changelog +* Thu Jun 11 2015 Remi Collet <remi@fedoraproject.org> 5.6.10-1.1 +- don't provide php-sqlite3 on EL-5 + * Thu Jun 11 2015 Remi Collet <remi@fedoraproject.org> 5.6.10-1 - Update to 5.6.10 http://www.php.net/releases/5_6_10.php |