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