File DrumFixer.spec of Package DrumFixer
#
# spec file for package DrumFixer
#
# 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: DrumFixer
Version: git.master.20200831
Release: 0
Summary: Audio plugin for editing drum tones
License: GPL-3.0-only
URL: https://github.com/jatinchowdhury18/DrumFixer
Source0: %{name}-%{version}.tar.gz
Source1: generate-lv2-ttl.py
Source2: LV2.mak.in
Source3: AppConfig.h.in
Patch0: drumfixer-jmap-cast.patch
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: libcurl-devel
BuildRequires: ladspa-devel
BuildRequires: JUCE-devel
BuildRequires: JUCE6-Projucer
BuildRequires: lv2-devel
BuildRequires: python3
%description
DrumFixer is an audio plugin designed to help mixing engineers achieve better sounding drums. The basic idea is to damp frequencies in the drum sound that ring out too long.
%package -n vst-%{name}
Summary: Audio plugin for editing drum tones (VST)
%description -n vst-%{name}
DrumFixer is an audio plugin designed to help mixing engineers achieve better sounding drums. The basic idea is to damp frequencies in the drum sound that ring out too long.
%package -n lv2-%{name}
Summary: Audio plugin for editing drum tones (LV2)
%description -n lv2-%{name}
DrumFixer is an audio plugin designed to help mixing engineers achieve better sounding drums. The basic idea is to damp frequencies in the drum sound that ring out too long.
%prep
%setup -q
%autopatch -p1
cd DrumFixer
mkdir -p JuceLibraryCode
cp -f %{SOURCE3} JuceLibraryCode/
cp %{SOURCE2} .
cp %{SOURCE1} .
sed -i -e 's/JUCEOPTIONS/JUCEOPTIONS JUCE_JACK="1" JUCE_WEB_BROWSER="0" JUCE_USE_CURL="0"/' %{name}.jucer
%build
cd DrumFixer
lv2uri=%{URL}
sed "s/_lv2uri_pattern_/${lv2uri//\//\\/}/g" JuceLibraryCode/AppConfig.h.in >JuceLibraryCode/AppConfig.h
sed "s/_juce_target_/%{name}/g" LV2.mak.in >LV2.mak
Projucer --set-global-search-path linux defaultJuceModulePath /usr/share/juce/modules
Projucer --resave %{name}.jucer
echo "include ../../LV2.mak" >> Builds/LinuxMakefile/Makefile
cd Builds/LinuxMakefile
CONFIG=Release make %{?_smp_mflags}
%install
cd DrumFixer
mkdir -p %{buildroot}%{_bindir}
install Builds/LinuxMakefile/build/%{name} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install Builds/LinuxMakefile/build/%{name}.so %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r Builds/LinuxMakefile/build/*.lv2 %{buildroot}%{_libdir}/lv2/
%files
%{_bindir}/%{name}
%doc README.md
%license LICENSE
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/%{name}.so
%doc README.md
%license LICENSE
%files -n lv2-%{name}
%dir %{_libdir}/lv2
%{_libdir}/lv2/*
%doc README.md
%license LICENSE
%changelog