[packages/Cadence] new package

jajcus jajcus at pld-linux.org
Tue Mar 27 15:27:00 CEST 2018


commit 2668eebd11fe2595929cad6239781d1eb9c95f08
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue Mar 27 15:26:44 2018 +0200

    new package

 Cadence.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 libdir.patch |  37 +++++++++++++++++++++
 2 files changed, 143 insertions(+)
---
diff --git a/Cadence.spec b/Cadence.spec
new file mode 100644
index 0000000..96fab9a
--- /dev/null
+++ b/Cadence.spec
@@ -0,0 +1,106 @@
+Summary:	Set of tools useful for audio production
+Name:		Cadence
+Version:	0.8.1
+Release:	1
+License:	GPL v2+
+Group:		Applications
+Source0:	https://downloads.sourceforge.net/kxstudio/%{name}-%{version}-src.tar.bz2
+# Source0-md5:	435ba32b2afe84aa994e73079ac2bb63
+Patch0:		libdir.patch
+URL:		http://kxstudio.linuxaudio.org/Applications:Cadence
+BuildRequires:	jack-audio-connection-kit-devel
+BuildRequires:	python-PyQt4-devel-tools
+BuildRequires:	python3-PyQt4
+BuildRequires:	python3-PyQt4-uic
+BuildRequires:	qt4-build
+BuildRequires:	rpm-pythonprov
+Requires:	python3-PyQt4
+Requires:	python3-dbus
+Suggests:	a2jmidid
+Suggests:	jack-capture
+Suggests:	pulseaudio-jack
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Cadence is a set of tools useful for audio production.
+
+- Cadence - The main app. It performs system checks, manages JACK,
+  calls other tools and make system tweaks.
+
+- Cadence-JackMeter - Digital peak meter for JACK.
+
+- Cadence-JackSettings - Simple and easy-to-use configure dialog for
+  jackdbus.
+
+- Cadence-Logs - Small tool that shows JACK, A2J, LASH and LADISH logs
+  in a multi-tab window.
+
+- Cadence-Render - Tool to record (or 'render') a JACK project using
+  jack-capture, controlled by JACK Transport.
+
+- Cadence-XY Controller - Simple XY widget that sends and receives
+  data from Jack MIDI.
+
+- Catarina - A Patchbay test app.
+
+- Catia - JACK Patchbay, with some neat features like A2J bridge
+  support and JACK Transport.
+
+- Claudia - LADISH frontend; just like Catia, but focused at session
+  management through LADISH.
+
+- Claudia-Launcher - A multimedia application launcher with LADISH
+  support.
+
+%prep
+%setup -q
+
+%patch0 -p1
+sed -i -e 's@^LIBDIR = .*@LIBDIR = "%{_libdir}"@' src/shared_cadence.py
+
+%build
+%{__make} \
+	PYUIC=pyuic4-3 \
+	PREFIX="%{_prefix}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	PREFIX=%{_prefix} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__sed} -i -e '1s,^#!.*python3\?,#!%{__python3},' \
+	$RPM_BUILD_ROOT/%{_bindir}/* \
+	$RPM_BUILD_ROOT/%{_datadir}/cadence/src/*
+
+%py3_comp $RPM_BUILD_ROOT%{_datadir}/cadence
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md TODO
+%attr(755,root,root) %{_bindir}/cadence
+%attr(755,root,root) %{_bindir}/cadence-aloop-daemon
+%attr(755,root,root) %{_bindir}/cadence-jackmeter
+%attr(755,root,root) %{_bindir}/cadence-jacksettings
+%attr(755,root,root) %{_bindir}/cadence-logs
+%attr(755,root,root) %{_bindir}/cadence-pulse2jack
+%attr(755,root,root) %{_bindir}/cadence-render
+%attr(755,root,root) %{_bindir}/cadence-session-start
+%attr(755,root,root) %{_bindir}/cadence-xycontroller
+%attr(755,root,root) %{_bindir}/catarina
+%attr(755,root,root) %{_bindir}/catia
+%attr(755,root,root) %{_bindir}/claudia
+%attr(755,root,root) %{_bindir}/claudia-launcher
+%{_datadir}/cadence
+%{_iconsdir}/hicolor/*/apps/*
+%{_desktopdir}/cadence.desktop
+%{_desktopdir}/cadence-gnome-settings.desktop
+%{_desktopdir}/catarina.desktop
+%{_desktopdir}/catia.desktop
+%{_desktopdir}/claudia.desktop
+%{_desktopdir}/claudia-launcher.desktop
+%attr(755,root,root) /etc/X11/xinit/xinitrc.d/*
diff --git a/libdir.patch b/libdir.patch
new file mode 100644
index 0000000..0f826ac
--- /dev/null
+++ b/libdir.patch
@@ -0,0 +1,37 @@
+diff -dur Cadence-0.8.1.orig/src/shared_cadence.py Cadence-0.8.1/src/shared_cadence.py
+--- Cadence-0.8.1.orig/src/shared_cadence.py	2013-07-16 06:36:57.000000000 +0200
++++ Cadence-0.8.1/src/shared_cadence.py	2018-03-27 15:19:12.000000000 +0200
+@@ -30,27 +30,29 @@
+ # ------------------------------------------------------------------------------------------------------------
+ # Default Plugin PATHs
+ 
++LIBDIR = "/usr/lib"
++
+ DEFAULT_LADSPA_PATH = [
+     os.path.join(HOME, ".ladspa"),
+-    os.path.join("/", "usr", "lib", "ladspa"),
++    os.path.join(LIBDIR, "ladspa"),
+     os.path.join("/", "usr", "local", "lib", "ladspa")
+ ]
+ 
+ DEFAULT_DSSI_PATH = [
+     os.path.join(HOME, ".dssi"),
+-    os.path.join("/", "usr", "lib", "dssi"),
++    os.path.join(LIBDIR, "dssi"),
+     os.path.join("/", "usr", "local", "lib", "dssi")
+ ]
+ 
+ DEFAULT_LV2_PATH = [
+     os.path.join(HOME, ".lv2"),
+-    os.path.join("/", "usr", "lib", "lv2"),
++    os.path.join(LIBDIR, "lv2"),
+     os.path.join("/", "usr", "local", "lib", "lv2")
+ ]
+ 
+ DEFAULT_VST_PATH = [
+     os.path.join(HOME, ".vst"),
+-    os.path.join("/", "usr", "lib", "vst"),
++    os.path.join(LIBDIR, "vst"),
+     os.path.join("/", "usr", "local", "lib", "vst")
+ ]
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Cadence.git/commitdiff/2668eebd11fe2595929cad6239781d1eb9c95f08



More information about the pld-cvs-commit mailing list