File JammerNetz.spec of Package JammerNetz
#
# spec file for package JammerNetz
#
# 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 https://bugs.opensuse.org/
#
Name: JammerNetz
Version: 2.3.0rc4+git50.84455d6
Release: 0
Summary: OpenSource internet jam sessions, aka Networked Music Performance software
License: AGPL-3.0
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/christofmuc/JammerNetz
Source0: https://github.com/christofmuc/JammerNetz/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: no-unneeded-deps_and-fix-rpath.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: ncurses-devel
BuildRequires: cmake
BuildRequires: update-desktop-files
%description
JammerNetz is an Open Source system for "networked music performance" (NMP), also known as "jamming over the internet".
It consists of a lightweight server software, and a little UI client software that can use your audio devices and
stream multiple uncompressed high-quality audio channels to other participants as a common mixdown.
%prep
%autosetup -p1
sed -i -e '/^#include <time.h>/a #include <cstdint>' third_party/sentry-native/external/crashpad/util/file/filesystem.h
%build
cd third_party/flatbuffers
cmake -S . -B LinuxBuilds -G "Unix Makefiles" -D FLATBUFFERS_CXX_FLAGS="-Wno-error"
cmake --build LinuxBuilds/ %{?_smp_mflags}
cd ../../third_party/sentry-native/
cmake -S . -B builds -DSENTRY_BACKEND=crashpad -DCMAKE_INSTALL_PREFIX=./install
cmake --build builds --target install %{?_smp_mflags}
cd ../../
cmake -B cmake-build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_POLICY_VERSION_MINIMUM=3.5
cmake --build cmake-build %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
install cmake-build/Server/JammerNetzServer %{buildroot}%{_bindir}/
install cmake-build/Client/JammerNetzClient %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
install Client/JammerNetzIcon.png %{buildroot}%{_datadir}/pixmaps/
%suse_update_desktop_file -c JammerNetzClient JammerNetzClient JammerNetzClient JammerNetzClient JammerNetzIcon AudioVideo Music Network
%files
%{_bindir}/*
%license LICENSE.md
%doc README.md
%{_datadir}/pixmaps/JammerNetzIcon.png
%{_datadir}/applications/JammerNetzClient.desktop
%changelog