# Status: active # Tag: Rack, Jack # Type: Standalone # Category: Audio, Effect %global commit0 f14a230bf48b42035406d2b2dca038efa4d2abca %global gittag0 master %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) # # spec file for package mod-host # # Copyright (c) 2017 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mod-host Version: 0.10.6.%{shortcommit0} Release: 14%{?dist} License: GPL-3.0-or-later Summary: LV2 host for Jack controllable via socket or command line URL: https://github.com/moddevices/mod-host ExclusiveArch: x86_64 aarch64 Vendor: Audinux Distribution: Audinux Source0: https://github.com/moddevices/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}.user.service Source3: %{name}.sysusers # https://github.com/mod-audio/mod-host/pull/100 Patch0: mod-host-100.patch # https://github.com/mod-audio/mod-host/pull/101 Patch1: mod-host-101.patch # https://github.com/mod-audio/mod-host/pull/98 - fix a heap overread on an empty path property Patch2: mod-host-98.patch # https://github.com/mod-audio/mod-host/pull/81 - allow runs of spaces between protocol words Patch3: mod-host-81.patch # follow-up to https://github.com/mod-audio/mod-host/pull/81 - no leading space on the next word Patch4: mod-host-81b.patch # https://github.com/mod-audio/mod-host/pull/82 - add the missing -t short option Patch5: mod-host-82.patch # https://github.com/mod-audio/mod-host/pull/104 Patch6: mod-host-104.patch # https://github.com/mod-audio/mod-host/pull/105 Patch7: mod-host-105.patch # https://github.com/mod-audio/mod-host/pull/106 Patch8: mod-host-106.patch # https://github.com/mod-audio/mod-host/pull/107 Patch9: mod-host-107.patch # https://github.com/mod-audio/mod-host/pull/108 Patch10: mod-host-108.patch # https://github.com/mod-audio/mod-host/pull/109 Patch11: mod-host-109.patch # https://github.com/mod-audio/mod-host/pull/112 - do not read before an empty command when trimming spaces Patch12: mod-host-112.patch # https://github.com/mod-audio/mod-host/pull/113 - split socket input into NUL-terminated commands Patch13: mod-host-113.patch # https://github.com/mod-audio/mod-host/pull/116 - room for 128 commands, and report a command that does not fit Patch14: mod-host-116.patch # https://github.com/linuxnow/mod-host/tree/hardening (upstream PR to come) - listen on 127.0.0.1 unless -b says # otherwise, refuse a second daemon on a busy port, keep a plugin's state path inside its instance's directory Patch15: mod-host-hardening.patch # https://github.com/linuxnow/mod-host/tree/version-from-make (upstream PR to come) - make VERSION= sets what -V prints Patch16: mod-host-version-from-make.patch BuildRequires: gcc BuildRequires: make BuildRequires: python3 BuildRequires: readline-devel BuildRequires: fftw-devel BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(lv2) BuildRequires: pkgconfig(lilv-0) BuildRequires: systemd-rpm-macros %{?systemd_requires} Requires: lilv Requires: %{name}-protocol%{?_isa} = %{version}-%{release} %description mod-host is an LV2 host for JACK, controllable via socket or command line Currently the host supports the following LV2 features: * lv2core * atom * event * buf-size * midi * options * uri-map * urid * worker * presets mod-host is part of the MOD project (https://mod.audio/). %package protocol Summary: mod-host socket protocol library %description protocol libmod-host-protocol, the socket server, line protocol and command dispatch of mod-host, shared by mod-host and other hosts. %package protocol-devel Summary: Headers and pkg-config file for the mod-host socket protocol library Requires: %{name}-protocol%{?_isa} = %{version}-%{release} %description protocol-devel Headers, pkg-config file and backend scenarios for libmod-host-protocol, the socket server, line protocol and command dispatch of mod-host, for hosts that answer mod-host's protocol with their own plugin backend. %prep %autosetup -p1 -n %{name}-%{commit0} sed -i 's,PREFIX =.*$,PREFIX = %{_prefix},g' Makefile sed -i 's,MANDIR =.*$,MANDIR = %{_mandir}/man1,g' Makefile sed -i 's,LDFLAGS += -s,LDFLAGS +=,g' Makefile %build %set_build_flags %make_build VERSION=%{version} %make_build VERSION=%{version} lib %install %make_install LIBDIR=%{_libdir} %make_install install-lib LIBDIR=%{_libdir} install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service install -D -m 644 %{SOURCE2} %{buildroot}%{_userunitdir}/%{name}.service install -D -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf %files %doc CHANGELOG README.md COPYING %{_bindir}/mod-host %{_libdir}/jack/* %{_mandir}/man1/mod-host.* %{_unitdir}/%{name}.service %{_userunitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %files protocol %license COPYING %{_libdir}/libmod-host-protocol.so.0* %files protocol-devel %{_libdir}/libmod-host-protocol.so %{_includedir}/mod-host/ %{_libdir}/pkgconfig/mod-host-protocol.pc %{_datadir}/mod-host/ %changelog * Sat Nov 14 2026 Pau Aliagas - 0.10.6-14 - the socket and feedback ports listen on 127.0.0.1 unless -b (--bind-address) or MOD_DEVICE_HOST_BIND_ADDRESS names another address; -b 0.0.0.0 is every address. A controller on another machine now needs -b - a second mod-host on a busy port is refused instead of sharing it - a plugin's state path stays inside its instance's directory - mod-host -V prints the package version instead of 0.0.0 - the system unit runs mod-host as the system user mod-host (in audio), hardened; the user unit is its own file * Fri Oct 30 2026 Pau Aliagas - 0.10.6-13 - #116: the protocol's command table holds 128 commands, and one past them is refused with -1 and named on stderr instead of dropped in silence * Fri Oct 16 2026 Pau Aliagas - 0.10.6-12 - #112: trimming spaces no longer reads before the start of an empty command - #113: socket input is split into NUL-terminated commands, a command split over several reads or several commands in one read both work; a command over 16 MiB closes the connection; socket_send stops on an error and never raises SIGPIPE * Thu Oct 01 2026 Pau Aliagas - 0.10.6-11 - #109: param_info, remote_pages and track_info for controllers * Thu Oct 01 2026 Pau Aliagas - 0.10.6-10 - #101: retry a suffixed client name on any exact-name failure (jack2) * Wed Sep 30 2026 Pau Aliagas - 0.10.6-9 - our patches are now the upstream PRs 100, 101 and 104 to 108, one file each; PRs 81, 82 and 98 unchanged - install the protocol library with make install-lib * Wed Sep 30 2026 Pau Aliagas - 0.10.6-8 - update PR 103: a backend can answer monitor_output and send output_set * Wed Sep 30 2026 Pau Aliagas - 0.10.6-7 - move libmod-host-protocol.so.0 into its own mod-host-protocol subpackage * Tue Sep 29 2026 Pau Aliagas - 0.10.6-6 - build the socket, protocol and command dispatch as a shared library, libmod-host-protocol.so.0, with its headers and pkg-config file in mod-host-protocol-devel * Fri Sep 25 2026 Pau Aliagas - 0.10.6-5 - apply the fix from upstream PR 98: a plugin sending an empty path no longer makes mod-host read past its buffer - apply upstream PRs 81 and 82 (riban) and a follow-up to 81: runs of spaces between protocol words are accepted, and "-t" runs the self-test * Tue Sep 22 2026 Pau Aliagas - 0.10.6-4 - apply upstream PR 101: an optional jack client name on the add command * Sat Sep 05 2026 Yann Collette - 0.10.6-3 - update to 0.10.6-3 - apply a patch * Sat Sep 05 2026 Yann Collette - 0.10.6-2 - update to 0.10.6-2 - update to last master * Tue Jul 27 2021 Yann Collette - 0.10.6-1 - initial spec