redis/redis.spec

78 lines
1.8 KiB
RPMSpec
Raw Normal View History

Name: redis
Version: 2.8.9
Release: 1mamba
Summary: An open source, BSD licensed, advanced key-value store
Group: System/Database
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://redis.io/
Source: http://download.redis.io/releases/redis-%{version}.tar.gz
Source1: redis.service
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
%debug_package
%prep
%setup -q
%build
%make
#make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall PREFIX=%{buildroot}%{_prefix}
install -D -m0644 redis.conf %{buildroot}%{_sysconfdir}/redis.conf
install -D -m0644 sentinel.conf %{buildroot}%{_sysconfdir}/sentinel.conf
install -D -m0644 %{SOURCE1} %{buildroot}/lib/systemd/system/redis.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
systemctl -q enable redis
systemctl -q restart redis
fi
:
%preun
if [ $1 -eq 0 ]; then
systemctl -q stop redis
systemctl -q disable redis
fi
:
%postun
if [ $1 -eq 0 ]; then
systemctl -q daemon-reload
fi
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/redis.conf
%config(noreplace) %{_sysconfdir}/sentinel.conf
%{_bindir}/redis-benchmark
%{_bindir}/redis-check-aof
%{_bindir}/redis-check-dump
%{_bindir}/redis-cli
%{_bindir}/redis-server
/lib/systemd/system/redis.service
%doc COPYING
%changelog
* Sun Jun 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.9-1mamba
- package created using the webbuild interface