[packages/freewheeling: 1/2] new package

jajcus jajcus at pld-linux.org
Fri Mar 10 19:43:27 CET 2017


commit 37a8f83c8b278ed88c7e3944dd66c392f5bc3681
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Mar 10 19:36:38 2017 +0100

    new package

 destdir.patch       |  9 +++++++
 format_string.patch | 30 +++++++++++++++++++++++
 freewheeling.spec   | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)
---
diff --git a/freewheeling.spec b/freewheeling.spec
new file mode 100644
index 0000000..8181884
--- /dev/null
+++ b/freewheeling.spec
@@ -0,0 +1,68 @@
+
+%define	commit	4a03065f9d2f520cbd37dd560b4cae5685418153
+
+Summary:	Freewheeling Live Looper
+Name:		freewheeling
+Version:	0.6.1
+Release:	0.git.1
+License:	GPL v2
+Group:		Applications
+Source0:	https://github.com/free-wheeling/freewheeling/archive/%{commit}/%{name}-%{commit}.tar.gz
+# Source0-md5:	ac66a2eecd4992ae0e377458cb529448
+Patch0:		format_string.patch
+Patch1:		destdir.patch
+URL:		https://github.com/free-wheeling/freewheeling/
+BuildRequires:	SDL-devel
+BuildRequires:	SDL_gfx-devel
+BuildRequires:	SDL_ttf-devel
+BuildRequires:	alsa-lib-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	fluidsynth-devel
+BuildRequires:	freetype-devel
+BuildRequires:	gnutls-openssl-devel
+BuildRequires:	jack-audio-connection-kit-devel
+BuildRequires:	liblo-devel
+BuildRequires:	libogg-devel
+BuildRequires:	libsndfile-devel
+BuildRequires:	libtool
+BuildRequires:	libvorbis-devel
+BuildRequires:	libxml2-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Freewheeling provides a highly configurable, intuitive, and fluid user
+interface for instrumentalists to capture audio loops in real-time.
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+
+%configure \
+	--enable-fluidsynth
+
+%{__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 AUTHORS ChangeLog THANKS TUNING
+%doc data/config-help.txt examples
+%attr(755,root,root) %{_bindir}/fweelin
+%{_datadir}/fweelin
diff --git a/destdir.patch b/destdir.patch
new file mode 100644
index 0000000..270426b
--- /dev/null
+++ b/destdir.patch
@@ -0,0 +1,9 @@
+diff -dur freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153.orig/data/Makefile.am freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153/data/Makefile.am
+--- freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153.orig/data/Makefile.am	2017-02-24 19:47:23.000000000 +0100
++++ freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153/data/Makefile.am	2017-03-10 19:16:00.106740825 +0100
+@@ -3,4 +3,4 @@
+ fweelin_DATA = *.txt *.xml basic.sf2 vera.ttf verabd.ttf gdb-stackdump-cmds
+ 
+ install-data-hook:
+-	sed -ie "s/<freewheeling version=\"_FWEELIN_VERSION_\">/<freewheeling version=\"${VERSION}\">/" $(fweelindir)/fweelin.xml
++	sed -ie "s/<freewheeling version=\"_FWEELIN_VERSION_\">/<freewheeling version=\"${VERSION}\">/" $(DESTDIR)$(fweelindir)/fweelin.xml
diff --git a/format_string.patch b/format_string.patch
new file mode 100644
index 0000000..2e43c55
--- /dev/null
+++ b/format_string.patch
@@ -0,0 +1,30 @@
+diff -dur -x '*~' freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153.orig/src/fweelin_config.cc freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153/src/fweelin_config.cc
+--- freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153.orig/src/fweelin_config.cc	2017-02-24 19:47:23.000000000 +0100
++++ freewheeling-4a03065f9d2f520cbd37dd560b4cae5685418153/src/fweelin_config.cc	2017-03-10 19:12:37.894574426 +0100
+@@ -690,7 +690,7 @@
+   int str_len = strlen(str_base)+4;
+   char basebuf[str_len];
+   if (contnum == 0)
+-    sprintf(basebuf,str_base);
++    sprintf(basebuf,"%s",str_base);
+   else 
+     snprintf(basebuf,str_len,"%s%d",str_base,contnum);
+ 
+@@ -1140,7 +1140,7 @@
+           int str_len = strlen(str_base)+4;
+           char buf[str_len];
+           if (contnum == 0)
+-            sprintf(buf,str_base);
++            sprintf(buf,"%s",str_base);
+           else 
+             snprintf(buf,str_len,"%s%d",str_base,contnum);
+ 
+@@ -3284,7 +3284,7 @@
+       if (n != 0) {
+         nw->filename = new char[xmlStrlen(n)+1];
+         strcpy(nw->filename,(char*)n);
+-        printf(nw->filename);
++        printf("%s",nw->filename);
+         xmlFree(n);
+       }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/freewheeling.git/commitdiff/a12991453ba77df0aa73c6aac8ac7a23fc70731e



More information about the pld-cvs-commit mailing list