File x11vnc.spec of Package x11vnc

#
# spec file for package x11vnc (Version 0.9.8)
#
# 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:           x11vnc
BuildRequires:  libjpeg-devel openssl-devel unzip xorg-x11-devel
License:        GPL v2 or later
Group:          Development/Libraries/X11
AutoReqProv:    on
Version:        0.9.8
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

%description
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.



Authors:
--------
    Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
    Dan McGuirk <mcguirk@incompleteness.net>
    Karl Runge

%prep
%setup
%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

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

%check
make check

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m 0755 x11vnc/tkx11vnc $RPM_BUILD_ROOT/usr/bin/
install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/usr/bin/

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

%files
%defattr(-,root,root)
/usr/bin/x11vnc
/usr/bin/x11vnc_ssh
/usr/bin/tkx11vnc
%doc x11vnc/README x11vnc/examples
%{_mandir}/man1/x11vnc.1.gz
%dir /usr/share/x11vnc/
/usr/share/x11vnc/*
/usr/share/applications/x11vnc.desktop

%changelog
openSUSE Build Service is sponsored by