[php-nrk-Predis] update to 1.0.1
Remi Collet
remi at fedoraproject.org
Fri Jan 2 14:58:12 UTC 2015
commit 34f9a7307be84652d1d7043a0d2eb0baa64a6566
Author: Remi Collet <remi at fedoraproject.org>
Date: Fri Jan 2 15:58:18 2015 +0100
update to 1.0.1
.gitignore | 1 +
php-nrk-Predis.spec | 31 ++++++++++++++-----------------
sources | 2 +-
3 files changed, 16 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 69fca96..07fafed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/Predis-0.8.5.tgz
/Predis-0.8.6.tgz
/Predis-1.0.0.tgz
+/Predis-1.0.1.tgz
diff --git a/php-nrk-Predis.spec b/php-nrk-Predis.spec
index 8854061..1e0b610 100644
--- a/php-nrk-Predis.spec
+++ b/php-nrk-Predis.spec
@@ -1,6 +1,6 @@
# spec file for php-nrk-Predis
#
-# Copyright (c) 2013-2014 Remi Collet
+# Copyright (c) 2013-2015 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
@@ -12,15 +12,14 @@
%global pear_channel pear.nrk.io
%if 0%{?fedora} >= 21
-%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
%else
-# Disabled, see https://github.com/nrk/predis/issues/220
-%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
%endif
Name: php-nrk-Predis
-Version: 1.0.0
-Release: 2%{?dist}
+Version: 1.0.1
+Release: 1%{?dist}
Summary: PHP client library for Redis
Group: Development/Libraries
@@ -28,8 +27,6 @@ License: MIT
URL: http://%{pear_channel}
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
-Patch0: %{pear_name}-upstream.patch
-
BuildArch: noarch
BuildRequires: php(language) >= 5.3.2
BuildRequires: php-pear(PEAR)
@@ -63,15 +60,7 @@ Flexible and feature-complete PHP client library for Redis.
%setup -q -c
cd %{pear_name}-%{version}
-%patch0 -p1 -b .upstream
-
-sed -e '/StringPreciseSetExpireTest.php/s/md5sum=.*name=/name=/' \
- -e '/StringSetExpireTest.php/s/md5sum=.*name=/name=/' \
- -e '/HashIncrementByFloatTest.php/s/md5sum=.*name=/name=/' \
- -e '/StringIncrementByFloatTest.php/s/md5sum=.*name=/name=/' \
- -e '/RedisClusterTest.php/s/md5sum=.*name=/name=/' \
- ../package.xml >%{name}.xml
-touch -r ../package.xml %{name}.xml
+mv ../package.xml %{name}.xml
%build
@@ -90,6 +79,11 @@ rm -rf %{buildroot}%{pear_metadir}/.??*
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
+# Relocate PATH so test suite can be run from install dir
+sed -e 's:tests/::' \
+ %{buildroot}%{pear_testdir}/%{pear_name}/phpunit.xml.dist \
+ > %{buildroot}%{pear_testdir}/%{pear_name}/phpunit.xml
+
%check
%if %{with_tests}
@@ -140,6 +134,9 @@ fi
%changelog
+* Fri Jan 02 2015 Remi Collet <remi at fedoraproject.org> - 1.0.1-1
+- Update to 1.0.1
+
* Fri Nov 07 2014 Remi Collet <remi at fedoraproject.org> - 1.0.0-2
- (re)enable test suite with redis 2.8.x
- add upstream patch for test suite on 32bits
diff --git a/sources b/sources
index be15b53..758f04b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0b53a97593d64ef6359a2340bd36fe19 Predis-1.0.0.tgz
+7b9848b53cf59e6200184520c2fbcbf7 Predis-1.0.1.tgz
More information about the scm-commits
mailing list