aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic/zfs.spec.in
diff options
context:
space:
mode:
authorBen Allen <[email protected]>2014-06-02 20:04:57 +0000
committerBrian Behlendorf <[email protected]>2014-06-05 11:21:40 -0700
commit8b974ba036972d601542deec08d68a422a70c9f6 (patch)
tree21ea1e430a1ebcaa92f8bbe52188f0fd43fc5836 /rpm/generic/zfs.spec.in
parentc9b5cc8c00bd702d675108bb03365091fc9138a5 (diff)
Update spec file to enable systemd for RHEL7
Signed-off-by: Ben Allen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2355
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r--rpm/generic/zfs.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index 552e33c7d..5dc69416d 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