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 <ngompa@datto.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7567
Closes #8119
This commit is contained in:
Brian Behlendorf
2018-11-11 18:06:36 -08:00
committed by GitHub
parent 0500bfd0b9
commit ecd3728b26
5 changed files with 29 additions and 5 deletions
+3
View File
@@ -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}