SHA256
1
0
forked from pool/redis
redis/redis.spec
Marcus Rueckert 816cb8b107 - update to version 1.2.6
fixes two critical replication bugs, and a few improvements.
  - Fixed Issue 207
    (http://code.google.com/p/redis/issues/detail?id=207) (broken
    replication with binary arguments not in the last position with
    the MSET command or any other command issued with new
    multi-bulk protocol)
  - Fixed Issue 174
    (http://code.google.com/p/redis/issues/detail?id=174) (temp
    names collisions producing broken slave-side .rdb files)
  - Redis-cli backported from Redis master, with interactive mode,
    line editing via the linenoise library, auth ability, and much
    more.
  - ZRANGEBYSCORE now supports WITHSCORES as well (backported from
    master)
  - A simplified version of redis-stat (from redis tools) added.
- update to version 1.2.5
  fixes a replication bug: multiple slaves connecting to the same
  master could lead to random crashes or corruptions.
- use PROF parameter to pass in optflags

OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=11
2010-05-17 14:14:15 +00:00

95 lines
2.9 KiB
RPMSpec

# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: redis
Version: 1.2.6
Release: 1
Url: http://code.google.com/p/redis/
License: BSD License
Group: Productivity/Databases/Servers
Summary: Persistent key-value database with built-in net interface
Source: http://redis.googlecode.com/files/%{name}-%{version}.tar.bz2
Patch0: %{name}-initscript.patch
Patch1: %{name}-conf.patch
# for init script
Requires: netcat
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Redis is an advanced key-value store. It is similar to memcached but the dataset
is not volatile, and values can be strings, exactly like in memcached,
but also lists, sets, and ordered sets. All this data types can be manipulated
with atomic operations to push/pop elements, add/remove elements, perform server
side union, intersection, difference between sets, and so forth. Redis supports
different kind of sorting abilities.
%package doc
Summary: HTML documentation for Redis
Group: Productivity/Databases/Servers
Requires: redis = %{version}
%description doc
HTML documentation for Redis
%prep
%setup -q
%patch0
%patch1
mv doc html
%build
make PROF="%{optflags}" %{?jobs:-j%jobs}
%install
install -D -m 0755 redis-benchmark $RPM_BUILD_ROOT%{_bindir}/redis-benchmark
install -D -m 0755 redis-cli $RPM_BUILD_ROOT%{_bindir}/redis-cli
install -D -m 0755 redis-server $RPM_BUILD_ROOT%{_sbindir}/redis-server
install -D -m 0755 utils/redis_init_script $RPM_BUILD_ROOT%{_sysconfdir}/init.d/redis
ln -s %{_sysconfdir}/init.d/redis $RPM_BUILD_ROOT%{_sbindir}/rcredis
install -D -m 0644 redis.conf $RPM_BUILD_ROOT%{_sysconfdir}/redis.conf
mkdir -p $RPM_BUILD_ROOT/var/lib/redis
%clean
rm -rf $RPM_BUILD_ROOT
%post
%fillup_and_insserv %{name}
%restart_on_update %{name}
%preun
%stop_on_removal %{name}
%postun
%insserv_cleanup
%files
%defattr(-,root,root)
%doc 00-RELEASENOTES BETATESTING.txt BUGS COPYING Changelog README TODO
%{_bindir}/redis-benchmark
%{_bindir}/redis-cli
%{_sbindir}/redis-server
%{_sysconfdir}/init.d/redis
%{_sbindir}/rcredis
%config(noreplace) %{_sysconfdir}/redis.conf
%dir /var/lib/redis
%files doc
%defattr(-,root,root)
%doc html/
%changelog