summaryrefslogtreecommitdiffstats
path: root/php-nrk-Predis.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-11-03 10:19:23 +0100
committerRemi Collet <fedora@famillecollet.com>2014-11-03 10:19:23 +0100
commit7938b1815a1b148b186a4e8ac5786213185e8c2b (patch)
tree1ef310dd75a5e42e3018e92ba24bb112dfc04140 /php-nrk-Predis.spec
parenta30b08ee3a8a51be9091bb73cf22149123c3e765 (diff)
php-nrk-Predis: 1.0.0
Diffstat (limited to 'php-nrk-Predis.spec')
-rw-r--r--php-nrk-Predis.spec17
1 files changed, 14 insertions, 3 deletions
diff --git a/php-nrk-Predis.spec b/php-nrk-Predis.spec
index 76e66c9..41470f8 100644
--- a/php-nrk-Predis.spec
+++ b/php-nrk-Predis.spec
@@ -17,7 +17,7 @@
%endif
Name: php-nrk-Predis
-Version: 0.8.6
+Version: 1.0.0
Release: 1%{?dist}
Summary: PHP client library for Redis
@@ -26,6 +26,8 @@ License: MIT
URL: http://%{pear_channel}
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
+Patch0: %{pear_name}-upstream.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php(language) >= 5.3.2
@@ -60,7 +62,12 @@ Flexible and feature-complete PHP client library for Redis.
%setup -q -c
cd %{pear_name}-%{version}
-cp ../package.xml %{name}.xml
+%patch0 -p1 -b .upstream
+
+sed -e '/StringPreciseSetExpireTest.php/s/md5sum=.*name=/name=/' \
+ -e '/StringSetExpireTest.php/s/md5sum=.*name=/name=/' \
+ ../package.xml >%{name}.xml
+touch -r ../package.xml %{name}.xml
%build
@@ -89,7 +96,7 @@ pidfile=$PWD/run/redis/redis.pid
mkdir -p {run,log,lib}/redis
sed -e "s:/var:$PWD:" \
/etc/redis.conf >redis.conf
-%{_sbindir}/redis-server \
+%{_bindir}/redis-server \
./redis.conf \
--daemonize yes \
--pidfile $pidfile
@@ -135,6 +142,10 @@ fi
%changelog
+* Mon Nov 03 2014 Remi Collet <remi@fedoraproject.org> - 1.0.0-1
+- Update to 1.0.0
+- upstream patch for tests
+
* Wed Jul 16 2014 Remi Collet <remi@fedoraproject.org> - 0.8.6-1
- Update to 0.8.6
- provides php-composer(predis/predis)