File BitWizzard.spec of Package BitWizzard
# spec file for package BitWizzard
#
# Copyright (c) 2022 Fabio Pesari
#
# 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 http://bugs.opensuse.org/
Name: BitWizzard
Version: git.master.20220517
Release: 0
Summary: Bit crusher plugin
License: GPL-3.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://github.com/jpcima/BitWizzard
Source0: %{name}-%{version}.tar.gz
Patch0: 01-cmakelists.patch
BuildRequires: gcc gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(freetype2)
BuildRequires: libjack-devel
BuildRequires: libcurl-devel
BuildRequires: Mesa-libGL-devel
BuildRequires: libXrandr-devel
BuildRequires: libXcursor-devel
BuildRequires: JUCE6-devel
BuildRequires: lv2-devel
BuildRequires: lv2_ttl_generator
%description
A simple bit crusher in the style of DMC.
%package -n vst3-%{name}
Summary: Bit crusher plugin (VST3 plugin)
%description -n vst3-%{name}
A simple bit crusher in the style of DMC.
This is the VST3 plugin version of BitWizzard.
%package -n vst-%{name}
Summary: Bit crusher plugin (VST plugin)
%description -n vst-%{name}
A simple bit crusher in the style of DMC.
This is the VST plugin version of BitWizzard.
%package -n lv2-%{name}
Summary: Bit crusher plugin (LV2 plugin)
%description -n lv2-%{name}
A simple bit crusher in the style of DMC.
This is the LV2 plugin version of BitWizzard.
%prep
%autosetup -p1
cmake -B cmake-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/lib64/juce -DLV2_TTL_GENERATOR=/usr/bin/lv2_ttl_generator
cmake --build cmake-build %{?_smp_mflags}
%install
%define binname bitwiz_plugin
mkdir -p %{buildroot}%{_bindir}
install cmake-build/%{binname}_artefacts/Release/Standalone/* %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_libdir}/vst
install cmake-build/%{binname}_artefacts/Release/VST/* %{buildroot}%{_libdir}/vst/
mkdir -p %{buildroot}%{_libdir}/vst3
cp -r cmake-build/%{binname}_artefacts/Release/VST3/*.vst3 %{buildroot}%{_libdir}/vst3/
mkdir -p %{buildroot}%{_libdir}/lv2
cp -r cmake-build/%{binname}_artefacts/Release/LV2/*.lv2 %{buildroot}%{_libdir}/lv2/
%files
%{_bindir}/*
%doc README.md
%license LICENSE
%files -n vst3-%{name}
%dir %{_libdir}/vst3
%{_libdir}/vst3/*
%doc README.md
%license LICENSE
%files -n lv2-%{name}
%dir %{_libdir}/lv2
%{_libdir}/lv2/*
%doc README.md
%license LICENSE
%files -n vst-%{name}
%dir %{_libdir}/vst
%{_libdir}/vst/*
%doc README.md
%license LICENSE
%changelog