From 877bd278f6db4053894920725fb7ba6e6aea3073 Mon Sep 17 00:00:00 2001 From: Yaroslav Sidlovsky Date: May 22 2022 16:12:48 +0000 Subject: Change shebang instead of using __brp_mangle_shebangs_exclude_from --- diff --git a/kitty.spec b/kitty.spec index 50f1cad..bcc144a 100644 --- a/kitty.spec +++ b/kitty.spec @@ -1,6 +1,3 @@ -# Prevent brp-mangle-shebangs rpm script from breaking shebang in askpass.py -%global __brp_mangle_shebangs_exclude_from askpass.py - %if 0%{?fedora} >= 36 # Rawhide builds is broken, # see: https://bugzilla.redhat.com/show_bug.cgi?id=2043178, @@ -166,8 +163,9 @@ This package contains the documentation for %{name}. sed "s/html_theme = 'furo'/html_theme = 'classic'/" -i docs/conf.py # Replace python shebangs to make them compatible with fedora -find -type f -name "*.py" -exec sed -e 's|/usr/bin/env python3|%{__python3}|g' \ - -e 's|/usr/bin/env python|%{__python3}|g' \ +find -type f -name "*.py" -exec sed -e 's|/usr/bin/env python3|%{__python3}|g' \ + -e 's|/usr/bin/env python|%{__python3}|g' \ + -e 's|/usr/bin/env -S kitty|/usr/bin/kitty|g' \ -i "{}" \; # non-executable-script