File monado.spec of Package monado

#
# spec file for package monado
#
# Copyright (c) 2019 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:           monado
Version:        21.0.0+git.20210920T155400.ee68aebb
Release:        0
Summary:        Monado - XR Runtime (XRT)
License:        GPL-3.0-or-later
Group:          System/X11/Utilities
Url:            https://monado.freedesktop.org
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  spirv-headers
BuildRequires:  spirv-tools
BuildRequires:  spirv-tools-devel
BuildRequires:  glslang-devel
BuildRequires:  eigen3-devel
BuildRequires:  vulkan-devel
BuildRequires:  vulkan-headers
BuildRequires:  wayland-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  libusb-1_0-devel
BuildRequires:  opencv-devel
BuildRequires:  ffmpeg-4-libavcodec-devel
BuildRequires:  libudev-devel
BuildRequires:  libopenhmd0
BuildRequires:  libopenhmd0-devel
BuildRequires:  libjpeg62-devel

BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  systemd-rpm-macros

%description
This is an open source XR runtime delivering immersive experiences such as VR
and AR on on mobile, PC/desktop, and any other device (because gosh darn people
come up with a lot of weird hardware).  Monado aims to be a complete and
conforming implementation of the OpenXR API made by Khronos.  The project
currently is being developed for GNU/Linux and aims to support other operating
systems in the near future.  "Monado" has no specific meaning and is just a
name.

%prep
%setup -q
sed -i 's|sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;$|sigStackSize = 32768;|' src/external/Catch2/catch/catch.hpp

%build
%cmake

%install
%cmake_install

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%dir %{_sysconfdir}/xdg/openxr
%dir %{_sysconfdir}/xdg/openxr/1
%{_sysconfdir}/xdg/openxr/1/active_runtime.json
%{_bindir}/monado*
%{_libdir}/libopenxr_monado.so
%dir %{_datadir}/openxr
%dir %{_datadir}/openxr/1
%{_datadir}/openxr/1/openxr_monado.json
%dir %{_datadir}/steamvr-monado
%dir %{_datadir}/steamvr-monado/bin
%dir %{_datadir}/steamvr-monado/bin/linux64
%{_datadir}/steamvr-monado/driver.vrdrivermanifest
%{_datadir}/steamvr-monado/bin/linux64/driver_monado.so
%dir %{_datadir}/steamvr-monado/resources
%{_datadir}/steamvr-monado/resources
%{_userunitdir}/monado.{service,socket}

%changelog

openSUSE Build Service is sponsored by