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

  ViewVC Help
Powered by ViewVC 1.1.30