From 842a1284d515399b8785571e5db54341f4674e85 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 12 May 2022 15:49:11 +0200 Subject: update to 4.0.0 drop dependency on libcouchbase License is ASL 2.0 and BSD and MIT --- php-pecl-couchbase4.spec | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'php-pecl-couchbase4.spec') diff --git a/php-pecl-couchbase4.spec b/php-pecl-couchbase4.spec index 8373c69..cc7a160 100644 --- a/php-pecl-couchbase4.spec +++ b/php-pecl-couchbase4.spec @@ -28,12 +28,35 @@ Summary: Couchbase Server PHP extension Name: %{?scl_prefix}php-pecl-couchbase4 Version: 4.0.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -License: PHP +# ASL 2.0 +# src +# third_party/json/LICENSE.ryu +## BSD +# third_party/snappy/COPYING +# third_party/hdr_histogram_c/LICENSE.txt +# third_party/hdr_histogram_c/COPYING.txt +# third_party/json/LICENSE.double-conversion +## MIT +# third_party/fmt/LICENSE.rst +# third_party/gsl/LICENSE +# third_party/http_parser/LICENSE-MIT +# third_party/json/external/PEGTL/LICENSE +# third_party/json/LICENSE +# third_party/json/LICENSE.itoa +# third_party/jsonsl/LICENSE +# third_party/spdlog/LICENSE +License: ASL 2.0 and BSD and MIT URL: https://pecl.php.net/package/couchbase Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: https://patch-diff.githubusercontent.com/raw/couchbase/couchbase-php-client/pull/32.patch + BuildRequires: make +%if 0%{?rhel} == 7 +BuildRequires: cmake3 >= 3.17 +%else BuildRequires: cmake >= 3.17 +%endif BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?dtsprefix}gcc-c++ BuildRequires: %{?scl_prefix}php-devel >= 7.4 @@ -41,6 +64,7 @@ BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json BuildRequires: %{?scl_prefix}php-tokenizer BuildRequires: zlib-devel +BuildRequires: openssl-devel Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -82,9 +106,10 @@ Provides: bundled(spdlog) The PHP client library provides fast access to documents stored in a Couchbase Server. -* %{?scl_prefix}php-pecl-couchbase provides API version 1. +* %{?scl_prefix}php-pecl-couchbase provides API version 1. * %{?scl_prefix}php-pecl-couchbase2 provides API version 2. -* this package provides API version 3. +* %{?scl_prefix}php-pecl-couchbase3 provides API version 3. +* this package provides API version 4. Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. @@ -112,6 +137,11 @@ cp NTS/src/deps/couchbase-cxx-client/third_party/spdlog/LICENSE cp NTS/src/deps/couchbase-cxx-client/LICENSE.txt lic/LICENSE.txt cd NTS +%patch0 -p1 +%if 0%{?rhel} == 7 +sed -e 's/cmake/cmake3/' -i config.m4 +%endif + # Sanity check, really often broken extver=$(sed -n '/#define PHP_COUCHBASE_VERSION/{s/.* "//;s/".*$//;p}' src/php_couchbase.hxx) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -241,6 +271,7 @@ fi * Wed May 11 2022 Remi Collet - 4.0.0-1 - update to 4.0.0 - drop dependency on libcouchbase +- License is ASL 2.0 and BSD and MIT * Thu Dec 9 2021 Remi Collet - 3.2.2-1 - update to 3.2.2 -- cgit