1 |
animtim |
1103141 |
%global _privatelibs libalsapid[.]so.* |
2 |
|
|
%global __provides_exclude ^(%{_privatelibs})$ |
3 |
|
|
%global __requires_exclude ^(%{_privatelibs})$ |
4 |
animtim |
1103032 |
|
5 |
|
|
Name: ladish |
6 |
|
|
Summary: LADI Audio session handler |
7 |
|
|
Version: 2 |
8 |
animtim |
1103141 |
Release: %mkrel -c git20140911 1 |
9 |
animtim |
1103032 |
License: GPLv2+ |
10 |
animtim |
1103040 |
Group: Sound/Utilities |
11 |
animtim |
1103032 |
URL: http://ladish.org/ |
12 |
animtim |
1103034 |
#from https://github.com/LADI/ladish commit 5fe205f |
13 |
|
|
Source0: %{name}-%version-git5fe205f.tar.xz |
14 |
animtim |
1103032 |
# clean up desktop files |
15 |
|
|
Patch0: ladish-1-desktop.patch |
16 |
|
|
|
17 |
animtim |
1103034 |
Requires: pygtk2.0 |
18 |
animtim |
1103032 |
Requires: dbus |
19 |
|
|
BuildRequires: desktop-file-utils |
20 |
|
|
BuildRequires: boost-devel |
21 |
animtim |
1103034 |
BuildRequires: intltool |
22 |
ovitters |
1144745 |
BuildRequires: pkgconfig(python2) |
23 |
animtim |
1103032 |
BuildRequires: PyYAML |
24 |
animtim |
1103034 |
BuildRequires: pkgconfig(alsa) |
25 |
|
|
BuildRequires: pkgconfig(dbus-1) |
26 |
|
|
BuildRequires: pkgconfig(dbus-glib-1) |
27 |
|
|
BuildRequires: pkgconfig(expat) |
28 |
|
|
BuildRequires: pkgconfig(gtk+-2.0) |
29 |
animtim |
1103141 |
BuildRequires: pkgconfig(gtkmm-2.4) |
30 |
animtim |
1103034 |
BuildRequires: pkgconfig(jack) |
31 |
animtim |
1103153 |
BuildRequires: pkgconfig(libgnomecanvasmm-2.6) |
32 |
animtim |
1103034 |
BuildRequires: pkgconfig(pygtk-2.0) |
33 |
|
|
BuildRequires: pkgconfig(uuid) |
34 |
animtim |
1103032 |
|
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 |
animtim |
1103034 |
%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 |
animtim |
1103032 |
%package -n gladish |
60 |
|
|
Summary: GTK ladish front end |
61 |
animtim |
1103141 |
Requires: %{name} = %{version}-%{release} |
62 |
animtim |
1103032 |
|
63 |
|
|
%description -n gladish |
64 |
animtim |
1103040 |
gladish is a GUI frontend for LADISH, |
65 |
|
|
a session management system for JACK applications. |
66 |
animtim |
1103032 |
|
67 |
animtim |
1103034 |
%files -n gladish |
68 |
|
|
%{_datadir}/applications/gladish.desktop |
69 |
|
|
%{_bindir}/gladish |
70 |
|
|
%{_datadir}/icons/hicolor/*/apps/gladish.png |
71 |
|
|
|
72 |
|
|
#-------------------------------------------------------------------- |
73 |
|
|
|
74 |
animtim |
1103032 |
%prep |
75 |
animtim |
1103034 |
%setup -q |
76 |
|
|
%autopatch -p1 |
77 |
animtim |
1103032 |
# 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 |
animtim |
1103034 |
export CXXFLAGS="%{optflags} -std=c++0x" |
88 |
animtim |
1103032 |
./waf configure --prefix=%{_prefix} -v |
89 |
animtim |
1103034 |
LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v |
90 |
animtim |
1103032 |
|
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} |