1 |
animtim |
1103032 |
%filter_from_requires /.*libalsapid.so*/d |
2 |
|
|
%filter_setup |
3 |
|
|
|
4 |
|
|
Name: ladish |
5 |
|
|
Summary: LADI Audio session handler |
6 |
|
|
Version: 2 |
7 |
|
|
Release: 15.3.gitfcb16ae%{?dist} |
8 |
|
|
License: GPLv2+ |
9 |
|
|
Group: Applications/Multimedia |
10 |
|
|
URL: http://ladish.org/ |
11 |
|
|
# see ladish-snapshot.sh to retrieve source |
12 |
|
|
Source0: %{name}-%version-gitfcb16ae.tar.bz2 |
13 |
|
|
Source1: ladish-snapshot.sh |
14 |
|
|
# clean up desktop files |
15 |
|
|
Patch0: ladish-1-desktop.patch |
16 |
|
|
# NOTE - this will be need to reviewed each version release due to |
17 |
|
|
# non numeric version number in wscript |
18 |
|
|
Patch1: handle-aarch64.patch |
19 |
|
|
|
20 |
|
|
Requires: laditools |
21 |
|
|
Requires: pygtk2 |
22 |
|
|
Requires: dbus |
23 |
|
|
BuildRequires: python2-devel |
24 |
|
|
BuildRequires: desktop-file-utils |
25 |
|
|
BuildRequires: jack-audio-connection-kit-devel |
26 |
|
|
BuildRequires: alsa-lib-devel |
27 |
|
|
BuildRequires: libuuid-devel |
28 |
|
|
BuildRequires: dbus-devel |
29 |
|
|
BuildRequires: expat-devel |
30 |
|
|
BuildRequires: gtk2-devel |
31 |
|
|
BuildRequires: dbus-glib-devel |
32 |
|
|
BuildRequires: boost-devel |
33 |
|
|
BuildRequires: flowcanvas-devel |
34 |
|
|
BuildRequires: pygtk2-devel |
35 |
|
|
BuildRequires: PyYAML |
36 |
|
|
BuildRequires: intltool |
37 |
|
|
|
38 |
|
|
%description |
39 |
|
|
Session management system for JACK applications on GNU/Linux. Its aim |
40 |
|
|
is to have many different audio programs running at once, to save their |
41 |
|
|
setup, close them down and then easily reload the setup at some other |
42 |
|
|
time. ladish doesn't deal with any kind of audio or MIDI data itself; |
43 |
|
|
it just runs programs, deals with saving/loading (arbitrary) data and |
44 |
|
|
connects JACK ports together. |
45 |
|
|
Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage) |
46 |
|
|
and the ladish_control command line app for headless operation. |
47 |
|
|
|
48 |
|
|
%package -n gladish |
49 |
|
|
Summary: GTK ladish front end |
50 |
|
|
Requires: %{name}%{_isa} = %{version}-%{release} |
51 |
|
|
|
52 |
|
|
%description -n gladish |
53 |
|
|
A suite of tools to configure and control the Jack Audio Connection Kit. |
54 |
|
|
Laditools contains laditray, a tray icon control tool for Jack D-Bus. |
55 |
|
|
This package is mandatory for installing the LADI Audio Session Handler. |
56 |
|
|
|
57 |
|
|
%prep |
58 |
|
|
%setup -q -n ladish-2 |
59 |
|
|
%patch0 -p1 |
60 |
|
|
%patch1 -p1 |
61 |
|
|
# remove bundled libs |
62 |
|
|
sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\ |
63 |
|
|
-e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript |
64 |
|
|
# gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors. |
65 |
|
|
# This can be removed if/when there is an update on the glibmm-2.4 package: |
66 |
|
|
sed -i "/add_cflag(conf, '-Werror')/d" wscript |
67 |
|
|
# move preloaded lib out of LD path |
68 |
|
|
sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c |
69 |
|
|
|
70 |
|
|
%build |
71 |
|
|
./waf configure --prefix=%{_prefix} -v |
72 |
|
|
LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -fno-tree-pta" ./waf -v |
73 |
|
|
|
74 |
|
|
%install |
75 |
|
|
./waf install --destdir=%{buildroot} |
76 |
|
|
# move lib out of LDPATH |
77 |
|
|
mkdir %{buildroot}/%{_libdir}/%{name} |
78 |
|
|
mv %{buildroot}%{_libdir}/libalsapid.so %{buildroot}/%{_libdir}/%{name}/ |
79 |
|
|
|
80 |
|
|
%find_lang %{name} |
81 |
|
|
|
82 |
|
|
%check |
83 |
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/gladish.desktop || : |
84 |
|
|
|
85 |
|
|
%post -n gladish |
86 |
|
|
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : |
87 |
|
|
|
88 |
|
|
%postun -n gladish |
89 |
|
|
if [ $1 -eq 0 ]; then |
90 |
|
|
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : |
91 |
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : |
92 |
|
|
fi |
93 |
|
|
|
94 |
|
|
%posttrans -n gladish |
95 |
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
96 |
|
|
|
97 |
|
|
%files -f %{name}.lang |
98 |
|
|
%doc README AUTHORS COPYING NEWS |
99 |
|
|
%{_bindir}/ladishd |
100 |
|
|
%{_bindir}/jmcore |
101 |
|
|
%{_bindir}/ladiconfd |
102 |
|
|
%{_bindir}/ladish_control |
103 |
|
|
%{_libdir}/%{name} |
104 |
|
|
%{_datadir}/%{name} |
105 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.service |
106 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.conf.service |
107 |
|
|
%{_datadir}/dbus-1/services/org.%{name}.jmcore.service |
108 |
|
|
|
109 |
|
|
%files -n gladish |
110 |
|
|
%{_datadir}/applications/gladish.desktop |
111 |
|
|
%{_bindir}/gladish |
112 |
|
|
%{_datadir}/icons/hicolor/*/apps/gladish.png |
113 |
|
|
|