# TODO:
# - tigervnc.init
-# - descriptions!
%define snap r4159
%define xversion 1.9
Summary(pl.UTF-8): System zdalnego dostępu TigerVNC
Name: tigervnc
Version: 1.0.90
-Release: 0.1
+Release: 10
License: GPL v2
Group: X11/Applications/Networking
#Source0: http://dl.sourceforge.net/tigervnc/%{name}-%{version}.tar.gz
Patch5: tigervnc-rh633931.patch
Patch6: tigervnc-viewer-reparent.patch
Patch7: tigervnc-as-needed.patch
+Patch8: tigervnc-options-dialog.patch
URL: http://www.tigervnc.com/
BuildRequires: ImageMagick
+BuildRequires: ImageMagick-coder-png
+BuildRequires: ImageMagick-coder-svg
BuildRequires: cpp
+BuildRequires: gnutls-devel
BuildRequires: libjpeg-devel
BuildRequires: zlib-devel
BuildRequires: xorg-xserver-server-source >= %{xversion}
Conflicts: vnc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source)
+%define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null)
%description
TigerVNC is a suite of VNC servers and clients that have a focus on
performance and remote display functionality. Originally this software
was based on the (never released) VNC 4 branch of TightVNC.
+%description -l pl.UTF-8
+TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się
+na wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie
+oprogramowanie oparte było na (nigdy nie wydanej)
+gałęzi VNC 4 TightVNC.
+
%package server
Summary: VNC X server - TigerVNC version
Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC
instance of Xvnc, or any other X server with the VNC extension.
vncpasswd generates password file (both on server and viewer side).
+%description utils -l pl.UTF-8
+Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i
+vncpasswd. vncconfig służy do konfigurowania i kontroli działającej
+instancji Xvnc lub innego serwera X z rozszerzeniem VNC.
+vncpasswd służy to tworzenia pliku z hasłem (zarówno po
+stronie serwera, jak i przeglądarki).
+
%package -n xorg-xserver-libvnc
Summary: TigerVNC module for X.org server
+Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org
Group: X11/Servers
%requires_eq_to xorg-xserver-server xorg-xserver-server-source
Provides: xorg-xserver-module(vnc)
This package contains libvnc.so module for X.org server,
allowing others to access the desktop on your machine.
+%description -n xorg-xserver-libvnc -l pl.UTF-8
+Ten pakiet zawiera moduł libvnc.so dla serwera X.org,
+pozwalający na zdalny dostęp do pulpitu.
+
%prep
%setup -q -n %{name}
%patch0 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
%{__sed} -i -e 's|^po/Makefile.in||' configure.ac