/[packages]/cauldron/ladish/current/SPECS/ladish.spec
ViewVC logotype

Contents of /cauldron/ladish/current/SPECS/ladish.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30