# # spec file for package LibVNCServer # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define libnum 1 Name: LibVNCServer Version: 0.9.15 Release: 0 Summary: VNC Development Library License: GPL-2.0-or-later Group: Development/Libraries/X11 URL: https://github.com/LibVNC/libvncserver # Archive is renamed by github Source0: https://github.com/LibVNC/libvncserver/archive/%{name}-%{version}.tar.gz Source1: baselibs.conf #PATCH-FIX-OPENSUSE: redefine keysyms only if needed Patch0: redef-keysym.patch # PATCH-FIX-UPSTREAM -- CMake 4 compat Patch1: 0001-CMake-require-at-least-CMake-3.5.patch #PATCH-FEATURE-UPSTREAM TLS security type enablement patches gh#LibVNC/libvncserver!234 Patch10: 0001-libvncserver-Add-API-to-add-custom-I-O-entry-points.patch Patch11: 0002-libvncserver-Add-channel-security-handlers.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libavahi-devel BuildRequires: libgcrypt-devel BuildRequires: libgnutls-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: lzo-devel BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: slang-devel %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 -n libvncclient%{libnum} Summary: Library implementing a VNC client Group: System/Libraries Conflicts: LibVNCServer < %{version} Obsoletes: linuxvnc < %{version} %description -n libvncclient%{libnum} LibVNCServer/LibVNCClient are cross-platform C libraries that allow implementing VNC server or client functionality in your program. %package -n libvncserver%{libnum} Summary: Library implementing a VNC server Group: System/Libraries %description -n libvncserver%{libnum} LibVNCServer/LibVNCClient are cross-platform C libraries that allow implementing VNC server or client functionality in your program. %package devel Summary: VNC Development Library Group: Development/Libraries/X11 Requires: gnutls-devel Requires: libgcrypt-devel Requires: libgnutls-devel Requires: libjpeg-devel Requires: libpng-devel Requires: libvncclient%{libnum} = %{version} Requires: libvncserver%{libnum} = %{version} Requires: lzo-devel Requires: openssl-devel Requires: zlib-devel %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 %autosetup -p1 -n libvncserver-%{name}-%{version} # fix encoding for file in ChangeLog ; do mv ${file} ${file}.OLD && \ iconv -f ISO_8859-1 -t UTF8 ${file}.OLD > ${file} && \ touch --reference ${file}.OLD $file done %build %cmake %cmake_build %check %ctest %install %cmake_install %ldconfig_scriptlets -n libvncclient%{libnum} %ldconfig_scriptlets -n libvncserver%{libnum} %files -n libvncserver%{libnum} %license COPYING %doc README.md %{_libdir}/libvncserver.so.%{version} %{_libdir}/libvncserver.so.%{libnum}* %files -n libvncclient%{libnum} %license COPYING %doc README.md %{_libdir}/libvncclient.so.%{version} %{_libdir}/libvncclient.so.%{libnum}* %files devel %license COPYING %doc AUTHORS ChangeLog NEWS.md README.md %{_includedir}/rfb/* %dir %{_includedir}/rfb %{_libdir}/libvncclient.so %{_libdir}/libvncserver.so %{_libdir}/pkgconfig/*.pc %{_libdir}/cmake/LibVNCServer %changelog