[X2Go-Commits] [pyhoca-gui] 01/01: pyhoca-gui.spec: avoid %{python2_sitelib} on older OpenSuSE versions - doesn't seem to be defined there.
git-admin at x2go.org
git-admin at x2go.org
Sun Nov 11 13:20:23 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-gui.
commit 940f66181d8d151e6fd178da7783dcf9786870f1
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Nov 11 13:19:59 2018 +0100
pyhoca-gui.spec: avoid %{python2_sitelib} on older OpenSuSE versions - doesn't seem to be defined there.
Use %{python_sitelib} in that case.
---
debian/changelog | 2 ++
pyhoca-gui.spec | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index cdebb63..6a60dc6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,8 @@ pyhoca-gui (0.5.0.8-0x2go1) UNRELEASED; urgency=medium
that's the wrong place (since we'd need a pyhoca-common package to own
that directory or something), but that would make packaging more
complicated.
+ - Avoid %{python2_sitelib} on older OpenSuSE versions - doesn't seem to be
+ defined there. Use %{python_sitelib} in that case.
-- X2Go Release Manager <git-admin at x2go.org> Sun, 24 Sep 2017 11:28:17 +0200
diff --git a/pyhoca-gui.spec b/pyhoca-gui.spec
index 96b03df..9ca5c7f 100644
--- a/pyhoca-gui.spec
+++ b/pyhoca-gui.spec
@@ -116,8 +116,19 @@ fi
%defattr(-,root,root)
%doc COPYING README TODO
%{_bindir}/%{name}
+%if 0%{?suse_version}
+%if ( 0%{?sle_version} && 0%{?sle_version} >= 120300 && 0%{?is_opensuse} ) || ( 0%{?suse_version} > 1500 )
+%{python2_sitelib}/PyHoca_GUI*
+%{python2_sitelib}/pyhoca/
+%pycache_only %{python2_sitelib}/__pycache__
+%else
+%{python_sitelib}/PyHoca_GUI*
+%{python_sitelib}/pyhoca/
+%endif
+%else
%{python2_sitelib}/PyHoca_GUI*
%{python2_sitelib}/pyhoca/
+%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/PyHoca/
%{_datadir}/pixmaps/pyhoca_x2go-logo-ubuntu.svg
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list