[ambdec] Initial import of SRPM
Brendan Jones
bsjones at fedoraproject.org
Wed May 16 13:08:52 UTC 2012
commit ab9d038df656a27675e2502488749f2d521dc91b
Author: Brendan Jones <brendan.jones.it at gmail.com>
Date: Wed May 16 15:08:45 2012 +0200
Initial import of SRPM
.gitignore | 2 +
ambdec.conf | 1 +
ambdec.desktop | 9 +++++
ambdec.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +
5 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8c0d378 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/ambdec-0.5.1.tar.bz2
+/ambdec-manual.pdf
diff --git a/ambdec.conf b/ambdec.conf
new file mode 100644
index 0000000..b5e9714
--- /dev/null
+++ b/ambdec.conf
@@ -0,0 +1 @@
+Ambdec.presets: /usr/share/ambdec
diff --git a/ambdec.desktop b/ambdec.desktop
new file mode 100644
index 0000000..2a0cf74
--- /dev/null
+++ b/ambdec.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=AmbDec
+Comment=Ambisonics player
+Icon=
+Type=Application
+Categories=X-Jack;X-Audio_Tools;X-Players;Player
+Exec=ambdec
+Terminal=false
+Encoding=UTF-8
diff --git a/ambdec.spec b/ambdec.spec
new file mode 100644
index 0000000..84c522a
--- /dev/null
+++ b/ambdec.spec
@@ -0,0 +1,94 @@
+
+Summary: Ambiosonics decoder for ALSA/JACK
+Name: ambdec
+Version: 0.5.1
+Release: 2%{?dist}
+License: GPLv2+
+Group: Applications/Multimedia
+URL: http://kokkinizita.linuxaudio.org/
+Source0: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2
+Source1: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-manual.pdf
+Source2: %{name}.desktop
+Source3: %{name}.conf
+
+Requires: hicolor-icon-theme
+BuildRequires: desktop-file-utils
+BuildRequires: libpng-devel
+BuildRequires: clthreads-devel
+BuildRequires: clxclient-devel
+BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libX11-devel
+BuildRequires: libXft-devel
+
+%description
+%{name} is an Ambisonic decoder for first and second order. Main features:
+ * 1st, 2nd and 3rd order 2-D or 3-D decoding.
+ * Up to 36 speakers (could be extended).
+ * Optional dual frequency band decoding.
+ * Optional speaker delay and gain compensation.
+ * Optional Near-Field effect compensation.
+ * Built-in test and Mute/Solo for each speaker.
+ * Unlimited number of presets.
+ * Jack client with graphical user interface.
+
+%prep
+%setup -q
+cp %{SOURCE1} %{name}-manual.pdf
+# use Fedora build flags
+sed -e 's|-march=native|%{optflags}|' \
+ -e 's|-O2 -ffast-math||' -i source/Makefile
+
+%build
+pushd source
+make PREFIX=%{_prefix} LDFLAGS="-lpthread " %{?_smp_mflags}
+
+%install
+pushd source
+make DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_lib} install
+popd
+
+# install the presets
+mkdir -p %{buildroot}%{_datadir}/%{name}
+pushd presets
+tar cf - * | (cd %{buildroot}%{_datadir}/%{name}/; tar xpf -)
+popd
+
+# and point to them from the configuration file
+mkdir -p %{buildroot}%{_sysconfdir}
+install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}.conf
+# .desktop file
+
+mkdir -p %{buildroot}%{_datadir}/applications
+desktop-file-install \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{SOURCE2}
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%files
+%doc %{name}-manual.pdf README COPYING AUTHORS
+%{_bindir}/%{name}
+%{_bindir}/%{name}_cli
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}.conf
+
+%changelog
+* Fri Nov 11 2011 Brendan Jones <brendan.jones.it at gmail.com> - 0.5.1-2
+- Applied Fedora packaging guyidelines to spec.
+
+* Wed Oct 26 2011 Brendan Jones <brendan.jones.it at gmail.com> - 0.5.1-1
+- Copied from Planet CCRMA spec
+
diff --git a/sources b/sources
index e69de29..80acc7e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+62a6e0f172d887a20ebd566f9ccb6205 ambdec-0.5.1.tar.bz2
+78e82e9a85265ef57a63aa9287e66e34 ambdec-manual.pdf
More information about the scm-commits
mailing list