summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-08 10:21:57 +0100
committerRemi Collet <remi@remirepo.net>2018-01-08 10:21:57 +0100
commit338cff2a939062dd13d3db73c7ba5b9af05c1327 (patch)
treee1ae771c6ec5899867d2198c44c94fc234f0e306
parent773e93d135ec5f42a7bca2c99f92474d9639e3ec (diff)
cleanup
-rw-r--r--php-pecl-couchbase2.spec16
1 files changed, 5 insertions, 11 deletions
diff --git a/php-pecl-couchbase2.spec b/php-pecl-couchbase2.spec
index c419428..610893d 100644
--- a/php-pecl-couchbase2.spec
+++ b/php-pecl-couchbase2.spec
@@ -13,14 +13,8 @@
%global pecl_name couchbase
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
-
-%if "%{php_version}" < "5.6"
-# After igbinary, (and XDebug for 5.4)
-%global ini_name z-%{pecl_name}.ini
-%else
-# After 40-igbinary and 40-json
+# After 20-tokenizer.ini, 40-igbinary and 40-json
%global ini_name 50-%{pecl_name}.ini
-%endif
#global prever beta4
%global libbuildver %(pkg-config --silence-errors --modversion libcouchbase 2>/dev/null || echo 65536)
@@ -31,13 +25,14 @@ Version: 2.4.3
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
Group: Development/Languages
-URL: pecl.php.net/package/couchbase
+URL: http://pecl.php.net/package/couchbase
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
BuildRequires: %{?scl_prefix}php-devel >= 5.6
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.8.4
BuildRequires: fastlz-devel
BuildRequires: zlib-devel
@@ -46,6 +41,7 @@ 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}}
@@ -104,14 +100,12 @@ in a Couchbase Server.
%{?scl_prefix}php-pecl-couchbase provides API version 1.
This package provides API version 2.
-Documentation:
-http://docs.couchbase.com/prebuilt/php-sdk-2.0/topics/overview.html
-
Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
%prep
%setup -q -c
+# override the old PHP 4 metadata file
[ -f package2.xml ] && mv package2.xml package.xml
mv %{pecl_name}-%{version}%{?prever} NTS