Update spec file to enable systemd for RHEL7

Signed-off-by: Ben Allen <bsallen@alcf.anl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2355
This commit is contained in:
Ben Allen 2014-06-02 20:04:57 +00:00 committed by Brian Behlendorf
parent c9b5cc8c00
commit 8b974ba036

View File

@ -17,6 +17,11 @@
%define _systemd 1 %define _systemd 1
%endif %endif
# RHEL >= 7 comes with systemd
%if 0%{?rhel} >= 7
%define _systemd 1
%endif
# Fedora >= 15 comes with systemd, but only >= 18 has # Fedora >= 15 comes with systemd, but only >= 18 has
# the proper macros # the proper macros
%if 0%{?fedora} >= 18 %if 0%{?fedora} >= 18