summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-11 06:21:10 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-11 06:21:10 +0200
commitbbcdf919538ef3919c1fa107f85c270d52c7435c (patch)
tree138a037b8ebda864d07700e51e2c9d904ba5c4dc
parent67c8f44601286f9dc48fe7b36a62ae09987891fc (diff)
php-pecl-redis: 3.0.0 (php 7, stable)
-rw-r--r--REFLECTION-PHP72
-rw-r--r--php-pecl-redis-php7.spec40
2 files changed, 7 insertions, 35 deletions
diff --git a/REFLECTION-PHP7 b/REFLECTION-PHP7
index f899c51..5e89d89 100644
--- a/REFLECTION-PHP7
+++ b/REFLECTION-PHP7
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #91 redis version 3.0.0-dev ] {
+Extension [ <persistent> extension #91 redis version 3.0.0 ] {
- INI {
Entry [ redis.arrays.names <ALL> ]
diff --git a/php-pecl-redis-php7.spec b/php-pecl-redis-php7.spec
index a44797c..8b8a7fb 100644
--- a/php-pecl-redis-php7.spec
+++ b/php-pecl-redis-php7.spec
@@ -10,11 +10,7 @@
# Please, preserve the changelog entries
#
%if 0%{?scl:1}
-%if "%{scl}" == "rh-php56"
-%global sub_prefix more-php56-
-%else
%global sub_prefix %{scl_prefix}
-%endif
%scl_package php-pecl-redis
%else
%global _root_bindir %{_bindir}
@@ -25,18 +21,13 @@
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phpredis
%global gh_project phpredis
-%global gh_date 20160603
+#global gh_date 20160603
%global pecl_name redis
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global with_tests 0%{?_with_tests:1}
%global with_igbin 1
-%if "%{php_version}" < "5.6"
-# after igbinary
-%global ini_name %{pecl_name}.ini
-%else
# after 40-igbinary
%global ini_name 50-%{pecl_name}.ini
-%endif
Summary: Extension for communicating with the Redis key-value store
Name: %{?sub_prefix}php-pecl-redis
@@ -52,7 +43,6 @@ License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/redis
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
%if %{with_igbin}
@@ -66,8 +56,7 @@ BuildRequires: redis >= 3
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%if %{with_igbin}
-# php-pecl-igbinary missing php-pecl(igbinary)%%{?_isa}
-Requires: %{?sub_prefix}php-pecl-igbinary%{?_isa}
+Requires: %{?sub_prefix}php-pecl(igbinary)%{?_isa}
%endif
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
@@ -87,18 +76,12 @@ Obsoletes: php53-pecl-%{pecl_name} <= %{version}
Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
Obsoletes: php54-pecl-%{pecl_name} <= %{version}
Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "5.5"
Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.0"
Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "7.1"
Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
@@ -136,11 +119,9 @@ mv %{gh_project}-%{gh_commit} NTS
'
sed -e '/PHP_REDIS_VERSION/s/3.0.0-rc1/%{version}-dev/' -i NTS/php_redis.h
%else
-%setup -q -c -a 1
+%setup -q -c
# rename source folder
mv %{pecl_name}-%{version} NTS
-# tests folder from github archive
-mv phpredis-%{version}/tests NTS/tests
%endif
%{?_licensedir:sed -e '/COPYING/s/role="doc"/role="src"/' -i package.xml}
@@ -215,8 +196,6 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
-
# Install the NTS stuff
make -C NTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -258,11 +237,6 @@ done
%if %{with_tests}
cd NTS/tests
-# this test requires redis >= 2.6.9
-# https://github.com/nicolasff/phpredis/pull/333
-sed -e s/testClient/SKIP_testClient/ \
- -i TestRedis.php
-
# Launch redis server
mkdir -p {run,log,lib}/redis
sed -e "s:/^pidfile.*$:/pidfile $PWD/run/redis.pid:" \
@@ -325,12 +299,7 @@ fi
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/COPYING}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -345,6 +314,9 @@ rm -rf %{buildroot}
%changelog
+* Sat Jun 11 2016 Remi Collet <remi@fedoraproject.org> - 3.0.0-1
+- Update to 3.0.0 (stable)
+
* Thu Jun 9 2016 Remi Collet <remi@fedoraproject.org> - 3.0.0-0.1.20160603git6447940
- refresh and bump version