File looking-glass-client.spec of Package looking-glass-client
#
# spec file for package looking-glass-client
#
# Copyright (c) 2018 SUSE LINUX 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: looking-glass-client
Version: 20221209~B6
Release: 0
Summary: A KVM Frame Relay (KVMFR) implementation
Group: System/Emulators/PC
License: GPL-2.0
Url: https://looking-glass.hostfission.com
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
#Audio Dependencies
BuildRequires: pipewire-devel
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(spice-protocol)
BuildRequires: pkgconfig(libconfig)
#Crypto dependencies
BuildRequires: pkgconfig(nettle)
BuildRequires: pkgconfig(hogweed)
#Fonts
BuildRequires: pkgconfig(fontconfig)
BuildRequires: gnu-free-fonts
BuildRequires: font(freemono)
#GL dependencies
BuildRequires: pkgconfig(libva-glx)
BuildRequires: Mesa-libGLESv3-devel
#Xorg dependencies
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xpresent)
BuildRequires: pkgconfig(xrandr)
#Wayland dependencies
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
#SDL dependencies
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_ttf)
%description
Looking Glass is an open source application that allows the use of a KVM (Kernel-based Virtual Machine) configured for VGA PCI Pass-through without an attached physical monitor, keyboard or mouse. This is the final step required to move away from dual booting with other operating systems for legacy programs that require high performance graphics
%prep
%setup -q
sed -i \
-e 's|^option(OPTIMIZE_FOR_NATIVE\s\+\".\+\"\s\+ON)|option(OPTIMIZE_FOR_NATIVE "Disable this for packaging" OFF)|' \
-e 's|^option(ENABLE_BACKTRACE\s\+\".\+\"\s\+ON)|option(ENABLE_BACKTRACE "Enable backtrace support on crash" OFF)|' \
-e "s|-D \?BUILD_VERSION=.*\"'|-D BUILD_VERSION='\"%{version}\"'|" \
client/CMakeLists.txt
%build
mkdir build && cd build &&\
cmake ../client \
-DCMAKE_INSTALL_PREFIX="%_prefix"
%make_jobs
%install
cd build
mkdir -p %{buildroot}%{_bindir}
ln %{name} %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root)
%doc README.md CONTRIBUTORS AUTHORS
%license LICENSE
%attr(755, root, root) %{_bindir}/%{name}
%changelog