File LibVNCServer.spec of Package LibVNCServer
#
# spec file for package LibVNCServer (Version 0.9.7)
#
# 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: LibVNCServer
BuildRequires: libavahi-devel libjpeg-devel slang-devel xorg-x11-devel
License: GPLv2+
Group: Development/Libraries/X11
AutoReqProv: on
Version: 0.9.7
Release: 8
Summary: VNC Development Library
Url: http://libvncserver.sf.net/
Source0: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch1: LibVNCServer-LINUX.diff
Patch2: filetransfer-overflow.diff
Patch5: patch-libvnc-0215.l
Patch6: stack-check
Patch7: redef-keysym
Patch10: dont-build-x11vnc
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
AutoReqProv: on
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
%patch2 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch10 -p1
# aclocal; autoheader; automake --add-missing --copy; autoconf
# ./configure --enable-maintainer-mode
# sh ./autogen.sh
%build
%{?suse_update_config:%{suse_update_config -f}}
CFLAGS="$RPM_OPT_FLAGS -D_REENTRANT" \
%configure --disable-static --with-pic --enable-shared --with-gnu-ld
%{__make} %{?jobs:-j%jobs}
%check
make check
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf ${RPM_BUILD_ROOT}
%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
%changelog