File gtk-vnc.spec of Package gtk-vnc
#
# spec file for package gtk-vnc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gtk-vnc
BuildRequires: cyrus-sasl-devel
BuildRequires: gnutls-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: perl-Text-CSV
BuildRequires: python-devel
BuildRequires: python-gtk-devel
Summary: A GTK widget for VNC clients
Version: 0.4.2
Release: 2
# FIXME: see if the browser plugin can be built (last try 0.4.2)
License: LGPLv2.1 ; LGPLv2.1+
Group: Development/Libraries/X11
Source: http://downloads2.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gtk-vnc-unref-gsource.patch bnc#672071 rhafer@suse.de -- Fix performance issue, taken from git
Patch1: gtk-vnc-unref-gsource.patch
Requires: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://gtk-vnc.sf.net/
%description
gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded.
%package -n libgvnc-1_0-0
License: LGPLv2.1 ; LGPLv2.1+
Summary: GObject-based library to interact with the RFB protocol
Group: Development/Libraries/X11
%description -n libgvnc-1_0-0
gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded.
This package contains the GObject-based library to interact with the
RFB protocol.
%package -n libgtk-vnc-1_0-0
License: LGPLv2.1 ; LGPLv2.1+
Summary: A GTK widget for VNC clients
Group: Development/Libraries/X11
Requires: %{name}-lang = %{version}
Provides: gtk-vnc = %{version}
Obsoletes: gtk-vnc < %{version}
%description -n libgtk-vnc-1_0-0
gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded.
%package tools
License: LGPLv2.1 ; LGPLv2.1+
Summary: VNC Tools based on gtk-vnc
Group: Development/Libraries/X11
%description tools
This package contains tools based on gtk-vnc:
- gvnccapture: a tool to capture a screenshot of the VNC desktop
- gvncviewer: a simple VNC client
%package devel
License: LGPLv2.1+
Summary: A GTK widget for VNC clients -- Development Files
Group: Development/Libraries/X11
Requires: libgvnc-1_0-0 = %{version}
Requires: libgtk-vnc-1_0-0 = %{version}
Requires: gtk2-devel
%description devel
gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded.
%package -n python-gtk-vnc
License: LGPLv2.1+
Summary: Python bindings for the gtk-vnc library
Group: Development/Libraries/X11
Provides: gtk-vnc-python = %{version}
Obsoletes: gtk-vnc-python < %{version}
%py_requires
%description -n python-gtk-vnc
gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
allowing it to be completely asynchronous while remaining single
threaded.
This package contains the python bindings for gtk-vnc.
%lang_package
%prep
%setup -q
%patch1 -p1
%build
# We use --with-examples since this will build gvncviewer, which is neat
%configure --disable-static --with-pic \
--with-examples
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -rf $RPM_BUILD_ROOT/%{py_sitedir}/gtkvnc.*a
%{__rm} -f %{buildroot}%{_libdir}/*.la
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%postun -n libgvnc-1_0-0 -p /sbin/ldconfig
%post -n libgvnc-1_0-0 -p /sbin/ldconfig
%postun -n libgtk-vnc-1_0-0 -p /sbin/ldconfig
%post -n libgtk-vnc-1_0-0 -p /sbin/ldconfig
%files -n libgvnc-1_0-0
%defattr(-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_libdir}/libgvnc-1.0.so.0*
%{_libdir}/girepository-1.0/GVnc-1.0.typelib
%files -n libgtk-vnc-1_0-0
%defattr(-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_libdir}/libgtk-vnc-1.0.so.0*
%{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
%files tools
%defattr(-, root, root)
%{_bindir}/gvnccapture
%{_bindir}/gvncviewer
%{_mandir}/man1/gvnccapture.1*
%files -n python-gtk-vnc
%defattr(-, root, root)
%doc examples/gvncviewer.py
%{py_sitedir}/gtkvnc.so
%files devel
%defattr(-, root, root)
%{_includedir}/gtk-vnc-1.0/
%{_includedir}/gvnc-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%files lang -f %{name}.lang
%changelog