Sisyphus repository
Last update: 20 november 2019 | SRPMs: 17512 | Visits: 15815970
en ru br
ALT Linux repos
5.0: 1.2.6-alt2
4.1: 1.2.2-alt1
4.0: 1.1.12-alt1

Group :: System/Servers
RPM: memcached

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable seccomp
%def_disable extstore
%def_enable sasl
%def_enable tls

Name: memcached
Version: 1.5.17
Release: alt1

Summary: memcached - memory caching daemon
License: BSD
Group: System/Servers
Source: %name-%version.tar
Patch: %name-%version.patch

%define pkg_user memcached
%define pkg_group memcached

BuildRequires: libevent-devel perl-devel perl-AnyEvent perl-YAML perl-Term-ReadKey
%{?_enable_seccomp:BuildRequires: libseccomp-devel}
%{?_enable_sasl:BuildRequires: libsasl2-devel}
%{?_enable_tls:BuildRequires: libssl-devel >= 1.1.0}

memcached is a flexible memory object caching daemon designed to  alle-
viate  database  load in dynamic web applications by storing objects in
specifically  optimized  to  avoid swapping and always use non-blocking

%package devel
Summary: Files needed for development using memcached protocol
Group: Development/C
BuildArch: noarch
Requires: %name = %version-%release

%description devel
This package contains files needed for development using memcached

%package tool
Summary: Stats and management tool for memcached
Group: Development/Tools
BuildArch: noarch

%description tool
memcached-tool is a Perl script used to print statistics from a running
memcached instance.

%patch -p1
sed -i 's,`git describe`,"%version-%release",g'

%configure \
%{subst_enable seccomp} \
%{subst_enable extstore} \
%{subst_enable sasl} \
%{subst_enable tls}


install -pD -m755 %name.init %buildroot%_initdir/%name
install -pD -m640 %name.sysconfig %buildroot/etc/sysconfig/%name
install -pD -m644 %name.service %buildroot/%_unitdir/%name.service
install -pD -m644 %{name} at .service %buildroot/%_unitdir/%{name} at .service

# tool

install -pD -m755 scripts/memcached-tool %buildroot%_bindir/memcached-tool
install -pD -m644 scripts/memcached-tool.1 %buildroot%_man1dir/memcached-tool.1

%make test ||:

%_sbindir/groupadd -r -f %pkg_group
%_sbindir/useradd -r -g %pkg_group -d /dev/null -s /dev/null -n %pkg_user \
2> /dev/null > /dev/null ||:
if [ $1 -eq 2 ] && [ ! -f /var/run/%name/ ] && [ -f /var/run/ ]; then
  mkdir /var/run/%name/
  mv /var/run/ /var/run/%name/

%post_service %name

%preun_service %name

%config(noreplace) %attr(640,root,adm) /etc/sysconfig/%name
%doc AUTHORS doc/CONTRIBUTORS ChangeLog NEWS doc/*.txt

%files devel

%files tool


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin