From a01b2cd6843e0a53e4118e6152b957b2017eddb3 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Wed, 1 Feb 2017 18:09:45 +0100 Subject: [PATCH] new package --- grooves.patch | 21 ++++++++++++++++++ isdigit.patch | 22 +++++++++++++++++++ linuxband.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 grooves.patch create mode 100644 isdigit.patch create mode 100644 linuxband.spec diff --git a/grooves.patch b/grooves.patch new file mode 100644 index 0000000..97306cb --- /dev/null +++ b/grooves.patch @@ -0,0 +1,21 @@ +From c91304754ed421baa0f05df0339eb13f33e3ade7 Mon Sep 17 00:00:00 2001 +From: Ales Nosek +Date: Mon, 12 Nov 2012 19:39:20 -0800 +Subject: [PATCH] Fix grooves parsing + +--- + src/main/python/linuxband/mma/grooves.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/main/python/linuxband/mma/grooves.py b/src/main/python/linuxband/mma/grooves.py +index 2dab9d8..4df103b 100644 +--- a/src/main/python/linuxband/mma/grooves.py ++++ b/src/main/python/linuxband/mma/grooves.py +@@ -102,6 +102,7 @@ def __do_load_grooves(self, grooves_list, path): + song_data = self.__parseGrooves(full_name) + if not song_data: continue + song_bar_info = song_data.get_bar_info_all() ++ doc = author = time = '' + for line in song_bar_info[0].get_lines(): + action = line[0] + if action == Glob.A_BEGIN_BLOCK and line[1] == Glob.A_DOC: diff --git a/isdigit.patch b/isdigit.patch new file mode 100644 index 0000000..4c88c2f --- /dev/null +++ b/isdigit.patch @@ -0,0 +1,22 @@ +From b1f4160805acf493cec8c52c954bbaa42c9c7087 Mon Sep 17 00:00:00 2001 +From: simbulu +Date: Fri, 2 Sep 2016 14:19:01 +0100 +Subject: [PATCH] defining isdigit in midi.c + +included ctype.h in midi.c in order to define isdigit +--- + src/main/c/midi.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/main/c/midi.c b/src/main/c/midi.c +index 2e47bfd..118ce75 100644 +--- a/src/main/c/midi.c ++++ b/src/main/c/midi.c +@@ -32,6 +32,7 @@ + #include "config.h" + #include "smf.h" + #include "midi.h" ++#include + + int + strcmp_min(char *s1, char *s2) { diff --git a/linuxband.spec b/linuxband.spec new file mode 100644 index 0000000..467902b --- /dev/null +++ b/linuxband.spec @@ -0,0 +1,58 @@ +Summary: LinuxBand GUI front-end for MMA +Name: linuxband +Version: 12.02.1 +Release: 1 +License: GPL v2+ +Group: Applications +Source0: http://linuxband.org/assets/sources/%{name}-%{version}.tar.gz +# Source0-md5: d87c8db9badf776fd321362b2fdb6c7a +Patch0: grooves.patch +Patch1: isdigit.patch +URL: http://linuxband.org/ +BuildRequires: autoconf +BuildRequires: glib2-devel >= 1:2.2 +BuildRequires: jack-audio-connection-kit-devel >= 0.102.0 +BuildRequires: libsmf-devel >= 1.3 +Requires: mma +Requires: python-gtksourceview2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +LinuxBand is a GUI front-end for MMA (Musical MIDI Accompaniment). +Type in the chords, choose the groove and LinuxBand will play a +musical accompaniment for you. It’s an open source alternative to +Band-in-a-Box featuring: + +- Easy to use graphical interface +- Open and well-documented data format +- Output to JACK Midi to facilitate co-operation with other audio + applications + +%prep +%setup -q + +%patch0 -p1 +%patch1 -p1 + +%build +%{__autoconf} + +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING README.md +%attr(755,root,root) %{_bindir}/%{name} +%dir %{_libdir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/%{name}-player +%{_datadir}/%{name} -- 2.44.0