2 # - Check for status of man pages http://code.google.com/p/redis/issues/detail?id=202
5 %if "%{pld_release}" == "ac"
6 %bcond_with tests # build without tests
8 %bcond_without tests # build without tests
11 Summary: A persistent key-value database
16 Group: Applications/Databases
17 URL: http://code.google.com/p/redis/
18 Source0: http://redis.googlecode.com/files/%{name}-%{version}.tar.gz
19 # Source0-md5: 1658ab25161efcc0d0e98b4d1e38a985
20 Source1: %{name}.logrotate
22 Patch0: %{name}.conf.patch
23 BuildRequires: rpm >= 4.4.9-56
24 BuildRequires: rpmbuild(macros) >= 1.202
25 BuildRequires: sed >= 4.0
26 %{?with_tests:BuildRequires: tcl >= 8.5}
27 ExcludeArch: sparc sparc64
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Redis is an advanced key-value store. It is similar to memcached but
32 the data set is not volatile, and values can be strings, exactly like
33 in memcached, but also lists, sets, and ordered sets. All this data
34 types can be manipulated with atomic operations to push/pop elements,
35 add/remove elements, perform server side union, intersection,
36 difference between sets, and so forth. Redis supports different kind
40 Summary: Persistent key-value database with network interface
41 Group: Applications/Databases
42 Requires(post,preun): /sbin/chkconfig
43 Requires(postun): /usr/sbin/groupdel
44 Requires(postun): /usr/sbin/userdel
45 Requires(pre): /bin/id
46 Requires(pre): /usr/bin/getgid
47 Requires(pre): /usr/sbin/groupadd
48 Requires(pre): /usr/sbin/useradd
50 Provides: group(redis)
54 Redis is a key-value database in a similar vein to memcache but the
55 dataset is non-volatile. Redis additionally provides native support
56 for atomically manipulating and querying data structures such as lists
59 The dataset is stored entirely in memory and periodically flushed to
63 Summary: documentation for redis
67 HTML Documentation for Redis.
72 # Remove integration tests
73 %{__sed} -i -e '/ execute_tests "integration\/replication"/d' tests/test_helper.tcl
74 %{__sed} -i -e '/ execute_tests "integration\/aof"/d' tests/test_helper.tcl
80 CFLAGS="%{rpmcflags} -std=c99"
83 tclsh tests/test_helper.tcl
87 rm -rf $RPM_BUILD_ROOT
89 install -p -D %{name}-benchmark $RPM_BUILD_ROOT%{_bindir}/%{name}-benchmark
90 install -p -D %{name}-cli $RPM_BUILD_ROOT%{_bindir}/%{name}-cli
91 install -p -D %{name}-check-aof $RPM_BUILD_ROOT%{_bindir}/%{name}-check-aof
92 install -p -D %{name}-check-dump $RPM_BUILD_ROOT%{_bindir}/%{name}-check-dump
93 install -p -D %{name}-server $RPM_BUILD_ROOT%{_sbindir}/%{name}-server
95 install -p -D %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
96 install -p -D %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
97 install -p -D %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
98 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
99 install -d $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
100 install -d $RPM_BUILD_ROOT%{_localstatedir}/run/%{name}
103 rm -fr $RPM_BUILD_ROOT
106 %groupadd -g 256 redis
107 %useradd -u 256 -g redis -d %{_sharedstatedir}/redis -s /sbin/nologin -c 'Redis Server' redis
110 /sbin/chkconfig --add redis
111 %service redis restart
114 if [ "$1" = 0 ]; then
116 /sbin/chkconfig --del redis
120 if [ "$1" = "0" ]; then
126 %defattr(644,root,root,755)
127 %doc COPYING 00-RELEASENOTES BUGS Changelog README TODO
128 %attr(755,root,root) %{_bindir}/redis-benchmark
129 %attr(755,root,root) %{_bindir}/redis-check-aof
130 %attr(755,root,root) %{_bindir}/redis-check-dump
131 %attr(755,root,root) %{_bindir}/redis-cli
134 %defattr(644,root,root,755)
135 %config(noreplace) %{_sysconfdir}/%{name}.conf
136 %attr(754,root,root) /etc/rc.d/init.d/%{name}
137 %attr(755,root,root) %{_sbindir}/redis-server
138 %config(noreplace) /etc/logrotate.d/%{name}
139 %dir %attr(755,redis,root) %{_localstatedir}/lib/%{name}
140 %dir %attr(755,redis,root) %{_localstatedir}/log/%{name}
141 %dir %attr(755,redis,root) %{_localstatedir}/run/%{name}
144 %defattr(644,root,root,755)