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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1103034 - (hide annotations) (download)
Thu May 18 13:28:31 2017 UTC (8 years, 1 month ago) by animtim
File size: 3474 byte(s)
update snapshot and clean spec
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 animtim 1103034 Release: %mkrel -c git20170518 1
8 animtim 1103032 License: GPLv2+
9     Group: Applications/Multimedia
10     URL: http://ladish.org/
11 animtim 1103034 #from https://github.com/LADI/ladish commit 5fe205f
12     Source0: %{name}-%version-git5fe205f.tar.xz
13 animtim 1103032 # 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 animtim 1103034 Requires: pygtk2.0
20 animtim 1103032 Requires: dbus
21     BuildRequires: desktop-file-utils
22     BuildRequires: boost-devel
23 animtim 1103034 BuildRequires: intltool
24     BuildRequires: python2-devel
25 animtim 1103032 BuildRequires: PyYAML
26 animtim 1103034 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 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     Requires: %{name}%{_isa} = %{version}-%{release}
62    
63     %description -n gladish
64     A suite of tools to configure and control the Jack Audio Connection Kit.
65     Laditools contains laditray, a tray icon control tool for Jack D-Bus.
66     This package is mandatory for installing the LADI Audio Session Handler.
67    
68 animtim 1103034 %files -n gladish
69     %{_datadir}/applications/gladish.desktop
70     %{_bindir}/gladish
71     %{_datadir}/icons/hicolor/*/apps/gladish.png
72    
73     #--------------------------------------------------------------------
74    
75 animtim 1103032 %prep
76 animtim 1103034 %setup -q
77     %autopatch -p1
78 animtim 1103032 # remove bundled libs
79     sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\
80     -e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript
81     # gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors.
82     # This can be removed if/when there is an update on the glibmm-2.4 package:
83     sed -i "/add_cflag(conf, '-Werror')/d" wscript
84     # move preloaded lib out of LD path
85     sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c
86    
87     %build
88 animtim 1103034 export CXXFLAGS="%{optflags} -std=c++0x"
89 animtim 1103032 ./waf configure --prefix=%{_prefix} -v
90 animtim 1103034 LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v
91 animtim 1103032
92     %install
93     ./waf install --destdir=%{buildroot}
94     # move lib out of LDPATH
95     mkdir %{buildroot}/%{_libdir}/%{name}
96     mv %{buildroot}%{_libdir}/libalsapid.so %{buildroot}/%{_libdir}/%{name}/
97    
98     %find_lang %{name}

  ViewVC Help
Powered by ViewVC 1.1.30