# Tag: Jack, Synthesizer, Modular # Type: Plugin, Standalone, VST, VST3, CLAP # Category: Audio, Synthesizer %global debug_package %{nil} Name: foam-synth Version: 0.1.3 Release: 1%{?dist} Summary: 8 operator FM synthesizer License: GPL-3.0-or-later URL: https://github.com/Madadog/foam-synth ExclusiveArch: x86_64 aarch64 Vendor: Audinux Distribution: Audinux Source0: https://github.com/Madadog/foam-synth/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ BuildRequires: rustup BuildRequires: xcb-util-wm-devel BuildRequires: libXcursor-devel BuildRequires: mesa-libGL-devel BuildRequires: libX11-devel BuildRequires: openssl-devel BuildRequires: pkgconfig(jack) BuildRequires: alsa-lib-devel BuildRequires: python3 %description Flashy Synthesia Like Software %package -n vst3-%{name} Summary: VST3 version of %{name} License: GPL-3.0-or-later Requires: %{name} %description -n vst3-%{name} VST3 version of %{name} %package -n clap-%{name} Summary: CALP version of %{name} License: GPL-3.0-or-later Requires: %{name} %description -n clap-%{name} CLAP version of %{name} %prep %autosetup -n %{name}-%{version} %build %set_build_flags export RUSTFLAGS="-g -O" export CWD=`pwd` export RUSTUP_HOME="$CWD/rustup" export CARGO_HOME="$CWD/cargo" # rustup-init -y --default-toolchain=1.76.0-x86_64-unknown-linux-gnu # rustup-init -y --default-toolchain=nightly-x86_64-unknown-linux-gnu # source cargo/env # rustup target list # cargo build --release --bin hexosynth_jack %ifarch x86_64 rustup-init -y --default-toolchain nightly-x86_64-unknown-linux-gnu %endif %ifarch aarch64 rustup-init -y --default-toolchain nightly-aarch64-unknown-linux-gnu %endif source cargo/env cargo xtask bundle foam --release %install install -m 755 -d %{buildroot}/%{_libdir}/vst3/ install -m 755 -d %{buildroot}/%{_libdir}/clap/ cp -vfr target/bundled/Foam.vst3 %{buildroot}/%{_libdir}/vst3/ cp -vfr target/bundled/Foam.clap %{buildroot}/%{_libdir}/clap/ %files %doc README.md %license LICENSE %files -n vst3-%{name} %{_libdir}/vst3/* %files -n clap-%{name} %{_libdir}/clap/* %changelog * Sun May 19 2024 Yann Collette - 0.1.3-1 - Initial spec file