forked from pool/redis
fix
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
2f241e8390
commit
52aeaa5c1e
19
redis.spec
19
redis.spec
@@ -23,6 +23,7 @@ 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
|
||||
Patch1: %{name}-conf.patch
|
||||
# for init script
|
||||
Requires: netcat
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -35,9 +36,17 @@ 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
|
||||
Requires: redis = %{version}
|
||||
|
||||
%description doc
|
||||
HTML documentation for Redis
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
mv doc html
|
||||
|
||||
%build
|
||||
@@ -49,19 +58,23 @@ 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
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/redis
|
||||
install -D -m 0644 redis.conf $RPM_BUILD_ROOT%{_sysconfdir}/redis.conf
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc 00-RELEASENOTES BETATESTING.txt BUGS COPYING Changelog README TODO html/
|
||||
%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
|
||||
%dir %{_sysconfdir}/redis
|
||||
%config(noreplace) %{_sysconfdir}/redis.conf
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc html/
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user