# Global variables for github repository %global commit0 4aab7f27b7411bf1edc3225c0834bf2880652a4c %global gittag0 v0.6.3 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) # Disable production of debug package. %global debug_package %{nil} Name: rack-BaconPlugs Version: 0.6.3 Release: 2%{?dist} Summary: A plugin for Rack Group: Applications/Multimedia License: GPLv2+ URL: https://github.com/baconpaul/BaconPlugs # git clone https://github.com/VCVRack/Rack.git Rack # cd Rack # git checkout v0.6.2b # git submodule init # git submodule update # find . -name ".git" -exec rm -rf {} \; # cd dep # wget https://bitbucket.org/jpommier/pffft/get/29e4f76ac53b.zip # unzip 29e4f76ac53b.zip # cp jpommier-pffft-29e4f76ac53b/*.h include/ # rm 29e4f76ac53b.zip # cd .. # tar cvfz Rack.tar.gz Rack/* Source0: Rack.tar.gz Source1: https://github.com/baconpaul/BaconPlugs/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc gcc-c++ BuildRequires: cmake sed BuildRequires: alsa-lib-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: libsamplerate-devel BuildRequires: libzip-devel BuildRequires: glew-devel BuildRequires: glfw-devel BuildRequires: portmidi-devel BuildRequires: portaudio-devel BuildRequires: libcurl-devel BuildRequires: openssl-devel BuildRequires: jansson-devel BuildRequires: gtk2-devel BuildRequires: rtaudio-devel BuildRequires: rtmidi-devel BuildRequires: speex-devel BuildRequires: speexdsp-devel %description "Bacon Music" is my set of EuroRack style plugins for VCVRack - http://www.vcvrack.com. The modules are mostly inspired by me noodling around, and they sort of fall into a few groups: * Control voltage manipulation on 1v/oct signals to do things like glissando and musical quantization and a polyrhytmic clock; * Classic synth algorithms, including an implementation of the NES oscillators and a Karplus Strong implementation. * and finally, not very useful modulations and distortions and stuff. All the source is here, released under an Apache 2.0 license. You are free to use these modules as you see fit. If you happen to use them to make music you want to share, please do let me know, either by raising an issue on this github or by tagging me on twitter (@baconpaul) or soundcloud (@baconpaul). I hope you enjoy the plugins! %prep %setup -qn Rack CURRENT_PATH=`pwd` sed -i -e "s/-march=core2//g" compile.mk sed -i -e "s/-g//g" compile.mk echo "CXXFLAGS += -I$CURRENT_PATH/include -I$CURRENT_PATH/dep/nanovg/src -I$CURRENT_PATH/dep/nanosvg/src -I/usr/include/rtaudio -I/usr/include/rtmidi -I$CURRENT_PATH/dep/oui-blendish -I$CURRENT_PATH/dep/osdialog -I$CURRENT_PATH/dep/jpommier-pffft-29e4f76ac53b -I$CURRENT_PATH/dep/include" >> compile.mk sed -i -e "s/-Wl,-Bstatic//g" Makefile sed -i -e "s/-lglfw3/dep\/lib\/libglfw3.a/g" Makefile sed -i -e "s/assetGlobalDir = \".\";/assetGlobalDir = \"\/usr\/libexec\/Rack\";/g" src/asset.cpp mkdir BaconPlugs_plugin tar xvfz %{SOURCE1} --directory=BaconPlugs_plugin --strip-components=1 %build cd BaconPlugs_plugin make RACK_DIR=.. DESTDIR=%{buildroot} PREFIX=/usr LIBDIR=%{_lib} %{?_smp_mflags} dist %install mkdir -p %{buildroot}%{_libexecdir}/Rack/plugins/BaconMusic/ cp -r BaconPlugs_plugin/dist/BaconMusic/* %{buildroot}%{_libexecdir}/Rack/plugins/BaconMusic/ %files %{_libexecdir}/* %changelog * Sat Nov 30 2019 Yann Collette - 0.6.3 - update to 0.6.3 * Sun Nov 18 2018 Yann Collette - 0.6.2 - initial specfile