File RetroWaveMIDIProxy.spec of Package RetroWaveMIDIProxy

#
# spec file for package RetroWaveMIDIProxy
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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:           RetroWaveMIDIProxy
Version:        0~git20230317
Release:        0
Summary:        Connects modern DAWs and MIDI keyboards to RetroWave OPL3 hardware
License:        AGPL-3.0-or-later
URL:            https://github.com/SudoMaker/RetroWaveMIDIProxy
#Git-Clone:     https://github.com/SudoMaker/RetroWaveMIDIProxy.git
Source:         %{name}-%{version}.tar.xz
Source1:        _deps.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5SerialPort)
BuildRequires:  cmake(Qt5Widgets)
# needed to build bundled libs
BuildRequires:  pkgconfig(alsa)
# bundled libs
Provides:       bundled(libADLMIDI)
Provides:       bundled(rtmidi)

%description
RetroWaveMIDIProxy is a software tool that connects modern DAWs and
MIDI keyboards to RetroWave OPL3 hardware sound cards, allowing users
to create authentic, vintage sounds in real-time.
This software acts as a MIDI proxy, translating MIDI input into
OPL3 commands that can be sent to the hardware synthesizer.

%prep
%setup -q
tar xxf %{SOURCE1}

%build
%cmake \
  -DCPM_SOURCE_CACHE=$(pwd)/../_deps \
  -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON
%cmake_build

%install
install -Dpm 0755 build/RetroWaveMIDIProxyGUI %{buildroot}%{_bindir}/RetroWaveMIDIProxyGUI

%files
%license LICENSE
%doc README.md
%{_bindir}/RetroWaveMIDIProxyGUI

%changelog
openSUSE Build Service is sponsored by