/[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 1484359 - (show annotations) (download)
Tue Jan 28 10:39:13 2020 UTC (5 years, 5 months ago) by wally
Original Path: obsolete/ladish/current/SPECS/ladish.spec
File size: 3412 byte(s)
SILENT:	python2	pkg

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

  ViewVC Help
Powered by ViewVC 1.1.30