LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File x11vnc.spec of Package x11vnc (Project openSUSE:11.4)

# spec file for package x11vnc (Version 0.9.12)
# Copyright (c) 2010 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:           x11vnc
BuildRequires:  libjpeg-devel openssl-devel unzip xorg-x11-devel
License:        GPLv2+
Group:          Development/Libraries/X11
Version:        0.9.12
Release:        1
Summary:        Export running X11 session via VNC
Url:            http://libvncserver.sf.net/
Source0:        %{name}-%{version}.tar.bz2
Source1:        x11vnc_ssh
Patch1:         stack-check
Patch2:         stack-overflow
Patch4:         x11vnc-thread-auth.diff
Patch6:         x11vnc-examples.diff
Patch7:         x11vnc.desktop.generics
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

VNC is a set of programs using the RFB (Remote Frame Buffer) protocol.
They are designed to "export" a frame buffer via the network. It is in
wide use for administration.

X.org has a virtual Xvnc server which you can start as an own screen
(e.g. :1) and connect to with a VNC client (e.g. vncviewer from
tightvnc). This package contains the x11vnc binary that allows you to
export a screen of a running non-virtual X11 server. x11vnc has been
split off LibVNCServer on 2007-07-16.

%patch1 -p1
%patch2 -p1
#%patch4 -p1
%patch6 -p1
%patch7 -p1
mv x11vnc/misc x11vnc/examples
# aclocal; autoheader; automake --add-missing --copy; autoconf
# ./configure --enable-maintainer-mode
# sh ./autogen.sh

#%{?suse_update_config:%{suse_update_config -f}}
autoreconf -f
	./configure --enable-shared --with-gnu-ld --prefix=/usr \
	--mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir} \
	--libexecdir=%{_libdir} %{_target_cpu}-suse-linux
%{__make} %{?jobs:-j%jobs}

make check

install -m 0755 x11vnc/tkx11vnc $RPM_BUILD_ROOT%{_bindir}/
install -m 0755 %SOURCE1 $RPM_BUILD_ROOT%{_bindir}/
# Do not ship headers: we don't ship a library, so they'd be useless
rm -r %{buildroot}%{_includedir}/rfb/

[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}

%doc x11vnc/README x11vnc/examples/