0edabc2
Name:           pyhoca-gui
Orion Poplawski 1200c89
Version:        0.5.0.4
eed377d
Release:        3%{?dist}
0edabc2
Summary:        Graphical X2Go client written in (wx)Python
0edabc2
0edabc2
Group:          Applications/Communications
0edabc2
License:        AGPLv3+
0edabc2
URL:            http://www.x2go.org/
0edabc2
Source0:        http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
Orion Poplawski 0d945d8
# Use pygobject3 libnotify bindings with wxPython 3.0
Orion Poplawski 0d945d8
# http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=769
Orion Poplawski 0d945d8
# https://bugzilla.redhat.com/show_bug.cgi?id=1225142
Orion Poplawski 0d945d8
Patch0:         pyhoca-gui-notify.patch
0edabc2
0edabc2
BuildArch:      noarch
0edabc2
BuildRequires:  python2-devel
b3e831b
BuildRequires:  python-setuptools
0edabc2
BuildRequires:  python-distutils-extra
0edabc2
BuildRequires:  desktop-file-utils
Orion Poplawski ba8c6e1
BuildRequires:  gettext
0edabc2
BuildRequires:  intltool
Orion Poplawski 4aaa41c
%if 0%{?rhel} && 0%{?rhel} < 7
5435246
Requires:       system-config-printer-libs
Orion Poplawski ba8c6e1
Requires:       python-argparse
5435246
%else
ae8d51f
Requires:       python-cups
5435246
%endif
0edabc2
Requires:       python-setproctitle
Orion Poplawski ba8c6e1
Requires:       python-x2go >= 0.5.0.0
Orion Poplawski 0d945d8
%if 0%{?fedora} >= 22
Orion Poplawski 0d945d8
Requires:       libnotify
Orion Poplawski 0d945d8
Requires:       pygobject3-base
Orion Poplawski 0d945d8
%else
0edabc2
Requires:       notify-python
Orion Poplawski 0d945d8
%endif
0edabc2
Requires:       wxPython
0edabc2
0edabc2
%description
0edabc2
X2Go is a server based computing environment with:
0edabc2
   - session resuming
0edabc2
   - low bandwidth support
0edabc2
   - LDAP support
0edabc2
   - client side mass storage mounting support
0edabc2
   - client side printing support
0edabc2
   - audio support
0edabc2
   - authentication by smartcard and USB stick
0edabc2
0edabc2
PyHoca-GUI is a slim X2Go client that docks to the desktop's
0edabc2
notification area and allows multiple X2Go session handling.
0edabc2
0edabc2
0edabc2
%prep
0edabc2
%setup -q
Orion Poplawski 0d945d8
%if 0%{?fedora} >= 22
Orion Poplawski 0d945d8
%patch0 -p1 -b .notify
Orion Poplawski 0d945d8
%endif
0edabc2
0edabc2
0edabc2
%build
Orion Poplawski ba8c6e1
%{__python} setup.py build_i18n
0edabc2
%{__python} setup.py build
0edabc2
0edabc2
0edabc2
%install
0edabc2
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
0edabc2
mkdir -p %{buildroot}%{_bindir}/
0edabc2
cp -p %{name} %{buildroot}%{_bindir}/
0edabc2
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
Orion Poplawski ba8c6e1
%find_lang PyHoca-GUI
0edabc2
0edabc2
0edabc2
%post
0edabc2
/bin/touch --no-create %{_datadir}/icons/PyHoca &>/dev/null || :
0edabc2
0edabc2
%postun
0edabc2
if [ $1 -eq 0 ] ; then
0edabc2
    /bin/touch --no-create %{_datadir}/icons/PyHoca &>/dev/null
0edabc2
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/PyHoca &>/dev/null || :
0edabc2
fi
0edabc2
0edabc2
%posttrans
0edabc2
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/PyHoca &>/dev/null || :
0edabc2
0edabc2
Orion Poplawski ba8c6e1
%files -f PyHoca-GUI.lang
Orion Poplawski ba8c6e1
%doc COPYING README TODO
0edabc2
%{_bindir}/%{name}
0edabc2
%{python_sitelib}/*
0edabc2
%{_datadir}/applications/%{name}.desktop
0edabc2
%{_datadir}/icons/PyHoca/
0edabc2
%{_datadir}/pixmaps/pyhoca_x2go-logo-ubuntu.svg
0edabc2
%{_datadir}/pyhoca
0edabc2
%{_mandir}/man1/%{name}.1*
0edabc2
0edabc2
0edabc2
%changelog
eed377d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.4-3
eed377d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eed377d
Orion Poplawski 0d945d8
* Tue May 26 2015 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.4-2
Orion Poplawski 0d945d8
- Use pygobject3 libnotify bindings with wxPython/wxGTK 3
Orion Poplawski 0d945d8
Orion Poplawski 1200c89
* Mon Jan 26 2015 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.4-1
Orion Poplawski 1200c89
- Update to 0.5.0.4
Orion Poplawski 1200c89
Orion Poplawski cb510ae
* Mon Dec 1 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.3-1
Orion Poplawski cb510ae
- Update to 0.5.0.3
Orion Poplawski cb510ae
Orion Poplawski ee04b9a
* Mon Oct 20 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.2-1
Orion Poplawski ee04b9a
- Update to 0.5.0.2
Orion Poplawski ee04b9a
Orion Poplawski ba8c6e1
* Mon Oct 20 2014 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.0-1
Orion Poplawski ba8c6e1
- Update to 0.5.0.0
Orion Poplawski ba8c6e1
4097f48
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0.9-3
4097f48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4097f48
5435246
* Wed Jan 22 2014 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.9-2
5435246
- No python-cups, use system-config-printer-libs on EL6 (bug #1056434)
5435246
ae8d51f
* Wed Jan 8 2014 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.9-1
ae8d51f
- Update to 0.4.0.9
ae8d51f
- Add Requires python-cups
ae8d51f
0edabc2
* Thu Aug 29 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.8-1
0edabc2
- Update to 0.4.0.8
0edabc2
- Add BR on desktop-file-utils, validate the desktop file
0edabc2
- Add gtk-update-icon-cache scriptlets
0edabc2
- Own /usr/share/pyhoca
0edabc2
- Change tabs to spaces
0edabc2
0edabc2
* Thu Aug 1 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.6-1
0edabc2
- Update to 0.4.0.6
0edabc2
0edabc2
* Wed Feb 13 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.1-1
0edabc2
- Update to 0.4.0.1
0edabc2
0edabc2
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> - 0.4.0.0-1
0edabc2
- Update to 0.4.0.0
0edabc2
0edabc2
* Tue Dec 18 2012 Orion Poplawski <orion@cora.nwra.com> - 0.2.1.1-1
0edabc2
- Initial Fedora release