summaryrefslogtreecommitdiffstats
path: root/php-pecl-couchbase4.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-03-19 11:10:06 +0100
committerRemi Collet <remi@php.net>2024-03-19 11:10:06 +0100
commit0fcdf4c59afef2bc0ed0c1c269298679e8f11a4f (patch)
tree5d63593de29910c39474783399c2d01e3b3e659a /php-pecl-couchbase4.spec
parent5cb1cb657a5475a6b79546f4615cfdc02258f6e5 (diff)
update to 4.2.0
raise dependency on PHP 8.1 not buildable offline, reported upstream
Diffstat (limited to 'php-pecl-couchbase4.spec')
-rw-r--r--php-pecl-couchbase4.spec90
1 files changed, 45 insertions, 45 deletions
diff --git a/php-pecl-couchbase4.spec b/php-pecl-couchbase4.spec
index bf4f960..0c958ce 100644
--- a/php-pecl-couchbase4.spec
+++ b/php-pecl-couchbase4.spec
@@ -1,20 +1,20 @@
# remirepo spec file for php-pecl-couchbase4
#
-# Copyright (c) 2013-2023 Remi Collet
+# Copyright (c) 2013-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-# NOTICE: el-7 is not supported (OpenSSL 1.0)
-# build in 2 QUEUES max (tmpfs size)
+# NOTICE: el-7 is not supported (cmake 3.19)
+# mock requires --enable-network
# Disable RPATH check
%global __arch_install_post /bin/true
%global __brp_check_rpaths /bin/true
-%{?scl:%scl_package php-pecl-couchbase2}
+%{?scl:%scl_package php-pecl-couchbase4}
%global pecl_name couchbase
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
@@ -27,40 +27,43 @@
Summary: Couchbase Server PHP extension
Name: %{?scl_prefix}php-pecl-couchbase4
-Version: 4.1.6
+Version: 4.2.0
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Apache-2.0
# src
-# third_party/json/LICENSE.ryu
+# src/deps/cache/json/LICENSE.ryu
+# src/deps/cache/boringssl
+## BOOST
+# asio/asio/include/asio.hpp
## BSD-3-Clause
-# third_party/snappy/COPYING
-# third_party/json/LICENSE.double-conversion
+# src/deps/cache/snappy/COPYING
+# src/deps/cache/json/LICENSE.double-conversion
## BSD-2-Clause
-# third_party/hdr_histogram_c/LICENSE.txt
-# third_party/hdr_histogram_c/COPYING.txt
+# src/deps/cache/hdr_histogram_c/LICENSE.txt
+# src/deps/cache/hdr_histogram_c/COPYING.txt
## 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: Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND MIT
+# src/cpm
+# src/deps/cache/fmt/LICENSE.rst
+# src/deps/cache/gsl/LICENSE
+# src/deps/cache/llhttp/LICENSE-MIT
+# src/deps/cache/json/external/PEGTL/LICENSE
+# src/deps/cache/json/LICENSE
+# src/deps/cache/json/LICENSE.itoa
+# src/deps/cache/spdlog/LICENSE
+License: Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND MIT AND BSL-1.0
URL: https://pecl.php.net/package/couchbase
Source0: https://pecl.php.net/get/%{sources}.tgz
+BuildRequires: git
BuildRequires: make
-BuildRequires: cmake >= 3.17
+BuildRequires: cmake >= 3.19
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
-BuildRequires: %{?scl_prefix}php-devel >= 8.0
+BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-json
BuildRequires: %{?scl_prefix}php-tokenizer
BuildRequires: zlib-devel
-BuildRequires: openssl-devel >= 1:1.1
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -93,7 +96,7 @@ Provides: bundled(fmt)
Provides: bundled(gsl)
Provides: bundled(http_parser)
Provides: bundled(json)
-Provides: bundled(jsonsl)
+Provides: bundled(boringssl)
Provides: bundled(spdlog)
@@ -116,30 +119,24 @@ sed -e '/LICENSE/s/role="doc"/role="src"/;/COPYING/s/role="doc"/role="src"/' -i
: Collect license files
mkdir lic
cd %{sources}
-cp src/deps/couchbase-cxx-client/third_party/hdr_histogram_c/COPYING.txt ../lic/hdr_histogram_c_COPYING.txt
-cp src/deps/couchbase-cxx-client/third_party/snappy/COPYING ../lic/snappy_COPYING
-cp src/deps/couchbase-cxx-client/third_party/fmt/LICENSE.rst ../lic/fmt_LICENSE.rst
-cp src/deps/couchbase-cxx-client/third_party/gsl/LICENSE ../lic/gsl_LICENSE
-cp src/deps/couchbase-cxx-client/third_party/hdr_histogram_c/LICENSE.txt ../lic/hdr_histogram_c_LICENSE.txt
-cp src/deps/couchbase-cxx-client/third_party/http_parser/LICENSE-MIT ../lic/http_parser_LICENSE-MIT
-cp src/deps/couchbase-cxx-client/third_party/json/external/PEGTL/LICENSE ../lic/PEGTL_LICENSE
-cp src/deps/couchbase-cxx-client/third_party/json/LICENSE ../lic/json_LICENSE
-cp src/deps/couchbase-cxx-client/third_party/json/LICENSE.double-conversion ../lic/json_LICENSE.double-conversion
-cp src/deps/couchbase-cxx-client/third_party/json/LICENSE.itoa ../lic/json_LICENSE.itoa
-cp src/deps/couchbase-cxx-client/third_party/json/LICENSE.ryu ../lic/json_LICENSE.ryu
-cp src/deps/couchbase-cxx-client/third_party/jsonsl/LICENSE ../lic/jsonsl_LICENSE
-cp src/deps/couchbase-cxx-client/third_party/spdlog/LICENSE ../lic/spdlog_LICENSE
-cp src/deps/couchbase-cxx-client/LICENSE.txt ../lic/LICENSE.txt
-
-: Build wrapper only once
-sed -e 's:/cmake-build:/../cmake-build:' -i config.m4
+cp src/deps/cache/hdr_histogram/*/hdr_histogram/COPYING.txt ../lic/hdr_histogram_c_COPYING.txt
+cp src/deps/cache/hdr_histogram/*/hdr_histogram/LICENSE.txt ../lic/hdr_histogram_c_LICENSE.txt
+cp src/deps/cache/snappy/*/snappy/COPYING ../lic/snappy_COPYING
+cp src/deps/cache/fmt/*/fmt/LICENSE.rst ../lic/fmt_LICENSE.rst
+cp src/deps/cache/gsl/*/gsl/LICENSE ../lic/gsl_LICENSE
+cp src/deps/cache/llhttp/*/llhttp/LICENSE-MIT ../lic/http_parser_LICENSE-MIT
+cp src/deps/cache/json/*/json/external/PEGTL/LICENSE ../lic/PEGTL_LICENSE
+cp src/deps/cache/json/*/json/LICENSE ../lic/json_LICENSE
+cp src/deps/cache/json/*/json/LICENSE.double-conversion ../lic/json_LICENSE.double-conversion
+cp src/deps/cache/json/*/json/LICENSE.itoa ../lic/json_LICENSE.itoa
+cp src/deps/cache/json/*/json/LICENSE.ryu ../lic/json_LICENSE.ryu
+cp src/deps/cache/spdlog/*/spdlog/LICENSE ../lic/spdlog_LICENSE
+cp src/deps/cache/boringssl/*/boringssl/LICENSE ../lic/boringssl_LICENSE
+cp src/deps/couchbase-cxx-client/LICENSE.txt ../lic/LICENSE.txt
: Parallel build
sed -e 's/--verbose/%{?_smp_mflags} --verbose/' -i Makefile.frag
-: Change option to avoid download
-sed -e '/Download/s/TRUE/FALSE/' -i src/deps/couchbase-cxx-client/cmake/OpenSSL.cmake
-
: Sanity check as 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
@@ -232,16 +229,19 @@ done
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
-%{php_extdir}/libcouchbase_php_wrapper.so
%if %{with_zts}
%config(noreplace) %{php_ztsinidir}/%{ini_name}
%{php_ztsextdir}/%{pecl_name}.so
-%{php_ztsextdir}/libcouchbase_php_wrapper.so
%endif
%changelog
+* Tue Mar 19 2024 Remi Collet <remi@remirepo.net> - 4.2.0-1
+- update to 4.2.0
+- raise dependency on PHP 8.1
+- not buildable offline, reported upstream
+
* Wed Oct 11 2023 Remi Collet <remi@remirepo.net> - 4.1.6-1
- update to 4.1.6
- drop patch merged upstream