%filter_from_requires /.*libalsapid.so*/d %filter_setup Name: ladish Summary: LADI Audio session handler Version: 2 Release: %mkrel -c git20170518 1 License: GPLv2+ Group: Applications/Multimedia URL: http://ladish.org/ #from https://github.com/LADI/ladish commit 5fe205f Source0: %{name}-%version-git5fe205f.tar.xz # clean up desktop files Patch0: ladish-1-desktop.patch # NOTE - this will be need to reviewed each version release due to # non numeric version number in wscript Patch1: handle-aarch64.patch Requires: pygtk2.0 Requires: dbus BuildRequires: desktop-file-utils BuildRequires: boost-devel BuildRequires: intltool BuildRequires: python2-devel BuildRequires: PyYAML BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(pygtk-2.0) BuildRequires: pkgconfig(uuid) %description Session management system for JACK applications on GNU/Linux. Its aim is to have many different audio programs running at once, to save their setup, close them down and then easily reload the setup at some other time. ladish doesn't deal with any kind of audio or MIDI data itself; it just runs programs, deals with saving/loading (arbitrary) data and connects JACK ports together. Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage) and the ladish_control command line app for headless operation. %files -f %{name}.lang %doc README AUTHORS COPYING NEWS %{_bindir}/ladishd %{_bindir}/jmcore %{_bindir}/ladiconfd %{_bindir}/ladish_control %{_libdir}/%{name}/ %{_datadir}/%{name}/ %{_datadir}/dbus-1/services/org.%{name}.service %{_datadir}/dbus-1/services/org.%{name}.conf.service %{_datadir}/dbus-1/services/org.%{name}.jmcore.service #-------------------------------------------------------------------- %package -n gladish Summary: GTK ladish front end Requires: %{name}%{_isa} = %{version}-%{release} %description -n gladish A suite of tools to configure and control the Jack Audio Connection Kit. Laditools contains laditray, a tray icon control tool for Jack D-Bus. This package is mandatory for installing the LADI Audio Session Handler. %files -n gladish %{_datadir}/applications/gladish.desktop %{_bindir}/gladish %{_datadir}/icons/hicolor/*/apps/gladish.png #-------------------------------------------------------------------- %prep %setup -q %autopatch -p1 # remove bundled libs sed -i -e "s|'-fvisibility=hidden')|\['-fvisibility=hidden'\]+'%{optflags} -fno-tree-pta'.split(' '))|"\ -e "s|\['PREFIX'\]), 'lib')|\['PREFIX'\]), '%{_libdir}')|" wscript # gcc7 throws warnings on glibmm-2.4 headers. The -Werror turns these into errors. # This can be removed if/when there is an update on the glibmm-2.4 package: sed -i "/add_cflag(conf, '-Werror')/d" wscript # move preloaded lib out of LD path sed -i -e "s|libalsapid.so|%{_libdir}\/ladish\/libalsapid.so|" daemon/loader.c %build export CXXFLAGS="%{optflags} -std=c++0x" ./waf configure --prefix=%{_prefix} -v LIBDIR=%{_libdir} CFLAGS="%{optflags} -fno-tree-pta" CXXFLAGS="%{optflags} -std=c++0x -fno-tree-pta" ./waf -v %install ./waf install --destdir=%{buildroot} # move lib out of LDPATH mkdir %{buildroot}/%{_libdir}/%{name} mv %{buildroot}%{_libdir}/libalsapid.so %{buildroot}/%{_libdir}/%{name}/ %find_lang %{name}