summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--memcached.spec5
1 files changed, 2 insertions, 3 deletions
diff --git a/memcached.spec b/memcached.spec
index cf72eee..7877458 100644
--- a/memcached.spec
+++ b/memcached.spec
@@ -48,6 +48,7 @@ Source3: memcached.service
Patch1: memcached-unit.patch
BuildRequires: pkgconfig(libevent) >= 2
+BuildRequires: systemd
%if 0%{?fedora} > 22
BuildRequires: perl-generators
%endif
@@ -57,9 +58,7 @@ BuildRequires: cyrus-sasl-devel
%endif
%if %{with_systemd}
-Requires(post): systemd
-Requires(preun): systemd
-Requires(postun): systemd
+%{?systemd_requires}
# For triggerun
Requires(post): systemd-sysv
%else