diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 44837f028..9faa3ba77 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -53,6 +53,10 @@ %bcond_with asan %bcond_with systemd +# Exclude test-runner.py from the rpmbuild shebang check to allow it to run +# under Python 2 and 3. +%global __brp_mangle_shebangs_exclude_from test-runner.py + # Generic enable switch for systemd %if %{with systemd} %define _systemd 1