diff --git a/.gitignore b/.gitignore index e69de29..fcdc370 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/18e6891.zip diff --git a/lv2-sorcer-lv2dir.patch b/lv2-sorcer-lv2dir.patch new file mode 100644 index 0000000..0613d36 --- /dev/null +++ b/lv2-sorcer-lv2dir.patch @@ -0,0 +1,32 @@ +diff --git a/makefile b/makefile +index bbf3a1e..462653b 100644 +--- a/makefile ++++ b/makefile +@@ -1,6 +1,7 @@ + + CC=g++ + CFLAGS=-g -Wall ++DESTDIR?=$(HOME)/.lv2/ + + INCLUDES=$(shell pkg-config --cflags sndfile cairomm-1.0 ntk ntk_images) + LDFLAGS=$(shell pkg-config --libs sndfile cairomm-1.0 ntk ntk_images) -fPIC -shared -Wl,-z,nodelete +@@ -23,9 +24,9 @@ folder: + + install: + #cp -r sorcer.lv2 ~/.lv2/ +- install -d $(HOME)/.lv2/sorcer.lv2 +- install -t $(HOME)/.lv2/sorcer.lv2 ./sorcer.lv2/* +- cp -r presets/*.lv2 ~/.lv2/ ++ install -d $(DESTDIR)/sorcer.lv2 ++ install -t $(DESTDIR)/sorcer.lv2 ./sorcer.lv2/* ++ cp -r presets/*.lv2 $(DESTDIR) + + + ui: $(UISOURCES) $(UI) +@@ -49,5 +50,4 @@ $(UI): $(UIOBJECTS) + + clean: + # rm -f uiTest +- rm -f sorcer.lv2/sorcer.so +- rm -f sorcer.lv2/sorcer_ui.so ++ rm -rf $(DESTDIR)/sorcer.lv2 diff --git a/lv2-sorcer.spec b/lv2-sorcer.spec new file mode 100644 index 0000000..ae3469f --- /dev/null +++ b/lv2-sorcer.spec @@ -0,0 +1,69 @@ +%global commit 18e68914f2ae19dff01d77ce263a42c31041d0cc +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global prerelease 20131104 + +Name: lv2-sorcer +Version: 0.0.1 +Release: 1.0.%{prerelease}git%{shortcommit}%{?dist} +Summary: An audio compressor for JACK + +Group: Applications/Multimedia +License: GPLv3+ +URL: http://openavproductions.com/sorcer/ +Source0: https://github.com/harryhaaren/openAV-Sorcer/archive/%{shortcommit}.zip +Patch0: lv2-sorcer-lv2dir.patch +BuildRequires: lv2-devel +BuildRequires: faust +BuildRequires: python2 +BuildRequires: gtkmm24-devel +BuildRequires: cairo-devel +BuildRequires: boost-devel +BuildRequires: fltk-devel +BuildRequires: non-ntk-devel +BuildRequires: libsndfile-devel +Requires: lv2 + +%global __provides_exclude_from ^%{_libdir}/lv2/.*$ + +%description +Sorcer is a polyphonic wavetable synth LV2 plugin. Its sonic fingerprint is +one of harsh modulated sub-bass driven walls of sound. Two morphing wavetable +oscillators and one sine oscillator provide the generation routines. The LFO +can be mapped to wavetable modulation as well as filter cutoff. An ADSR allows +for shaping the resulting sound, while a master volume finishes the signal +chain. Easily creating a variety of dubstep basslines and harsh pad sounds. + +Additional presets can be found here: + https://github.com/harryhaaren/openAV-presets + +%prep +%setup -q -n openAV-Sorcer-%{commit} +%patch0 -p1 +sed -i -e "s|-O3 -Wall|%{optflags}|"\ + -e "s|main.cpp|%{optflags} main.cpp|" \ + makefile + +%build +make %{?_smp_mflags} CFLAGS="%{optflags}" + +%install +make install DESTDIR=%{buildroot}%{_libdir}/lv2 +chmod 644 %{buildroot}%{_libdir}/lv2/*/*.ttl + +%files +%doc README LICENSE +%{_libdir}/lv2/* + +%changelog +* Mon Nov 04 2013 Brendan Jones 0.0.1-1.0.20131104git18e6891 +- New upstream release + +* Tue Oct 29 2013 Brendan Jones 0.0.1-0.3.20131013git4e35643 +- Add missing BR's + +* Sat Oct 26 2013 Brendan Jones 0.0.1-0.2.20131013git4e35643 +- Remove presets, add to description + +* Sun Oct 13 2013 Brendan Jones 0.0.1-0.1.20131013git4e35643 +- Initial package + diff --git a/sources b/sources index e69de29..1a608da 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c28503eeea7f2b40b4d04af61fa8d681 18e6891.zip