summaryrefslogtreecommitdiffstats
path: root/php-pecl-redis5.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-redis5.spec')
-rw-r--r--php-pecl-redis5.spec31
1 files changed, 14 insertions, 17 deletions
diff --git a/php-pecl-redis5.spec b/php-pecl-redis5.spec
index 79df468..c1b1875 100644
--- a/php-pecl-redis5.spec
+++ b/php-pecl-redis5.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-redis5
#
-# Copyright (c) 2012-2019 Remi Collet
+# Copyright (c) 2012-2020 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -24,16 +24,18 @@
# after 20-json, 40-igbinary and 40-msgpack
%global ini_name 50-%{pecl_name}.ini
-%global upstream_version 5.1.1
-#global upstream_prever RC2
+%global upstream_version 5.2.0
+%global upstream_prever RC1
Summary: Extension for communicating with the Redis key-value store
Name: %{?sub_prefix}php-pecl-redis5
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
License: PHP
-URL: http://pecl.php.net/package/redis
+URL: https://pecl.php.net/package/redis
+
+Source1: https://raw.githubusercontent.com/phpredis/phpredis/c58fb7316a82a6c5fceaaba83f3598f4212f8582/tests/RedisSentinelTest.php
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel > 7
@@ -42,9 +44,7 @@ BuildRequires: %{?scl_prefix}php-json
%if %{with_igbin}
BuildRequires: %{?scl_prefix}php-pecl-igbinary-devel
%endif
-%ifnarch ppc64
BuildRequires: %{?scl_prefix}php-pecl-msgpack-devel >= 2.0.3
-%endif
BuildRequires: liblzf-devel
BuildRequires: libzstd-devel >= 1.3.0
# to run Test suite
@@ -58,9 +58,7 @@ Requires: %{?scl_prefix}php-json%{?_isa}
%if %{with_igbin}
Requires: %{?scl_prefix}php-pecl(igbinary)%{?_isa}
%endif
-%ifnarch ppc64
Requires: %{?scl_prefix}php-pecl-msgpack%{?_isa}
-%endif
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
Obsoletes: %{?scl_prefix}php-%{pecl_name} < 3
@@ -132,6 +130,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+cp %{SOURCE1} tests/
+
# Use system library
rm -r liblzf
@@ -205,9 +205,7 @@ cd NTS
%if %{with_igbin}
--enable-redis-igbinary \
%endif
-%ifnarch ppc64
--enable-redis-msgpack \
-%endif
--enable-redis-lzf \
--with-liblzf \
--enable-redis-zstd \
@@ -224,9 +222,7 @@ cd ../ZTS
%if %{with_igbin}
--enable-redis-igbinary \
%endif
-%ifnarch ppc64
--enable-redis-msgpack \
-%endif
--enable-redis-lzf \
--with-liblzf \
--enable-redis-zstd \
@@ -263,11 +259,9 @@ done
# simple module load test
DEPS="--no-php-ini --define extension=json.so"
%if %{with_igbin}
- DEPS="$DEPS --define extension=igbinary.so"
-%endif
-%ifnarch ppc64
- DEPS="$DEPS --define extension=msgpack.so"
+DEPS="$DEPS --define extension=igbinary.so"
%endif
+DEPS="$DEPS --define extension=msgpack.so"
%{__php} $DEPS \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
@@ -351,6 +345,9 @@ fi
%changelog
+* Mon Feb 17 2020 Remi Collet <remi@remirepo.net> - 5.2.0~RC1-1
+- update to 5.2.0RC1
+
* Mon Nov 11 2019 Remi Collet <remi@remirepo.net> - 5.1.1-1
- update to 5.1.1