use macro for systemd scriptlet dependencies

This commit is contained in:
Miroslav Lichvar 2018-01-30 12:15:31 +01:00
parent 2dea76c120
commit 9d38b9a1df

View File

@ -17,16 +17,14 @@ Source1: memcached.sysconfig
Patch1: memcached-unit.patch
BuildRequires: libevent-devel systemd-units
BuildRequires: libevent-devel systemd
BuildRequires: perl-generators
BuildRequires: perl(Test::More), perl(Test::Harness)
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
%{?with_seccomp:BuildRequires: libseccomp-devel}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires(pre): shadow-utils
%{?systemd_requires}
%description
memcached is a high-performance, distributed memory object caching