File RP2A03.spec of Package RP2A03
#
# spec file for package RP2A03
#
# 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: RP2A03
Version: 1.1.0+git.383b677
Release: 0
Summary: Nintenodo RP2A03 synth
License: LGPL-2.1-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/FigBug/RP2A03
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++ cmake
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: libjack-devel
BuildRequires: JUCE8_01-source
%description
https://socalabs.com/synths/rp2a03/
Emulates Ricoh 2A03 of the NTSC Nintendo Entertainment System
2 Square wave channels
1 Triangle wave channel
1 Noise channel
Waveform display
Free / Open Source
Windows VST 32/64
Mac VST/AU 32/64
Linux VST/LV2
%package -n lv2-%{name}
Summary: Nintenodo RP2A03 synth (LV2)
%description -n lv2-%{name}
https://socalabs.com/synths/rp2a03/
Emulates Ricoh 2A03 of the NTSC Nintendo Entertainment System
2 Square wave channels
1 Triangle wave channel
1 Noise channel
Waveform display
Free / Open Source
Windows VST 32/64
Mac VST/AU 32/64
Linux VST/LV2
%package -n vst-%{name}
Summary: Nintenodo RP2A03 synth (VST)
%description -n vst-%{name}
https://socalabs.com/synths/rp2a03/
Emulates Ricoh 2A03 of the NTSC Nintendo Entertainment System
2 Square wave channels
1 Triangle wave channel
1 Noise channel
Waveform display
Free / Open Source
Windows VST 32/64
Mac VST/AU 32/64
Linux VST/LV2
%package -n vst3-%{name}
Summary: Nintenodo RP2A03 synth (VST3)
%description -n vst3-%{name}
https://socalabs.com/synths/rp2a03/
Emulates Ricoh 2A03 of the NTSC Nintendo Entertainment System
2 Square wave channels
1 Triangle wave channel
1 Noise channel
Waveform display
Free / Open Source
Windows VST 32/64
Mac VST/AU 32/64
Linux VST/LV2
%prep
%autosetup -p1
ln -s %{_usrsrc}/JUCE8_01 modules/juce
sed -i -e 's/juce_set_vst2_sdk_path/# juce_set_vst2_sdk_path/' CMakeLists.txt
sed -i -e 's/JUCE_USE_CURL=1/JUCE_USE_CURL=0/' CMakeLists.txt
sed -i -e '/JUCE_USE_CURL=0/a JUCE_JACK=1' CMakeLists.txt
sed -i -e '/PRIVATE curl/d' CMakeLists.txt
sed -i -e '/CMAKE_RELWITHDEBINFO_POSTFIX/d' CMakeLists.txt
%build
%cmake
%cmake_build
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/vst
mkdir -p %{buildroot}%{_libdir}/lv2
mkdir -p %{buildroot}%{_libdir}/vst3
install build/%{name}_artefacts/RelWithDebInfo/Standalone/* %{buildroot}%{_bindir}/
cp build/%{name}_artefacts/RelWithDebInfo/VST/lib%{name}.so %{buildroot}%{_libdir}/vst/%{name}.so
cp -r build/%{name}_artefacts/RelWithDebInfo/LV2/%{name}.lv2 %{buildroot}%{_libdir}/lv2/
cp -r build/%{name}_artefacts/RelWithDebInfo/VST3/%{name}.vst3 %{buildroot}%{_libdir}/vst3/
%files
%{_bindir}/%{name}
%license LICENSE
%doc README.md
%files -n lv2-%{name}
%{_libdir}/lv2/
%doc README.md
%license LICENSE
%files -n vst-%{name}
%{_libdir}/vst/
%doc README.md
%license LICENSE
%files -n vst3-%{name}
%{_libdir}/vst3/
%doc README.md
%license LICENSE
%changelog