File x11vnc.spec of Package x11vnc

# $Id$
# Authority: dag
# Upstream: Karl Runge <xvml$karlrunge,com>

Summary: VNC server for the current X11 session
Name: x11vnc
Version: 0.9.13
Release: 1%{?dist}
License: GPL
Group: User Interface/X
URL: http://www.karlrunge.com/x11vnc/

Source: x11vnc-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%if 0%{?suse_version}
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  avahi-devel >= 0.6.5
BuildRequires:  dbus-1-devel
BuildRequires:  gcc
BuildRequires:  libjpeg-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  openssl-devel
BuildRequires:  unzip
BuildRequires:  xorg-x11-devel
BuildRequires:  zlib-devel
BuildRequires:  update-desktop-files
%else
BuildRequires: libjpeg-devel, zlib-devel, xorg-x11-proto-devel, libXext-devel, libXtst-devel, libXi-devel
%endif

%description
x11vnc is to X Window System what WinVNC is to Windows, i.e. a server
which serves the current X Window System desktop via RFB (VNC)
protocol to the user.

Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
into a versatile and performant while still easy to use program.

%prep
%setup

%build
if pkg-config openssl; then
    export CFLAGS="%{optflags} $(pkg-config --cflags openssl)"
    export LDFLAGS="$LDFLAGS $(pkg-config --libs-only-L openssl)"
fi
%configure
%{__make} %{?_smp_mflags}

%install
%{__make} install DESTDIR="%{buildroot}"
%if 0%{?suse_version}
%suse_update_desktop_file x11vnc
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%doc %{_mandir}/man1/x11vnc.1*
%{_bindir}/x11vnc
%{_datadir}/x11vnc/
%exclude %{_includedir}/rfb/
%{_datadir}/applications/x11vnc.desktop

%changelog
* Fri Sep 16 2011 Dag Wieers <dag@wieers.com> - 0.9.13-1
- Updated to release 0.9.13.

openSUSE Build Service is sponsored by