File gtk-vnc.spec of Package gtk-vnc
#
# spec file for package gtk-vnc (Version 0.3.9)
#
# Copyright (c) 2009 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: gnome-common
BuildRequires: gnutls-devel
BuildRequires: gtk2-devel
BuildRequires: gtkglext-devel
BuildRequires: python-devel
BuildRequires: python-gtk-devel
Summary: A GTK widget for VNC clients
Version: 0.3.9
Release: 1
License: LGPL v2.1 only ; LGPL v2.1 or later
Group: Development/Libraries/X11
Source: http://downloads2.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch: gtk-vnc-0.3.3-pkgconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://gtk-vnc.sf.net/
%py_requires
%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 libgtk-vnc-1_0-0
License: LGPL v2.1 only ; LGPL v2.1 or later
Summary: A GTK widget for VNC clients
Group: Development/Libraries/X11
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 devel
License: LGPL v2.1 or later
Summary: Libraries, includes, etc. to compile with the gtk-vnc library
Group: Development/Libraries/X11
Requires: libgtk-vnc-1_0-0 = %{version} gtk2-devel
%description devel
Development files for using the gtk-vnc library
%package -n python-gtk-vnc
License: LGPL v2.1 or later
Summary: Python bindings for the gtk-vnc library
Group: Development/Libraries/X11
Provides: gtk-vnc-python = %{version}
Obsoletes: gtk-vnc-python < %{version}
%description -n python-gtk-vnc
A module allowing use of the GTK-VNC widget from python
%prep
%setup -q
%patch
%build
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -rf $RPM_BUILD_ROOT/%{py_sitedir}/gtkvnc.*a
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%postun -n libgtk-vnc-1_0-0 -p /sbin/ldconfig
%post -n libgtk-vnc-1_0-0 -p /sbin/ldconfig
%files -n libgtk-vnc-1_0-0
%defattr(-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%{_libdir}/*.so.0*
%files -n python-gtk-vnc
%defattr(-, root, root)
%{py_sitedir}/gtkvnc*
%files devel
%defattr(-, root, root)
%{_includedir}/gtk-vnc-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog