/[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 1589425 - (show annotations) (download)
Mon Jun 1 08:08:20 2020 UTC (5 years, 1 month ago) by shlomif
File size: 3748 byte(s)
adding patches
1 %global _privatelibs libalsapid[.]so.*
2 %global __provides_exclude ^(%{_privatelibs})$
3 %global __requires_exclude ^(%{_privatelibs})$
4
5 %define rel 4
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 # Patches from https://launchpad.net/~kxstudio-debian/+archive/ubuntu/apps/+packages
20 Patch2: 3001-fix-dbus-method.patch
21 Patch3: 3002-fix-build1.patch
22 Patch4: 3002-fix-build2.patch
23 Patch5: 4001-cadence-jacksettings.patch
24 Patch6: ladish_control_py3.patch
25 Patch7: ladish_control_py3_shebang.patch
26 BuildRequires: desktop-file-utils
27 BuildRequires: boost-devel
28 BuildRequires: intltool
29 BuildRequires: pkgconfig(python2)
30 BuildRequires: PyYAML
31 BuildRequires: pkgconfig(alsa)
32 BuildRequires: pkgconfig(dbus-1)
33 BuildRequires: pkgconfig(dbus-glib-1)
34 BuildRequires: pkgconfig(expat)
35 BuildRequires: pkgconfig(gtk+-2.0)
36 BuildRequires: pkgconfig(gtkmm-2.4)
37 BuildRequires: pkgconfig(jack)
38 BuildRequires: pkgconfig(libgnomecanvasmm-2.6)
39 BuildRequires: pkgconfig(pygtk-2.0)
40 BuildRequires: pkgconfig(uuid)
41 Requires: pygtk2.0
42 Requires: dbus
43
44 %description
45 Session management system for JACK applications on GNU/Linux. Its aim
46 is to have many different audio programs running at once, to save their
47 setup, close them down and then easily reload the setup at some other
48 time. ladish doesn't deal with any kind of audio or MIDI data itself;
49 it just runs programs, deals with saving/loading (arbitrary) data and
50 connects JACK ports together.
51 Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage)
52 and the ladish_control command line app for headless operation.
53
54 %files -f %{name}.lang
55 %doc README AUTHORS COPYING NEWS
56 %{_bindir}/ladishd
57 %{_bindir}/jmcore
58 %{_bindir}/ladiconfd
59 %{_bindir}/ladish_control
60 %{_libdir}/%{name}/
61 %{_datadir}/%{name}/
62 %{_datadir}/dbus-1/services/org.%{name}.service
63 %{_datadir}/dbus-1/services/org.%{name}.conf.service
64 %{_datadir}/dbus-1/services/org.%{name}.jmcore.service
65
66 #--------------------------------------------------------------------
67
68 %package -n gladish
69 Summary: GTK ladish front end
70 Requires: %{name} = %{version}-%{release}
71
72 %description -n gladish
73 gladish is a GUI frontend for LADISH,
74 a session management system for JACK applications.
75
76 %files -n gladish
77 %{_datadir}/applications/gladish.desktop
78 %{_bindir}/gladish
79 %{_datadir}/icons/hicolor/*/apps/gladish.png
80
81 #--------------------------------------------------------------------
82
83 %prep
84 %setup -q
85 %autopatch -p1
86 # remove bundled libs
87 sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\
88 -e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript
89 # gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors.
90 # This can be removed if/when there is an update on the glibmm-2.4 package:
91 sed -i "/add_cflag(conf, '-Werror')/d" wscript
92 # move preloaded lib out of LD path
93 sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c
94
95 %build
96 export CXXFLAGS="%{optflags} -std=c++0x"
97 ./waf configure --prefix=%{_prefix} -v
98 LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v
99
100 %install
101 ./waf install --destdir=%{buildroot}
102 # move lib out of LDPATH
103 mkdir %{buildroot}/%{_libdir}/%{name}
104 mv %{buildroot}%{_libdir}/libalsapid.so %{buildroot}/%{_libdir}/%{name}/
105
106 %find_lang %{name}

  ViewVC Help
Powered by ViewVC 1.1.30