From c4cab74a7d3a56ed87f9f1649d926dd514da1bac Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 2 Jul 2018 12:04:23 +0000 Subject: [PATCH] #1568 / #1891: prevent unhelpful fedora python shebang mangling git-svn-id: https://xpra.org/svn/Xpra/trunk@19812 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- rpmbuild/xpra.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpmbuild/xpra.spec b/rpmbuild/xpra.spec index ee2e2a7123..eb4a08dd0b 100644 --- a/rpmbuild/xpra.spec +++ b/rpmbuild/xpra.spec @@ -35,6 +35,12 @@ #we never want to depend on proprietary nvidia bits: %global __requires_exclude ^libnvidia-.*\\.so.*$ +# 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. +%global __brp_mangle_shebangs_exclude_from xpraforwarder|auth_dialog|xdg-open # centos / rhel 7.2 onwards