File libvnc.spec of Package libvnc

#
# spec file for package libvnc
#
# Copyright (c) 2012 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:           libvnc
%define lname	libVncExt2
Version:        20070501
Release:        0
Summary:        VNC for XFree86 v4.x architecture
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Url:            http://sf.net/projects/xf4vnc/

#CVS-Clone:	-d:pserver:anonymous@xf4vnc.cvs.sf.net:/cvsroot/xf4vnc co modular/src/lib/libvnc
Source:         %name-%version.tar.bz2
Source1:        COPYING
Source2:        vncproto-20070501.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf >= 2.57 automake libtool
BuildRequires:  pkgconfig pkgconfig(x11) pkgconfig(xext)
BuildRequires:  pkgconfig(xextproto)

%description
xf4vnc provides two implementations of VNC in an Xserver. Both implementations
are built around XFree86(tm) 4.x which provides numerous new extensions, such
as RENDER and GLX.

The first, is to mimic the older 'Xvnc' virtual Xserver that exists in many
other VNC implementations. This mode should be a drop in replacement for
existing installations.

The second is the 'vnc.so' X server module with allows you to access your
normal X display with a VNC viewer

The xf4vnc project also includes a VNC viewer. It's based on the original
AT&T viewer but has some enhancements which fix the problem with flickering
black rectangles and improves the performance of hextile decoding. 

%package -n %lname
Summary:        VNC for XFree86 v4.x architecture
Group:          System/Libraries

%description -n %lname
xf4vnc provides two implementations of VNC in an Xserver. Both implementations
are built around XFree86(tm) 4.x which provides numerous new extensions, such
as RENDER and GLX.

The first, is to mimic the older 'Xvnc' virtual Xserver that exists in many
other VNC implementations. This mode should be a drop in replacement for
existing installations.

The second is the 'vnc.so' X server module with allows you to access your
normal X display with a VNC viewer

The xf4vnc project also includes a VNC viewer. It's based on the original
AT&T viewer but has some enhancements which fix the problem with flickering
black rectangles and improves the performance of hextile decoding. 

%package devel
Summary:        Development files for the ?
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel
xf4vnc provides two implementations of VNC in an Xserver. Both implementations
are built around XFree86(tm) 4.x which provides numerous new extensions, such
as RENDER and GLX.

The first, is to mimic the older 'Xvnc' virtual Xserver that exists in many
other VNC implementations. This mode should be a drop in replacement for
existing installations.

The second is the 'vnc.so' X server module with allows you to access your
normal X display with a VNC viewer

The xf4vnc project also includes a VNC viewer. It's based on the original
AT&T viewer but has some enhancements which fix the problem with flickering
black rectangles and improves the performance of hextile decoding. 

This package contains the development headers for the library found
in %lname.

%prep
%setup -qn %name -b2

%build

%install
pushd ../vncproto
autoreconf -fi
%configure
%makeinstall
popd
autoreconf -fi
export PKG_CONFIG_PATH=${RPM_BUILD_ROOT}/%_libdir/pkgconfig
export VNCEXT_CFLAGS=-I${RPM_BUILD_ROOT}/usr/include
%configure --disable-static
make %{?_smp_mflags}
%makeinstall
rm -f "%buildroot/%_libdir"/*.la
cp %{SOURCE1} .

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%doc COPYING
%_libdir/libVncExt.so.2*

%files devel
%defattr(-,root,root)
/usr/include/X11/extensions/vnc.h
/usr/include/X11/extensions/vncstr.h
%_libdir/libVncExt.so
%_libdir/pkgconfig/vnc.pc
%_libdir/pkgconfig/vncproto.pc

%changelog