/[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 1103141 - (hide annotations) (download)
Thu May 18 17:41:28 2017 UTC (8 years, 2 months ago) by animtim
File size: 3302 byte(s)
SILENT: update filter macro and cleanup
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     BuildRequires: python2-devel
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     BuildRequires: pkgconfig(pygtk-2.0)
32     BuildRequires: pkgconfig(uuid)
33 animtim 1103032
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 animtim 1103034 %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 animtim 1103032 %package -n gladish
59     Summary: GTK ladish front end
60 animtim 1103141 Requires: %{name} = %{version}-%{release}
61 animtim 1103032
62     %description -n gladish
63 animtim 1103040 gladish is a GUI frontend for LADISH,
64     a session management system for JACK applications.
65 animtim 1103032
66 animtim 1103034 %files -n gladish
67     %{_datadir}/applications/gladish.desktop
68     %{_bindir}/gladish
69     %{_datadir}/icons/hicolor/*/apps/gladish.png
70    
71     #--------------------------------------------------------------------
72    
73 animtim 1103032 %prep
74 animtim 1103034 %setup -q
75     %autopatch -p1
76 animtim 1103032 # 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 animtim 1103034 export CXXFLAGS="%{optflags} -std=c++0x"
87 animtim 1103032 ./waf configure --prefix=%{_prefix} -v
88 animtim 1103034 LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v
89 animtim 1103032
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