[non-daw] Initial import

Brendan Jones bsjones at fedoraproject.org
Sun Jan 13 21:43:24 UTC 2013


commit a2efb0ce4882d6129df6b7dce341d4b9a110fd36
Author: Brendan Jones <brendan.jones.it at gmail.com>
Date:   Sun Jan 13 22:43:20 2013 +0100

    Initial import

 .gitignore             |    1 +
 non-daw-desktop.patch  |   14 ++++++++
 non-daw-makefile.patch |   45 +++++++++++++++++++++++++++
 non-daw.spec           |   80 ++++++++++++++++++++++++++++++++++++++++++++++++
 non-snapshot.sh        |   35 +++++++++++++++++++++
 sources                |    1 +
 6 files changed, 176 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1db5b9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/non-daw-20121013-git61addce.tar.bz2
diff --git a/non-daw-desktop.patch b/non-daw-desktop.patch
new file mode 100644
index 0000000..6e187d4
--- /dev/null
+++ b/non-daw-desktop.patch
@@ -0,0 +1,14 @@
+diff -Nurp non-daw-20120722/timeline/non-daw.desktop.in non-daw-20120722.upd/timeline/non-daw.desktop.in
+--- non-daw-20120722/timeline/non-daw.desktop.in	2012-07-24 09:18:38.000000000 +0200
++++ non-daw-20120722.upd/timeline/non-daw.desktop.in	2012-07-24 10:30:21.956785645 +0200
+@@ -1,8 +1,8 @@
+ [Desktop Entry]
+ Name=Non DAW
+ Comment=Modular Digital Audio Workstation - Timeline Editor
+-Exec=@BIN_PATH@/non-daw
++Exec=non-daw
+ Terminal=false
+ Type=Application
+ Icon=non-daw
+-Categories=Application;AudioVideo;Audio;
++Categories=Application;AudioVideo;Audio;X-Jack;
diff --git a/non-daw-makefile.patch b/non-daw-makefile.patch
new file mode 100644
index 0000000..390675e
--- /dev/null
+++ b/non-daw-makefile.patch
@@ -0,0 +1,45 @@
+diff -Nurp non-daw-20121013/session-manager/configure non-daw-20121013.new/session-manager/configure
+--- non-daw-20121013/session-manager/configure	2012-10-13 07:44:23.000000000 +0200
++++ non-daw-20121013.new/session-manager/configure	2012-10-13 20:35:59.222308215 +0200
+@@ -27,15 +27,15 @@ test_version `version_of liblo` 0.26 ||
+ 
+ end
+ 
+-if ! hostname_resolvable
+-then
+-    echo "Your hostname \"$(hostname)\" does not resolve to a valid address."
+-    echo "This is a broken configuration and will cause liblo (the"
+-    echo "OSC library) to fail to function. Add the line:"
+-    echo
+-    echo "127.0.0.1 $(hostname)"
+-    echo
+-    echo "to your /etc/hosts file to fix. And consider switching to a saner distribution."
+-    echo
+-    fail "Invalid hostname!"
+-fi
++#if ! hostname_resolvable
++#then
++#    echo "Your hostname \"$(hostname)\" does not resolve to a valid address."
++#    echo "This is a broken configuration and will cause liblo (the"
++#    echo "OSC library) to fail to function. Add the line:"
++#    echo
++#    echo "127.0.0.1 $(hostname)"
++#    echo
++#    echo "to your /etc/hosts file to fix. And consider switching to a saner distribution."
++#    echo
++#    fail "Invalid hostname!"
++#fi
+diff -Nurp non-daw-20121013/timeline/makefile.inc non-daw-20121013.new/timeline/makefile.inc
+--- non-daw-20121013/timeline/makefile.inc	2012-10-13 07:44:23.000000000 +0200
++++ non-daw-20121013.new/timeline/makefile.inc	2012-10-13 09:50:37.844660915 +0200
+@@ -40,8 +40,8 @@ clean:
+ install: all
+ 	@ echo -n "Installing..."
+ 	@ install src/timeline $(prefix)/bin/non-daw
+-	@ mkdir -p $(SYSTEM_PATH)/non-daw
+-	@ mkdir -p $(PIXMAP_PATH)/non-daw
++	@ mkdir -p $(DESTDIR)$(SYSTEM_PATH)/non-daw
++	@ mkdir -p $(DESTDIR)$(PIXMAP_PATH)/non-daw
+ 	@ $(MAKE) -s -C doc install
+ 	@ install -d "$(DESTDIR)$(PIXMAP_PATH)/non-daw"
+ 	@ install -m 644 icons/hicolor/256x256/apps/non-daw.png "$(DESTDIR)$(PIXMAP_PATH)"/non-daw/icon-256x256.png
diff --git a/non-daw.spec b/non-daw.spec
new file mode 100644
index 0000000..5ee738c
--- /dev/null
+++ b/non-daw.spec
@@ -0,0 +1,80 @@
+Name:           non-daw
+Version:        1.1.0
+Release:        0.1.gitae6b78cf%{?dist}
+Summary:        A digital audio workstation for JACK
+
+Group:          Applications/Multimedia
+License:        GPLv2+
+URL:            http://%{name}.tuxfamily.org/
+Source0:        non-daw-20121013-git61addce.tar.bz2
+# script to create source tarball from git
+# sh non-snapshot.sh (rev>
+Source1:        non-snapshot.sh
+Patch0:         non-daw-makefile.patch
+Patch1:         non-daw-desktop.patch
+
+BuildRequires:  liblo-devel
+BuildRequires:  libsndfile-devel
+BuildRequires:  fltk-fluid
+BuildRequires:  fltk-devel
+BuildRequires:  libsigc++20-devel
+BuildRequires:  jack-audio-connection-kit-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  imake
+BuildRequires:  libXpm-devel
+
+%description
+Non-daw is a digital audio workstation for JACK
+
+%prep
+%setup -q -n non-daw-20121013
+%patch0 -p1
+%patch1 -p1
+sed -i -e 's|src/timeline $(prefix)/bin/non-daw|src/timeline $(DESTDIR)$(prefix)/bin/non-daw|' timeline/makefile.inc
+sed -i -e 's|@ $(CXX)|$(CXX) %optflags|' \
+  scripts/Makefile 
+
+%build
+cd nonlib
+%configure --prefix=%{_prefix} --enable-debug
+make %{?_smp_mflags} 
+cd ../FL
+%configure --prefix=%{_prefix} --enable-debug
+make %{?_smp_mflags} 
+cd ../timeline
+%configure --prefix=%{_prefix} --enable-debug
+make %{?_smp_mflags} 
+
+%install 
+cd timeline
+mkdir -p %{buildroot}%{_bindir}
+export DESTDIR=%{buildroot}
+make install DOCUMENT_PATH=%{buildroot}/%{_docdir}/
+mv %{buildroot}/%{_docdir}/%{name} %{buildroot}/%{_docdir}/%{name}-%{version}
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+%post 
+update-desktop-database -q
+touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
+
+%postun
+update-desktop-database -q
+if [ $1 -eq 0 ]; then
+  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
+  gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+fi
+
+%posttrans 
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc COPYING
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
+%{_datadir}/pixmaps/%{name}
+
+%changelog
+* Sat Oct 13 2012 Brendan Jones <brendan.jones.it at gmail.com> 1.1.0-0.1.gitae6b78cf
+- Initial build
diff --git a/non-snapshot.sh b/non-snapshot.sh
new file mode 100644
index 0000000..537996d
--- /dev/null
+++ b/non-snapshot.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# $1 - revision number to checkout.
+: ${1?"You must either provide desired revision number \"X\" to checkout: `basename $0` X
+                                or fetch the latest revision by: `basename $0` HEAD"}
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+    set +e
+    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+name=non-daw
+version=20121013
+
+pushd "$tmp" >/dev/null
+echo "Fetching git revision: $1"
+git clone git://git.tuxfamily.org/gitroot/non/daw.git $name-$version |tee $name.stdout
+ls
+pushd $name-$version
+git reset --hard $1
+rm -rf .git
+popd
+echo "Fetched git revision: $1"
+rm -f $name.stdout
+
+tar jcf "$pwd"/$name-$version-git$1.tar.bz2 $name-$version
+echo "Written: $name-$version-git$1.tar.bz2"
+popd >/dev/null
diff --git a/sources b/sources
index e69de29..040c124 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bb624e8750dfda430ed1edeec14d9e0c  non-daw-20121013-git61addce.tar.bz2


More information about the scm-commits mailing list