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