1 |
animtim |
1103141 |
%global _privatelibs libalsapid[.]so.* |
2 |
|
|
%global __provides_exclude ^(%{_privatelibs})$ |
3 |
|
|
%global __requires_exclude ^(%{_privatelibs})$ |
4 |
animtim |
1103032 |
|
5 |
shlomif |
1589425 |
%define rel 4 |
6 |
wally |
1244353 |
|
7 |
animtim |
1103032 |
Name: ladish |
8 |
|
|
Summary: LADI Audio session handler |
9 |
|
|
Version: 2 |
10 |
wally |
1244353 |
Release: %mkrel -c git20140911 %{rel} |
11 |
animtim |
1103032 |
License: GPLv2+ |
12 |
animtim |
1103040 |
Group: Sound/Utilities |
13 |
animtim |
1103032 |
URL: http://ladish.org/ |
14 |
animtim |
1103034 |
#from https://github.com/LADI/ladish commit 5fe205f |
15 |
|
|
Source0: %{name}-%version-git5fe205f.tar.xz |
16 |
animtim |
1103032 |
# clean up desktop files |
17 |
|
|
Patch0: ladish-1-desktop.patch |
18 |
wally |
1244353 |
Patch1: handle-aarch64.patch |
19 |
shlomif |
1589425 |
# Patches from https://launchpad.net/~kxstudio-debian/+archive/ubuntu/apps/+packages |
20 |
|
|
Patch2: 3001-fix-dbus-method.patch |
21 |
|
|
Patch3: 3002-fix-build1.patch |
22 |
|
|
Patch4: 3002-fix-build2.patch |
23 |
|
|
Patch5: 4001-cadence-jacksettings.patch |
24 |
|
|
Patch6: ladish_control_py3.patch |
25 |
|
|
Patch7: ladish_control_py3_shebang.patch |
26 |
animtim |
1103032 |
BuildRequires: desktop-file-utils |
27 |
|
|
BuildRequires: boost-devel |
28 |
animtim |
1103034 |
BuildRequires: intltool |
29 |
ovitters |
1144745 |
BuildRequires: pkgconfig(python2) |
30 |
animtim |
1103032 |
BuildRequires: PyYAML |
31 |
animtim |
1103034 |
BuildRequires: pkgconfig(alsa) |
32 |
|
|
BuildRequires: pkgconfig(dbus-1) |
33 |
|
|
BuildRequires: pkgconfig(dbus-glib-1) |
34 |
|
|
BuildRequires: pkgconfig(expat) |
35 |
|
|
BuildRequires: pkgconfig(gtk+-2.0) |
36 |
animtim |
1103141 |
BuildRequires: pkgconfig(gtkmm-2.4) |
37 |
animtim |
1103034 |
BuildRequires: pkgconfig(jack) |
38 |
animtim |
1103153 |
BuildRequires: pkgconfig(libgnomecanvasmm-2.6) |
39 |
animtim |
1103034 |
BuildRequires: pkgconfig(pygtk-2.0) |
40 |
|
|
BuildRequires: pkgconfig(uuid) |
41 |
wally |
1244353 |
Requires: pygtk2.0 |
42 |
|
|
Requires: dbus |
43 |
animtim |
1103032 |
|
44 |
|
|
%description |
45 |
|
|
Session management system for JACK applications on GNU/Linux. Its aim |
46 |
|
|
is to have many different audio programs running at once, to save their |
47 |
|
|
setup, close them down and then easily reload the setup at some other |
48 |
|
|
time. ladish doesn't deal with any kind of audio or MIDI data itself; |
49 |
|
|
it just runs programs, deals with saving/loading (arbitrary) data and |
50 |
|
|
connects JACK ports together. |
51 |
|
|
Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage) |
52 |
|
|
and the ladish_control command line app for headless operation. |
53 |
|
|
|
54 |
animtim |
1103034 |
%files -f %{name}.lang |
55 |
|
|
%doc README AUTHORS COPYING NEWS |
56 |
|
|
%{_bindir}/ladishd |
57 |
|
|
%{_bindir}/jmcore |
58 |
|
|
%{_bindir}/ladiconfd |
59 |
|
|
%{_bindir}/ladish_control |
60 |
|
|
%{_libdir}/%{name}/ |
61 |
|
|
%{_datadir}/%{name}/ |
62 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.service |
63 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.conf.service |
64 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.jmcore.service |
65 |
|
|
|
66 |
|
|
#-------------------------------------------------------------------- |
67 |
|
|
|
68 |
animtim |
1103032 |
%package -n gladish |
69 |
|
|
Summary: GTK ladish front end |
70 |
animtim |
1103141 |
Requires: %{name} = %{version}-%{release} |
71 |
animtim |
1103032 |
|
72 |
|
|
%description -n gladish |
73 |
animtim |
1103040 |
gladish is a GUI frontend for LADISH, |
74 |
|
|
a session management system for JACK applications. |
75 |
animtim |
1103032 |
|
76 |
animtim |
1103034 |
%files -n gladish |
77 |
|
|
%{_datadir}/applications/gladish.desktop |
78 |
|
|
%{_bindir}/gladish |
79 |
|
|
%{_datadir}/icons/hicolor/*/apps/gladish.png |
80 |
|
|
|
81 |
|
|
#-------------------------------------------------------------------- |
82 |
|
|
|
83 |
animtim |
1103032 |
%prep |
84 |
animtim |
1103034 |
%setup -q |
85 |
|
|
%autopatch -p1 |
86 |
animtim |
1103032 |
# remove bundled libs |
87 |
|
|
sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\ |
88 |
|
|
-e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript |
89 |
|
|
# gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors. |
90 |
|
|
# This can be removed if/when there is an update on the glibmm-2.4 package: |
91 |
|
|
sed -i "/add_cflag(conf, '-Werror')/d" wscript |
92 |
|
|
# move preloaded lib out of LD path |
93 |
|
|
sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c |
94 |
|
|
|
95 |
|
|
%build |
96 |
animtim |
1103034 |
export CXXFLAGS="%{optflags} -std=c++0x" |
97 |
animtim |
1103032 |
./waf configure --prefix=%{_prefix} -v |
98 |
animtim |
1103034 |
LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v |
99 |
animtim |
1103032 |
|
100 |
|
|
%install |
101 |
|
|
./waf install --destdir=%{buildroot} |
102 |
|
|
# move lib out of LDPATH |
103 |
|
|
mkdir %{buildroot}/%{_libdir}/%{name} |
104 |
|
|
mv %{buildroot}%{_libdir}/libalsapid.so %{buildroot}/%{_libdir}/%{name}/ |
105 |
|
|
|
106 |
|
|
%find_lang %{name} |