From 8b974ba036972d601542deec08d68a422a70c9f6 Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Mon, 2 Jun 2014 20:04:57 +0000 Subject: [PATCH] Update spec file to enable systemd for RHEL7 Signed-off-by: Ben Allen Signed-off-by: Brian Behlendorf Closes #2355 --- rpm/generic/zfs.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 552e33c7d9..5dc69416d3 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -17,6 +17,11 @@ %define _systemd 1 %endif +# RHEL >= 7 comes with systemd +%if 0%{?rhel} >= 7 +%define _systemd 1 +%endif + # Fedora >= 15 comes with systemd, but only >= 18 has # the proper macros %if 0%{?fedora} >= 18