File SN76489.spec of Package SN76489
#
# spec file for package SN76489
#
# 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: SN76489
Version: 1.1.0
Release: 0
Summary: Sega Master System Sound Chip emulation
License: LGPL-2.1-only
Group: Productivity/Multimedia/Sound/Midi
URL: https://github.com/FigBug/SN76489
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: libjack-devel
BuildRequires: JUCE7-Projucer
BuildRequires: JUCE7-source
%description
https://socalabs.com/synths/sn76489/
Emulates Texas Instruments SN76489 of the Sega Master System and other consoles
3 Square wave channels
3 Note polyphony
1 Noise channel with 2 types
Waveform display
Free / Open Source
%package -n lv2-%{name}
Summary: Sega Master System Sound Chip emulation (LV2)
%description -n lv2-%{name}
https://socalabs.com/synths/sn76489/
Emulates Texas Instruments SN76489 of the Sega Master System and other consoles
3 Square wave channels
3 Note polyphony
1 Noise channel with 2 types
Waveform display
Free / Open Source
%package -n vst-%{name}
Summary: Sega Master System Sound Chip emulation (VST)
%description -n vst-%{name}
https://socalabs.com/synths/sn76489/
Emulates Texas Instruments SN76489 of the Sega Master System and other consoles
3 Square wave channels
3 Note polyphony
1 Noise channel with 2 types
Waveform display
Free / Open Source
%package -n vst3-%{name}
Summary: Sega Master System Sound Chip emulation (VST3)
%description -n vst3-%{name}
https://socalabs.com/synths/sn76489/
Emulates Texas Instruments SN76489 of the Sega Master System and other consoles
3 Square wave channels
3 Note polyphony
1 Noise channel with 2 types
Waveform display
Free / Open Source
%prep
%setup -q
mkdir -p modules/juce
ln -s %{_usrsrc}/JUCE7/modules modules/juce/modules
%build
sed -i -e 's/JUCEOPTIONS/JUCEOPTIONS JUCE_JACK="1" JUCE_WEB_BROWSER="0" JUCE_USE_CURL="0" /' plugin/%{name}.jucer
Projucer --resave plugin/%{name}.jucer
cd plugin/Builds/LinuxMakefile
CONFIG=Release make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
install plugin/Builds/LinuxMakefile/build/%{name} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install plugin/Builds/LinuxMakefile/build/%{name}.so %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r plugin/Builds/LinuxMakefile/build/*.lv2 %{buildroot}%{_libdir}/lv2/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r plugin/Builds/LinuxMakefile/build/*.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