aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic
diff options
context:
space:
mode:
authorLOLi <[email protected]>2017-12-17 23:08:48 +0100
committerBrian Behlendorf <[email protected]>2017-12-17 14:08:48 -0800
commitee410eefc2a9c0f0e77bd765894ee7767af647ea (patch)
treedf4d4d418f793054fb118e4c2af61c5d5d051577 /rpm/generic
parent516c09d0d59585157e0804649aac7a675515fa7c (diff)
Fix --with-systemd on Debian-based distributions (#6963)
These changes propagate the "--with-systemd" configure option to the RPM spec file, allowing Debian-based distributions to package systemd-related files. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #6591 Closes #6963
Diffstat (limited to 'rpm/generic')
-rw-r--r--rpm/generic/zfs.spec.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
index b37b348ee..20bb36e4e 100644
--- a/rpm/generic/zfs.spec.in
+++ b/rpm/generic/zfs.spec.in
@@ -88,12 +88,15 @@ BuildRequires: libudev-devel
BuildRequires: libattr-devel
BuildRequires: openssl-devel
Requires: openssl
+%if 0%{?_systemd}
+BuildRequires: systemd
+%endif
%endif
+
%if 0%{?_systemd}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
-BuildRequires: systemd
%endif
# The zpool iostat/status -c scripts call some utilities like lsblk and iostat