SHA256
1
0
forked from pool/redis

Accepting request 140668 from home:vjt:ifad

As requested on https://build.opensuse.org/request/show/129485 I've added the required .changes entry.

Thanks,

~Marcello

OBS-URL: https://build.opensuse.org/request/show/140668
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=32
This commit is contained in:
Michal Hrusecky (old before rename to _miska_)
2012-11-20 12:09:48 +00:00
committed by Git OBS Bridge
parent ff9cd96e18
commit 4da5115e13
4 changed files with 179 additions and 81 deletions

View File

@@ -18,6 +18,7 @@
%define _data_dir %{_localstatedir}/lib/%{name}
%define _log_dir %{_localstatedir}/log/%{name}
%define _conf_dir %{_sysconfdir}/%{name}
Name: redis
Version: 2.4.15
@@ -68,14 +69,16 @@ different kind of sorting abilities.
make %{?_smp_mflags} CFLAGS="%{optflags}" V=1
%install
install -d %{buildroot}%{_log_dir} %{buildroot}%{_data_dir}
install -d %{buildroot}%{_log_dir} %{buildroot}%{_data_dir} %{buildroot}%{_conf_dir}
install -d %{buildroot}%{_log_dir}/default %{buildroot}%{_data_dir}/default
install -D -m 0755 src/redis-benchmark %{buildroot}%{_bindir}/redis-benchmark
install -m 0755 src/redis-cli %{buildroot}%{_bindir}/redis-cli
install -m 0755 src/redis-check-dump %{buildroot}%{_bindir}/redis-check-dump
install -m 0755 src/redis-check-aof %{buildroot}%{_bindir}/redis-check-aof
install -D -m 0755 src/redis-server %{buildroot}%{_sbindir}/redis-server
install -D -m 0640 redis.conf %{buildroot}%{_sysconfdir}/redis.conf
install -D -m 0640 redis.conf %{buildroot}%{_conf_dir}/default.conf.example
## install -Dp -m 0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/redis
#
@@ -107,7 +110,9 @@ make test && true
%post
%fillup_and_insserv %{name}
%restart_on_update %{name}
echo "To start the database server, do:"
echo "To start the database server, create your configuration"
echo "starting from /etc/redis/default.conf.example, place it"
echo "in /etc/redis and do: "
echo " sudo rcredis start; sudo insserv redis"
%preun
@@ -125,8 +130,10 @@ echo " sudo rcredis start; sudo insserv redis"
%{_sbindir}/redis-*
%{_sbindir}/rc%{name}
%config(noreplace) %{_sysconfdir}/init.d/redis
%config(noreplace) %attr(0640, %{name}, %{name}) %{_sysconfdir}/redis.conf
%config(noreplace) %attr(0640, %{name}, %{name}) %{_conf_dir}/default.conf.example
%dir %attr(0750, %{name}, %{name}) %{_data_dir}
%dir %attr(0750, %{name}, %{name}) %{_data_dir}/default
%dir %attr(0750, %{name}, %{name}) %{_log_dir}
%dir %attr(0750, %{name}, %{name}) %{_conf_dir}
%changelog