]> git.proxmox.com Git - mirror_spl.git/blobdiff - rpm/generic/spl.spec.in
Exclude python scripts from RPM shebang check
[mirror_spl.git] / rpm / generic / spl.spec.in
index 8fee0b87ef1c7467cf5dbcfc1d988f3a99e07605..7ba71fd58d4c87085f40a00a9b5d4227fddd55c6 100644 (file)
@@ -1,3 +1,13 @@
+# Python permits the !/usr/bin/python shebang for scripts that are cross
+# compatible between python2 and python3, but Fedora 28 does not.  Fedora
+# wants us to choose python3 for cross-compatible scripts.  Since we want
+# to support python2 and python3 users, exclude our scripts from Fedora 28's
+# RPM build check, so that we don't get a bunch of build warnings.
+#
+# Details: https://github.com/zfsonlinux/zfs/issues/7360
+#
+%global __brp_mangle_shebangs_exclude_from     splslab.py
+
 Name:           @PACKAGE@
 Version:        @VERSION@
 Release:        @RELEASE@%{?dist}