diff options
author | François Andriot <albator78@libertysurf.fr> | 2019-07-30 19:54:39 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2019-07-30 19:54:39 +0200 |
commit | f6042194a160d58772626035fa59604da08e06e0 (patch) | |
tree | 598895a543568639cb582d0013891519357cdf11 /redhat/applications/tde-guidance | |
parent | 87f8fcd5f192267ad890dd4e923be245bb834658 (diff) | |
download | tde-packaging-f6042194a160d58772626035fa59604da08e06e0.tar.gz tde-packaging-f6042194a160d58772626035fa59604da08e06e0.zip |
RPM: update packages to build on Fedora 30, Mageia 7
Diffstat (limited to 'redhat/applications/tde-guidance')
-rw-r--r-- | redhat/applications/tde-guidance/tde-guidance-14.0.0.spec | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/redhat/applications/tde-guidance/tde-guidance-14.0.0.spec b/redhat/applications/tde-guidance/tde-guidance-14.0.0.spec index 02b6c3b33..ebf6e0021 100644 --- a/redhat/applications/tde-guidance/tde-guidance-14.0.0.spec +++ b/redhat/applications/tde-guidance/tde-guidance-14.0.0.spec @@ -421,8 +421,13 @@ chmod 0755 %{buildroot}%{python_sitearch}/%{name}/gpmhelper.py # Replace all '#!' calls to python with /usr/bin/python # and make them executable +%if 0%{?fedora} >= 30 +%define python /usr/bin/python2 +%else +%define python /usr/bin/python +%endif for i in `find %{buildroot} -type f`; do - sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \ + sed '1s,#!.*python[^ ]*\(.*\),#! %python\1,' \ $i > $i.temp; if cmp --quiet $i $i.temp; then rm -f $i.temp; |