aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/redhat
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-11-11 18:06:36 -0800
committerGitHub <[email protected]>2018-11-11 18:06:36 -0800
commitecd3728b264b94de239932555b7046f1ddb936b2 (patch)
treed0309d351a139a174827823e764414ef3376eeae /rpm/redhat
parent0500bfd0b9f1393af5bae274551147c5b31e7ccc (diff)
Fix systemd spec file macros
Ensure that the _unitdir, _presetdir, _modulesloaddir, and _systemdgeneratordir macros are always defined. If not set them to the expected default values. Pass all of these options to ./configure and package the resulting files in those locations. Additionally, set __brp_mangle_shebangs_exclude_from until the conversion to Python 3 is complete so they may be built cleanly under mock. Reviewed-by: Neal Gompa <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #7567 Closes #8119
Diffstat (limited to 'rpm/redhat')
-rw-r--r--rpm/redhat/zfs-kmod.spec.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpm/redhat/zfs-kmod.spec.in b/rpm/redhat/zfs-kmod.spec.in
index 28a648418..473f2d032 100644
--- a/rpm/redhat/zfs-kmod.spec.in
+++ b/rpm/redhat/zfs-kmod.spec.in
@@ -1,6 +1,9 @@
%bcond_with debug
%bcond_with debuginfo
+# See comment in zfs.spec.in.
+%global __brp_mangle_shebangs_exclude_from arc_summary.py|arcstat.py|dbufstat.py|test-runner.py|zts-report.py
+
Name: @PACKAGE@-kmod
Version: @VERSION@
Release: @RELEASE@%{?dist}