File vr-video-player.spec of Package vr-video-player
#
# spec file for package vr-video-player
#
# Copyright (c) 2024 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/
#
Name: vr-video-player
Version: 0.1.0.r137.0410062
Release: 0
Summary: A virtual reality video player for Linux
License: BSD-3-Clause
URL: https://git.dec05eba.com/vr-video-player
Source0: %{name}-%{version}.tar.zst
Source1: vr-video-player.rpmlintrc
Patch0: 0001-Add-eye-left-offset-to-support-overriding-left-eye-o.patch
Patch1: 0002-Fix-build-on-OpenSUSE-TW.patch
BuildRequires: gcc-c++
BuildRequires: zstd
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glm)
BuildRequires: pkgconfig(libxdo)
BuildRequires: pkgconfig(mpv)
BuildRequires: pkgconfig(openvr) >= 1.23.7
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xfixes)
%description
A virtual reality video player for Linux for playing stereoscopic videos and regular videos. Also works for games.
%prep
%autosetup -p1
%build
./build.sh
%install
install -Dm755 %{name} %{buildroot}/%{_bindir}/%{name}
install -Dm644 config/hellovr_actions.json %{buildroot}/%{_datadir}/%{name}/hellovr_actions.json
install -Dm644 config/hellovr_bindings_generic.json %{buildroot}/%{_datadir}/%{name}/hellovr_bindings_generic.json
install -Dm644 config/hellovr_bindings_vive_controller.json %{buildroot}/%{_datadir}/%{name}/hellovr_bindings_vive_controller.json
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%changelog