[X2Go-Commits] [pyhoca-cli] 01/01: pyhoca-cli.spec: fix newer *SuSE versions: 15.0+ seem to install the pycace files into a subdirectory based on the package name.

git-admin at x2go.org git-admin at x2go.org
Tue Dec 24 18:31:16 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 8cb1e43609fdce37ca377a27567e71ce104aa370
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Dec 24 18:30:51 2019 +0100

    pyhoca-cli.spec: fix newer *SuSE versions: 15.0+ seem to install the pycace files into a subdirectory based on the package name.
---
 debian/changelog | 2 ++
 pyhoca-cli.spec  | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ecea670..ccd3917 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,8 @@ pyhoca-cli (0.6.1.2-0x2go1) UNRELEASED; urgency=medium
     + Actually fix issue: macros are expanded even in commented lines and some
       of them were not properly escaped via double percent sign characters.
     + Fix another unescaped macro in comment.
+    + Fix newer *SuSE versions: 15.0+ seem to install the pycace files into a
+      subdirectory based on the package name.
 
  -- 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 185e437..48a224c 100644
--- a/pyhoca-cli.spec
+++ b/pyhoca-cli.spec
@@ -261,10 +261,14 @@ cp -rp man/* %{buildroot}/%{_mandir}/
 %{python3_sitelib}/PyHoca_CLI*
 %if 0%{?suse_version}
 %if ( 0%{?sle_version} && 0%{?sle_version} >= 120300 && 0%{?is_opensuse} ) || ( 0%{?suse_version} > 1500 )
+%if 0%{?sle_version} > 150000
+%pycache_only %{python3_sitelib}/pyoca/cli/__pycache__
+%else
 %pycache_only %{python3_sitelib}/__pycache__
 %endif
 %endif
 %endif
+%endif
 %{_mandir}/man1/%{name}.1*
 
 

--
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