Name: pyhoca-gui
Version: 0.6.1.1
Release: 1%{?dist}
Summary: Graphical X2Go client written in (wx)Python
License: AGPLv3+
URL: https://www.x2go.org/
Source0: https://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-distutils-extra
%else
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-distutils-extra
%endif
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: python%{python3_pkgversion}-cups
Requires: python%{python3_pkgversion}-setproctitle
Requires: python%{python3_pkgversion}-x2go >= 0.5.0.0
Requires: libnotify
Requires: python%{python3_pkgversion}-gobject-base
Requires: python%{python3_pkgversion}-wxpython4
%else
%if 0%{?rhel} && 0%{?rhel} < 7
Requires: system-config-printer-libs
Requires: python-argparse
%else
Requires: python2-cups
%endif
Requires: python2-setproctitle
Requires: python2-x2go >= 0.5.0.0
%if 0%{?fedora} >= 22
Requires: libnotify
Requires: python2-gobject-base
%else
Requires: notify-python
%endif
Requires: python2-wxpython
%endif
%description
X2Go is a server based computing environment with:
- session resuming
- low bandwidth support
- LDAP support
- client side mass storage mounting support
- client side printing support
- audio support
- authentication by smartcard and USB stick
PyHoca-GUI is a slim X2Go client that docks to the desktop's
notification area and allows multiple X2Go session handling.
%prep
%autosetup -p1
%build
%if 0%{?fedora} || 0%{?rhel} >= 8
# Fix shebang of pyhoca-gui executable.
pathfix.py -i %{__python3} -pn %{name}
%{__python3} setup.py build_i18n
%py3_build
%else
%{__python2} setup.py build_i18n
%py2_build
%endif
%install
%if 0%{?fedora} || 0%{?rhel} >= 8
%py3_install
%else
%py2_install
%endif
mkdir -p %{buildroot}%{_bindir}/
cp -p %{name} %{buildroot}%{_bindir}/
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang PyHoca-GUI
%post
/bin/touch --no-create %{_datadir}/icons/PyHoca &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/PyHoca &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/PyHoca &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/PyHoca &>/dev/null || :
%files -f PyHoca-GUI.lang
%license COPYING
%doc README TODO
%{_bindir}/%{name}
%if 0%{?fedora} || 0%{?rhel} >= 8
%{python3_sitelib}/*
%else
%{python2_sitelib}/*
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/PyHoca/
%{_datadir}/pixmaps/pyhoca_x2go-logo-ubuntu.svg
%{_datadir}/pyhoca
%{_mandir}/man1/%{name}.1*
%changelog
* Tue Jan 21 2020 Orion Poplawski <orion@nwra.com> - 0.6.1.1-1
- Update to 0.6.1.1
* Sun Nov 24 2019 Orion Poplawski <orion@nwra.com> - 0.5.1.0-1
- Update to 0.5.1.0
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.8-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.8-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Feb 6 2019 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.8-1
- Update to 0.5.0.8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0.7-5
- Rebuilt for Python 3.7
* Mon Apr 16 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 0.5.0.7-4
- Fix shebangs to avoid depending on Python 2 for Fedora 28+
* Sat Apr 14 2018 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.7-3
- Require python3-wxpython4
* Sat Apr 14 2018 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.7-2
- Switch to python 3 for Fedora 28+
* Sat Apr 14 2018 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.7-1
- Update to 0.5.0.7
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.0.6-6
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.6-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Mar 24 2016 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.6-1
- Update to 0.5.0.6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jan 28 2016 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.5-1
- Update to 0.5.0.5
- Drop notify patch fixed upstream
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue May 26 2015 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.4-2
- Use pygobject3 libnotify bindings with wxPython/wxGTK 3
* Mon Jan 26 2015 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.4-1
- Update to 0.5.0.4
* Mon Dec 1 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.3-1
- Update to 0.5.0.3
* Mon Oct 20 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.2-1
- Update to 0.5.0.2
* Mon Oct 20 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.0-1
- Update to 0.5.0.0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Jan 22 2014 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.9-2
- No python-cups, use system-config-printer-libs on EL6 (bug #1056434)
* Wed Jan 8 2014 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.9-1
- Update to 0.4.0.9
- Add Requires python-cups
* Thu Aug 29 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.8-1
- Update to 0.4.0.8
- Add BR on desktop-file-utils, validate the desktop file
- Add gtk-update-icon-cache scriptlets
- Own /usr/share/pyhoca
- Change tabs to spaces
* Thu Aug 1 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.6-1
- Update to 0.4.0.6
* Wed Feb 13 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.1-1
- Update to 0.4.0.1
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.0-1
- Update to 0.4.0.0
* Tue Dec 18 2012 Orion Poplawski <orion@cora.nwra.com> - 0.2.1.1-1
- Initial Fedora release