2010-02-24 23:49:48 +01:00
|
|
|
# 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
|
2010-03-07 18:22:11 +01:00
|
|
|
Version: 1.2.4
|
2010-02-24 23:49:48 +01:00
|
|
|
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.gz
|
|
|
|
Patch0: %{name}-initscript.patch
|
2010-03-08 00:11:23 +01:00
|
|
|
Patch1: %{name}-conf.patch
|
2010-02-24 23:49:48 +01:00
|
|
|
# for init script
|
2010-03-05 13:30:26 +01:00
|
|
|
Requires: netcat
|
2010-03-05 01:14:55 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-02-24 23:49:48 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-03-08 00:11:23 +01:00
|
|
|
%package doc
|
|
|
|
Summary: HTML documentation for Redis
|
2010-03-08 14:40:39 +01:00
|
|
|
Group: Productivity/Databases/Servers
|
2010-03-08 00:11:23 +01:00
|
|
|
Requires: redis = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
HTML documentation for Redis
|
|
|
|
|
2010-02-24 23:49:48 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
2010-03-08 00:11:23 +01:00
|
|
|
%patch1
|
2010-02-24 23:49:48 +01:00
|
|
|
mv doc html
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?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
|
2010-03-08 00:11:23 +01:00
|
|
|
install -D -m 0644 redis.conf $RPM_BUILD_ROOT%{_sysconfdir}/redis.conf
|
2010-03-08 00:22:27 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/redis
|
2010-02-24 23:49:48 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2010-03-08 00:42:36 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%fillup_and_insserv %{name}
|
|
|
|
%restart_on_update %{name}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal %{name}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%insserv_cleanup
|
|
|
|
|
2010-02-24 23:49:48 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-03-08 00:11:23 +01:00
|
|
|
%doc 00-RELEASENOTES BETATESTING.txt BUGS COPYING Changelog README TODO
|
2010-02-24 23:49:48 +01:00
|
|
|
%{_bindir}/redis-benchmark
|
|
|
|
%{_bindir}/redis-cli
|
|
|
|
%{_sbindir}/redis-server
|
|
|
|
%{_sysconfdir}/init.d/redis
|
2010-03-07 18:22:11 +01:00
|
|
|
%{_sbindir}/rcredis
|
2010-03-08 00:11:23 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/redis.conf
|
2010-03-08 00:22:27 +01:00
|
|
|
%dir /var/lib/redis
|
2010-03-08 00:11:23 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc html/
|
2010-02-24 23:49:48 +01:00
|
|
|
|
|
|
|
%changelog
|