[X2Go-Commits] [pyhoca-cli] 01/01: pyhoca-cli.spec: use %{name} instead of hardcoding the string in %prep.

git-admin at x2go.org git-admin at x2go.org
Fri Dec 20 10:04:33 CET 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-cli.

commit 5211c8b9439675eec244be161dbc193761794338
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Dec 20 10:04:18 2019 +0100

    pyhoca-cli.spec: use %{name} instead of hardcoding the string in %prep.
---
 debian/changelog | 1 +
 pyhoca-cli.spec  | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 778ff1a..d95a7d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,7 @@ pyhoca-cli (0.6.1.2-0x2go1) UNRELEASED; urgency=medium
     + Also fix install phase for Python 2 variant on older *SuSE variants.
     + Fix files section on older *SuSE variants.
     + Fix files section on older *SuSE variants again, remove faulty slash.
+    + Use %{name} instead of hardcoding the string in %prep.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Fri, 22 Nov 2019 15:26:45 +0100
 
diff --git a/pyhoca-cli.spec b/pyhoca-cli.spec
index ae13cf5..e79bea2 100644
--- a/pyhoca-cli.spec
+++ b/pyhoca-cli.spec
@@ -153,10 +153,10 @@ on desktops and thin clients.
 %prep
 %setup -q
 %if 0%{?with_python2}
-sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python2}@' 'pyhoca-cli'
+sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python2}@' '%{name}'
 %endif
 %if 0%{?with_python3}
-sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python3}@' 'pyhoca-cli'
+sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python3}@' '%{name}'
 %endif
 
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git


More information about the x2go-commits mailing list