File x11vnc.spec of Package x11vnc

#
# spec file for package x11vnc (Version 0.9.4)
#
# Copyright (c) 2008 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.4
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
Patch5:         x11vnc-warn.diff
Patch6:         x11vnc-examples.diff
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
%patch5 -p1
%patch6 -p1
mv x11vnc/misc x11vnc/examples
# aclocal; autoheader; automake --add-missing --copy; autoconf
# ./configure --enable-maintainer-mode
# sh ./autogen.sh

%build
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

%check
make check

%install
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
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/*

%changelog
* Tue Sep 23 2008 garloff@suse.de
- Move make check into %%check section
- Move x11vnc scripts into %%{_docdir}/x11vnc/examples
- Update to 0.9.4:
  * Reverse VNC connections (-connect/-connect_or_Exit) work now in
    -find and -create X session modes.
  * Reverse VNC sessions can now use a Web proxy, SOCKS proxy,
  UltraVNC repeater proxy, SSH connection or even CGI to make the
  outgoing connection by using -proxy.
  * Support for ZYWRLE encoding (RealVNC ZRLE extended for motion
  video and photo regions by using wavelets).
  * Support for indexed color maps with depth != 8.
  * Java viewer code now included in release.
  * Various little improvements and features.
* Fri Sep 12 2008 garloff@suse.de
- Avoid compiler warning about missing return in non-void function.
* Thu Jun 26 2008 garloff@suse.de
- Update to 0.9.3:
  * Minor bugfixes (mostly in Java SSL viewer).
* Wed Aug 08 2007 garloff@suse.de
- Updated x11vnc_ssh script:
  * Probe for free port on server.
  * Remove hextile from list of preferred encodings.
- Build with SSL support for encrypting VNC auth + traffic.
* Tue Jul 24 2007 ro@suse.de
- added unzip to buildreq
* Tue Jul 17 2007 garloff@suse.de
- Update to version 0.9.2.
- Split x11vnc off LibVNCServer.
openSUSE Build Service is sponsored by