summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-30 16:35:45 +0100
committerRemi Collet <remi@remirepo.net>2018-01-30 16:35:45 +0100
commit149d606d592d3ae5b8b93f5b53e5624456eb8c0a (patch)
tree001b423c5535bc9d79b1baf7ab3e5a98c2743d4b
parentf1994939e35fdb2a870c7e1c0c809f69ff5434cf (diff)
fix dep (from Fedora)
-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