-Summary: A GTK+ widget for VNC clients
-Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
+#
+# Conditional build:
+%bcond_without vala # Vala API
+
+Summary: A GTK+ widget for VNC clients (GTK+ 2.x version)
+Summary(pl.UTF-8): Widget GTK+ dla klientów VNC (wersja dla GTK+ 2.x)
Name: gtk-vnc
-Version: 0.4.3
-Release: 4
-License: LGPL v2
+Version: 0.7.2
+Release: 1
+License: LGPL v2+
Group: X11/Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.4/%{name}-%{version}.tar.bz2
-# Source0-md5: 38d3fbacb5d00e630f939e88858206f1
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.7/%{name}-%{version}.tar.xz
+# Source0-md5: 1d4f3e16ad82498add90b7aae43e766d
Patch0: %{name}-codegen.patch
URL: http://live.gnome.org/gtk-vnc
BuildRequires: autoconf >= 2.63
BuildRequires: cairo-devel >= 1.2.0
BuildRequires: cyrus-sasl-devel
BuildRequires: gdk-pixbuf2-devel >= 2.10.0
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 1:2.28.0
BuildRequires: gnome-common
-BuildRequires: gnutls-devel >= 1.4.0
+BuildRequires: gnutls-devel >= 2.2.0
BuildRequires: gobject-introspection-devel >= 0.9.4
BuildRequires: gtk+2-devel >= 2:2.18.0
BuildRequires: gtk+3-devel >= 3.0.0
BuildRequires: intltool >= 0.40.0
-BuildRequires: libtool >= 2.2.6
+BuildRequires: libgcrypt-devel >= 1.4.0
+BuildRequires: libgpg-error-devel
+BuildRequires: libtool >= 2:2.2.6
BuildRequires: libview-devel >= 0.6.0
BuildRequires: perl-Text-CSV
BuildRequires: perl-tools-pod
BuildRequires: pkgconfig
+BuildRequires: pulseaudio-devel
BuildRequires: python-devel >= 1:2.4
BuildRequires: python-pygtk-devel >= 2:2.0.0
BuildRequires: rpm-pythonprov
+BuildRequires: tar >= 1:1.22
+%{?with_vala:BuildRequires: vala >= 0.14.0}
BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xz
BuildRequires: zlib-devel
+Requires: cairo >= 1.2.0
+Requires: gtk+2 >= 2:2.18.0
Requires: libgvnc = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
allowing it to be completely asynchronous while remaining single
threaded.
+This package contains version for GTK+ 2.x.
+
%description -l pl.UTF-8
gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
pozostając jednowątkowymi.
+Ten pakiet zawiera wersję dla GTK+ 2.x.
+
%package devel
-Summary: Header files for gtk-vnc library
-Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc
+Summary: Header files for gtk-vnc library (GTK+ 2.x version)
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x)
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: gnutls-devel >= 1.4.0
+Requires: cairo-devel >= 1.2.0
Requires: gtk+2-devel >= 2:2.18.0
Requires: libgvnc-devel = %{version}-%{release}
+Requires: xorg-lib-libX11-devel
%description devel
-Header files for gtk-vnc library.
+Header files for gtk-vnc library (GTK+ 2.x version).
%description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki gtk-vnc.
+Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x).
%package static
-Summary: Static gtk-vnc library
-Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc
+Summary: Static gtk-vnc library (GTK+ 2.x version)
+Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x)
Group: X11/Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Requires: libgvnc-static = %{version}-%{release}
%description static
-Static gtk-vnc library.
+Static gtk-vnc library (GTK+ 2.x version).
%description static -l pl.UTF-8
-Statyczna biblioteka gtk-vnc.
+Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x).
+
+%package -n python-gtk-vnc
+Summary: Python bindings for the gtk-vnc library (GTK+ 2.x version)
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc (wersja dla GTK+ 2.x)
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-gtk-vnc
+A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from
+Python.
+
+%description -n python-gtk-vnc -l pl.UTF-8
+Moduł pozwalający na używanie widgetu GTK+ VNC (w wersji dla GTK+ 2.x)
+z poziomu Pythona.
%package -n gtk3-vnc
-Summary: A GTK+ widget for VNC clients
+Summary: A GTK+ widget for VNC clients (GTK+ 3.x version)
Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
Group: X11/Libraries
+Requires: cairo >= 1.2.0
+Requires: gtk+3 >= 3.0.0
Requires: libgvnc = %{version}-%{release}
%description -n gtk3-vnc
-gtk-vnc is a VNC viewer widget for GTK+ 3.x. It is built using
-coroutines allowing it to be completely asynchronous while remaining
-single threaded.
+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 version for GTK+ 3.x.
%description -n gtk3-vnc -l pl.UTF-8
-gtk-vnc to widget przeglądarki VNC dla GTK+ 3.x. Jest skonstruowany z
+gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
pozostając jednowątkowymi.
+Ten pakiet zawiera wersję dla GTK+ 3.x.
+
%package -n gtk3-vnc-devel
-Summary: Header files for gtk-vnc library - GTK+ 3.x version
-Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x
+Summary: Header files for gtk-vnc library (GTK+ 3.x version)
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
Group: X11/Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: gnutls-devel >= 1.4.0
+Requires: cairo-devel >= 1.2.0
Requires: gtk+3-devel >= 3.0.0
+Requires: gtk3-vnc = %{version}-%{release}
+Requires: libgcrypt-devel >= 1.4.0
Requires: libgvnc-devel = %{version}-%{release}
+Requires: xorg-lib-libX11-devel
%description -n gtk3-vnc-devel
-Header files for gtk-vnc library - GTK+ 3.x version.
+Header files for gtk-vnc library (GTK+ 3.x version).
%description -n gtk3-vnc-devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x.
+Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
%package -n gtk3-vnc-static
-Summary: Static gtk-vnc library - GTK+ 3.x version
-Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x
+Summary: Static gtk-vnc library (GTK+ 3.x version)
+Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
Group: X11/Development/Libraries
Requires: gtk3-vnc-devel = %{version}-%{release}
Requires: libgvnc-static = %{version}-%{release}
%description -n gtk3-vnc-static
-Static gtk-vnc library - GTK+ 3.x version.
+Static gtk-vnc library (GTK+ 3.x version).
%description -n gtk3-vnc-static -l pl.UTF-8
-Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x.
+Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
+
+%package -n vala-gtk3-vnc
+Summary: Vala API for gtk-vnc library (GTK+ 3.x version)
+Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
+Group: Development/Languages
+Requires: gtk3-vnc-devel = %{version}-%{release}
+Requires: vala-libgvnc = %{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description -n vala-gtk3-vnc
+Vala API for gtk-vnc library (GTK+ 3.x version).
+
+%description -n vala-gtk3-vnc -l pl.UTF-8
+API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
%package -n libgvnc
Summary: A library for VNC clients
Summary(pl.UTF-8): Biblioteka dla klientów VNC
Group: X11/Libraries
+Requires: gdk-pixbuf2 >= 2.10.0
+Requires: glib2 >= 1:2.28.0
+Requires: gnutls >= 2.2.0
+Requires: libgcrypt >= 1.4.0
%description -n libgvnc
A library for VNC clients.
Summary: Header files for libgvnc library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc
Group: X11/Development/Libraries
+Requires: cyrus-sasl-devel
+Requires: gdk-pixbuf2-devel >= 2.10.0
+Requires: glib2-devel >= 1:2.28.0
+Requires: gnutls-devel >= 2.2.0
+Requires: libgcrypt-devel >= 1.4.0
Requires: libgvnc = %{version}-%{release}
+Requires: zlib-devel
%description -n libgvnc-devel
Header files for libgvnc library.
%description -n libgvnc-static -l pl.UTF-8
Statyczna biblioteka libgvnc.
-%package -n python-gtk-vnc
-Summary: Python bindings for the gtk-vnc library
-Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc
-Group: Libraries/Python
-Requires: %{name} = %{version}-%{release}
-%requires_eq python-libs
+%package -n vala-libgvnc
+Summary: Vala API for libgvnc library
+Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc
+Group: Development/Languages
+Requires: libgvnc-devel = %{version}-%{release}
+Requires: vala
-%description -n python-gtk-vnc
-A module allowing use of the GTK+ VNC widget from Python.
+%description -n vala-libgvnc
+Vala API for libgvnc library.
-%description -n python-gtk-vnc -l pl.UTF-8
-Moduł pozwalający na używanie widgetu GTK+ VNC z poziomu Pythona.
+%description -n vala-libgvnc -l pl.UTF-8
+API języka Vala dla biblioteki libgvnc.
%package tools
Summary: Command line tools for VNC
--without-libview \
--enable-static \
--disable-plugin \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{!?with_vala:--disable-vala}
%{__make}
-cd ..
%install
rm -rf $RPM_BUILD_ROOT
-cd gtk2
-%{__make} -j1 install \
+%{__make} -C gtk2 -j1 install \
DESTDIR=$RPM_BUILD_ROOT
-cd ../gtk3
-%{__make} -j1 install \
+%{__make} -C gtk3 -j1 install \
DESTDIR=$RPM_BUILD_ROOT
-cd ..
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
$RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
-install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-install examples/gvncviewer.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
+cp -p examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/gvncviewer-{bindings,introspection}.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
$RPM_BUILD_ROOT%{_libdir}/*.la
+# not supported by glibc (as of 2.25)
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc
+
%find_lang %{name}
%clean
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%post -n gtk3-vnc -p /sbin/ldconfig
-%postun -n gtk3-vnc -p /sbin/ldconfig
+%post -n gtk3-vnc -p /sbin/ldconfig
+%postun -n gtk3-vnc -p /sbin/ldconfig
-%post -n libgvnc -p /sbin/ldconfig
-%postun -n libgvnc -p /sbin/ldconfig
+%post -n libgvnc -p /sbin/ldconfig
+%postun -n libgvnc -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%{_libdir}/libgtk-vnc-1.0.a
+%files -n python-gtk-vnc
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/gtkvnc.so
+%{_examplesdir}/python-%{name}-%{version}
+
%files -n gtk3-vnc
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
%defattr(644,root,root,755)
%{_libdir}/libgtk-vnc-2.0.a
+%if %{with vala}
+%files -n vala-gtk3-vnc
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/gtk-vnc-2.0.deps
+%{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
+%endif
+
%files -n libgvnc -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
+%attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
+%attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
%{_libdir}/girepository-1.0/GVnc-1.0.typelib
+%{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
%files -n libgvnc-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libgvnc-1.0.so
+%attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
%{_datadir}/gir-1.0/GVnc-1.0.gir
+%{_datadir}/gir-1.0/GVncPulse-1.0.gir
%{_includedir}/gvnc-1.0
+%{_includedir}/gvncpulse-1.0
%{_pkgconfigdir}/gvnc-1.0.pc
+%{_pkgconfigdir}/gvncpulse-1.0.pc
%files -n libgvnc-static
%defattr(644,root,root,755)
%{_libdir}/libgvnc-1.0.a
+%{_libdir}/libgvncpulse-1.0.a
-%files -n python-gtk-vnc
+%if %{with vala}
+%files -n vala-libgvnc
%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/gtkvnc.so
-%{_examplesdir}/python-%{name}-%{version}
+%{_datadir}/vala/vapi/gvnc-1.0.deps
+%{_datadir}/vala/vapi/gvnc-1.0.vapi
+%{_datadir}/vala/vapi/gvncpulse-1.0.deps
+%{_datadir}/vala/vapi/gvncpulse-1.0.vapi
+%endif
%files tools
%defattr(644,root,root,755)