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

  ViewVC Help
Powered by ViewVC 1.1.30