--- /dev/null
+From c91304754ed421baa0f05df0339eb13f33e3ade7 Mon Sep 17 00:00:00 2001
+From: Ales Nosek <ales.nosek@gmail.com>
+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:
--- /dev/null
+From b1f4160805acf493cec8c52c954bbaa42c9c7087 Mon Sep 17 00:00:00 2001
+From: simbulu <torkil.zachariassen@gmail.com>
+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 <ctype.h>
+
+ int
+ strcmp_min(char *s1, char *s2) {
--- /dev/null
+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}