From 1c515063b2b45b1f81d61a5e14d57683dc2130fd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 11 Jun 2015 17:03:53 +0200 Subject: php: don't provide php-sqlite3 on el-5 (extension is not build) --- php55.spec | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/php55.spec b/php55.spec index f2cb17e..af081c0 100644 --- a/php55.spec +++ b/php55.spec @@ -59,6 +59,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 @@ -138,7 +144,7 @@ Version: 5.5.26 %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 @@ -215,7 +221,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: bzip2-devel, curl-devel >= 7.9 BuildRequires: httpd-devel >= 2.0.46-1, pam-devel 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 @@ -475,7 +481,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 @@ -1231,7 +1239,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 \ @@ -1379,7 +1387,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 \ @@ -1612,7 +1620,7 @@ for mod in pgsql odbc ldap snmp xmlrpc imap \ zip \ %endif %{?_with_oci8:oci8} %{?_with_oci8:pdo_oci} interbase pdo_firebird \ -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 +%if %{with_sqlite3} sqlite3 \ %endif enchant phar fileinfo intl \ @@ -1683,7 +1691,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 @@ -1963,6 +1971,9 @@ fi %changelog +* Thu Jun 11 2015 Remi Collet 5.5.26-1.1 +- don't provide php-sqlite3 on EL-5 + * Wed Jun 10 2015 Remi Collet 5.5.26-1 - Update to 5.5.26 http://www.php.net/releases/5_5_26.php -- cgit