From 6afe5d0185fb00b3e6c8892a4c5ce67a998dc7e8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Oct 2021 10:12:37 +0200 Subject: dba: enable qdbm backend --- php.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/php.spec b/php.spec index 8a3d57c..46227c0 100644 --- a/php.spec +++ b/php.spec @@ -73,6 +73,7 @@ %bcond_without tidy %bcond_without sqlite3 %bcond_without enchant + %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 # switch to bundled library using --without libpcre %bcond_without libpcre @@ -81,6 +82,12 @@ %bcond_with libpcre %endif +%if 0%{?fedora} >= 33 +%bcond_without qdbm +%else +%bcond_with qdbm +%endif + %bcond_without dtrace # build with system libgd (gd-last in remi repo) @@ -113,7 +120,7 @@ Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php Version: %{upver}%{?lower:~%{lower}}%{?gh_date:.%{gh_date}} -Release: 1%{?dist} +Release: 2%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend # TSRM is licensed under BSD @@ -747,6 +754,10 @@ License: PHP BuildRequires: libdb-devel BuildRequires: tokyocabinet-devel BuildRequires: lmdb-devel +%if %{with qdbm} +BuildRequires: qdbm-devel +%endif + Requires: %{?scl_prefix}php-common%{?_isa} = %{version}-%{release} %description dba @@ -1203,6 +1214,9 @@ build --libdir=%{_libdir}/php \ --enable-dba=shared --with-db4=%{_root_prefix} \ --with-tcadb=%{_root_prefix} \ --with-lmdb=%{_root_prefix} \ +%if %{with qdbm} + --with-qdbm=%{_root_prefix} \ +%endif --enable-exif=shared \ --enable-ftp=shared \ --with-gettext=shared \ @@ -1817,6 +1831,9 @@ fi %changelog +* Tue Oct 26 2021 Remi Collet - 8.1.0~rc4-2 +- dba: enable qdbm backend + * Wed Oct 13 2021 Remi Collet - 8.1.0~rc4-1 - update to 8.1.0RC4 -- cgit