diff options
author | Remi Collet <remi@remirepo.net> | 2020-11-12 15:09:06 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-11-12 15:09:06 +0100 |
commit | f26d49f20dff3bb0153f0df0b223c6601d0fd713 (patch) | |
tree | ec0363498b241b2518b82bf45c993c476e2a88d9 /php-pecl-couchbase3.spec | |
parent | fb18a6d0dbee723412b85d1f5eeb134211ea0c90 (diff) |
update to 3.0.4
rename to php-pecl-couchbase3
raise dependency on PHP 7.1
raise dependency on libcouchbase 3.0
drop dependency on igbinary extension
Diffstat (limited to 'php-pecl-couchbase3.spec')
-rw-r--r-- | php-pecl-couchbase3.spec | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/php-pecl-couchbase3.spec b/php-pecl-couchbase3.spec index 6fa9291..16c1e71 100644 --- a/php-pecl-couchbase3.spec +++ b/php-pecl-couchbase3.spec @@ -1,4 +1,4 @@ -# remirepo spec file for php-pecl-couchbase2 +# remirepo spec file for php-pecl-couchbase3 # # Copyright (c) 2013-2020 Remi Collet # License: CC-BY-SA @@ -24,29 +24,26 @@ %global libbuildver %(pkg-config --silence-errors --modversion libcouchbase 2>/dev/null || echo 65536) Summary: Couchbase Server PHP extension -Name: %{?sub_prefix}php-pecl-couchbase2 -Version: 2.6.2 +Name: %{?sub_prefix}php-pecl-couchbase3 +Version: 3.0.4 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP URL: https://pecl.php.net/package/couchbase Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 5.6 +BuildRequires: %{?scl_prefix}php-devel >= 7.1 BuildRequires: %{?scl_prefix}php-pear -BuildRequires: %{?scl_prefix}php-pecl-igbinary-devel BuildRequires: %{?scl_prefix}php-json BuildRequires: %{?scl_prefix}php-tokenizer -BuildRequires: pkgconfig(libcouchbase) >= 2.10.5 +BuildRequires: pkgconfig(libcouchbase) >= 3.0.0 BuildRequires: fastlz-devel BuildRequires: zlib-devel Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-json%{?_isa} -Requires: %{?scl_prefix}php-igbinary%{?_isa} Requires: %{?scl_prefix}php-tokenizer%{?_isa} -Requires: libcouchbase%{?_isa} >= %{libbuildver} %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} Provides: %{?scl_prefix}php-%{pecl_name} = %{version} @@ -57,28 +54,32 @@ Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl-%{pecl_name}2 = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}2%{?_isa} = %{version}-%{release} %endif -%if "%{php_version}" > "7.0" -Obsoletes: %{?scl_prefix}php-pecl-couchbase < 2 -Provides: %{?scl_prefix}php-pecl-couchbase = %{version} -Provides: %{?scl_prefix}php-pecl-couchbase%{?_isa} = %{version} +Obsoletes: %{?scl_prefix}php-pecl-couchbase < 3 +Provides: %{?scl_prefix}php-pecl-couchbase = %{version} +Provides: %{?scl_prefix}php-pecl-couchbase%{?_isa} = %{version} +%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9 || "%{php_version}" > "8.0" +Obsoletes: %{?scl_prefix}php-pecl-couchbase2 < 3 +Provides: %{?scl_prefix}php-pecl-couchbase2 = %{version} +Provides: %{?scl_prefix}php-pecl-couchbase2%{?_isa} = %{version} %else # Only 1 version can be installed -Conflicts: %{?scl_prefix}php-pecl-couchbase < 2 +Conflicts: %{?scl_prefix}php-pecl-couchbase < 3 +Conflicts: %{?scl_prefix}php-pecl-couchbase2 < 3 %endif %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff %if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name}2 <= %{version} -Obsoletes: php72w-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php72u-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name}2 <= %{version} -Obsoletes: php73w-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php73-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name}2 <= %{version} -Obsoletes: php74w-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php74-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif @@ -130,6 +131,7 @@ extension=%{pecl_name}.so ;couchbase.encoder.compression_factor = 0.0 ;couchbase.decoder.json_arrays = 0 ;couchbase.pool.max_idle_time_sec = 60 +;couchbase.allow_fallback_to_bucket_connection = 0 EOF %if 0%{?__ztsphp:1} @@ -189,7 +191,6 @@ done : minimal NTS load test %{__php} -n \ -d extension=tokenizer.so \ - -d extension=igbinary.so \ -d extension=json.so \ -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ -m | grep %{pecl_name} @@ -198,7 +199,6 @@ done : minimal ZTS load test %{__ztsphp} -n \ -d extension=tokenizer.so \ - -d extension=igbinary.so \ -d extension=json.so \ -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ -m | grep %{pecl_name} @@ -240,6 +240,13 @@ fi %changelog +* Thu Nov 12 2020 Remi Collet <remi@remirepo.net> - 3.0.4-1 +- update to 3.0.4 +- rename to php-pecl-couchbase3 +- raise dependency on PHP 7.1 +- raise dependency on libcouchbase 3.0 +- drop dependency on igbinary extension + * Tue Feb 4 2020 Remi Collet <remi@remirepo.net> - 2.6.2-1 - update to 2.6.2 |