Skip to content

Instantly share code, notes, and snippets.

@dexterbt1
Created January 25, 2010 18:39
Show Gist options
  • Save dexterbt1/286097 to your computer and use it in GitHub Desktop.
Save dexterbt1/286097 to your computer and use it in GitHub Desktop.
Summary: Redis advanced key-value store
Name: redis
Version: 1.2.1
Release: 1
License: BSD-style
Group: System Environment/Daemons
URL: http://code.google.com/p/redis/
Source: http://redis.googlecode.com/files/redis-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%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.
%prep
%setup -q
%build
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 redis-server %{buildroot}%{_sbindir}/redis-server
%{__install} -Dp -m0755 redis-cli %{buildroot}%{_bindir}/redis-cli
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc doc/*
%{_sbindir}/redis-server
%{_bindir}/redis-cli
%changelog
* Tue Jan 26 2010 <[email protected]>
- initial version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment