File LibVNCServer.spec of Package LibVNCServer
#
# spec file for package LibVNCServer
#
# Copyright (c) 2011 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/
#
Name: LibVNCServer
BuildRequires: libavahi-devel libjpeg-devel slang-devel xorg-x11-devel
BuildRequires: lzo-devel
License: GPLv2+
Group: Development/Libraries/X11
Version: 0.9.8_git201104301110
Release: 1
Summary: VNC Development Library
Url: http://libvncserver.sf.net/
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: LibVNCServer-LINUX.diff
Patch7: redef-keysym
Patch10: dont-build-x11vnc
Patch11: LibVNCServer-system-lzo.patch
Patch12: LibVNCServer-0.9.8_git201104301110-overflow.patch
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
already in wide use for administration, but it is not that easy to
program a server yourself. This has been changed by LibVNCServer.
X.org already 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). The x11vnc binary (that allows you to export the window of a
real running X11 server) has been split off into its own package on
2007-07-16.
%package devel
License: GPLv2+
Requires: %{name} = %{version} zlib-devel
Summary: VNC Development Library
Group: Development/Libraries/X11
%description devel
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
already in wide use for administration, but it is not that easy to
program a server yourself. This has been changed by LibVNCServer.
X.org already 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).
The LibVNCServer-devel package contains the static libraries and header
files for LibVNCServer.
%prep
#%setup -n libvncserver
%setup -q
%patch1
%patch7 -p1
%patch10
%patch11 -p1
%patch12
# aclocal; autoheader; automake --add-missing --copy; autoconf
# ./configure --enable-maintainer-mode
# sh ./autogen.sh
%build
sh ./autogen.sh
CFLAGS="$RPM_OPT_FLAGS -D_REENTRANT" \
%configure --disable-static --with-pic --enable-shared --with-gnu-ld
make %{?_smp_mflags}
%check
make check
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/bin/LinuxVNC
/usr/bin/libvncserver-config
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/libvncclient.so.*
%{_libdir}/libvncserver.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/rfb/*
%dir /usr/include/rfb
%{_libdir}/libvncclient.so
%{_libdir}/libvncserver.so
%{_libdir}/pkgconfig/*.pc
%changelog