File SARndbox.spec of Package SARndbox
#
# spec file for package SARndbox
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 vrui_ver 8.0
Name: SARndbox
Version: 2.8
Release: 0
Summary: Augmented Reality Sandbox
License: GPL-2.0-or-later
Group: System/Libraries
URL: https://web.cs.ucdavis.edu/~okreylos/ResDev/SARndbox/index.html
Source: https://web.cs.ucdavis.edu/~okreylos/ResDev/SARndbox/%{name}-%{version}.tar.gz
#PATCH-FIX-OPENSUSE fix-linking-errors.patch -- fix linking errors due to the new build system
Patch0: fix-linking-errors.patch
BuildRequires: Kinect-devel
BuildRequires: Mesa-devel
BuildRequires: Vrui-devel
BuildRequires: alsa-devel
BuildRequires: gcc-c++
BuildRequires: libdc1394-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtheora-devel
BuildRequires: libtiff-devel
BuildRequires: libusb-devel
BuildRequires: openal-soft-devel
BuildRequires: speex-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Augmented Reality Sandbox is an augmented reality application
scanning a sand surface using a Kinect 3D camera, and projecting a real-
time updated topography map with topographic contour lines, hillshading,
and an optional real-time water flow simulation back onto the sand
surface using a calibrated projector.
%prep
%setup -q
%patch -P 0
sed -i 's/RESOURCEDIR = share/RESOURCEDIR = usr\/share/' makefile
mkdir -p usr
mv share usr/
%build
%make_build VRUI_MAKEDIR=%{_datadir}/Vrui-%vrui_ver/make/ SHOWCOMMAND=1
%install
make VRUI_MAKEDIR=%{_datadir}/Vrui-%vrui_ver/make/ INSTALLDIR=%{buildroot} install
mkdir -p %{buildroot}%{_prefix}
mv %{buildroot}/bin %{buildroot}%{_prefix}
%files
%license COPYING
%doc HISTORY README
%{_bindir}/*
%config %{_sysconfdir}/SARndbox-%{version}/
%{_datadir}/SARndbox-%{version}/
%changelog