2018-03-09 22:04:28 +01:00
|
|
|
#
|
|
|
|
# spec file for package Jamulus
|
|
|
|
#
|
2021-01-18 14:09:43 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-03-09 22:04:28 +01:00
|
|
|
# Copyright (c) 2014 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-22 14:02:12 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-09 22:04:28 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-18 14:09:43 +01:00
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2020-12-13 15:23:26 +01:00
|
|
|
%define tarball_version 3_6_2
|
2020-04-15 22:24:20 +02:00
|
|
|
|
2018-03-09 22:04:28 +01:00
|
|
|
Name: Jamulus
|
2020-12-13 15:23:26 +01:00
|
|
|
Version: 3.6.2
|
2018-03-09 22:04:28 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Low-latency internet connection tool for real-time jam sessions
|
2019-04-22 14:02:12 +02:00
|
|
|
License: GPL-2.0-or-later
|
2018-03-09 22:04:28 +01:00
|
|
|
URL: http://llcon.sourceforge.net/index.html
|
2020-04-15 22:29:34 +02:00
|
|
|
Source0: https://github.com/corrados/jamulus/archive/r%{tarball_version}.tar.gz#/jamulus-r%{tarball_version}.tar.gz
|
2020-04-03 22:07:43 +02:00
|
|
|
Source1: %{name}_icon.png
|
2021-01-18 14:09:43 +01:00
|
|
|
Source10: %{name}-public.service
|
|
|
|
Source11: %{name}-private.service
|
|
|
|
Source12: %{name}-newrec.service
|
|
|
|
Source13: %{name}-togglerec.service
|
|
|
|
Source20: %{name}.sysconfig
|
|
|
|
Source21: %{name}.firewalld
|
|
|
|
Source90: README.SUSE
|
2018-03-09 22:04:28 +01:00
|
|
|
BuildRequires: ImageMagick
|
2020-04-03 22:07:43 +02:00
|
|
|
BuildRequires: fdupes
|
2021-01-18 14:09:43 +01:00
|
|
|
BuildRequires: firewall-macros
|
|
|
|
BuildRequires: firewalld
|
2018-03-09 22:04:28 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: jack-devel
|
|
|
|
BuildRequires: pkgconfig
|
2021-01-18 14:09:43 +01:00
|
|
|
BuildRequires: pwdutils
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2018-03-09 22:04:28 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2020-09-24 21:12:00 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
2018-03-09 22:04:28 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(opus)
|
|
|
|
Requires: jack
|
2021-01-18 14:09:43 +01:00
|
|
|
Requires(pre): shadow
|
|
|
|
Requires(pre): %fillup_prereq
|
2018-03-09 22:04:28 +01:00
|
|
|
Provides: llcon = %{version}
|
|
|
|
Obsoletes: llcon < %{version}
|
2020-04-03 17:45:42 +02:00
|
|
|
Provides: jamulus = %{version}
|
|
|
|
Obsoletes: jamulus < %{version}
|
2021-01-18 14:09:43 +01:00
|
|
|
%{?systemd_requires}
|
2018-03-09 22:04:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Jamulus software enables musicians to perform real-time jam sessions over
|
|
|
|
the internet. There is one server running the Jamulus server software which
|
|
|
|
collects the audio data from each Jamulus client software, mixes the audio data
|
|
|
|
and sends the mix back to each client.
|
|
|
|
|
|
|
|
%prep
|
2020-09-24 21:05:53 +02:00
|
|
|
%autosetup -p1 -n jamulus-r%{tarball_version}
|
2018-03-09 22:04:28 +01:00
|
|
|
install %{SOURCE1} .
|
2021-01-18 14:09:43 +01:00
|
|
|
install -m644 %{SOURCE90} .
|
2018-03-09 22:04:28 +01:00
|
|
|
|
|
|
|
%build
|
2020-09-24 21:02:13 +02:00
|
|
|
%qmake5 CONFIG+=opus_shared_lib CONFIG+=disable_version_check
|
2020-08-16 10:45:02 +02:00
|
|
|
%make_jobs
|
2018-03-09 22:04:28 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m0755 Jamulus %{buildroot}%{_bindir}/%{name}
|
|
|
|
for s in 16 22 32 48 64 72 96 128 192; do
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
|
2020-04-03 22:07:43 +02:00
|
|
|
convert -strip -resize ${s}x${s} %{name}_icon.png \
|
2018-03-09 22:04:28 +01:00
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
|
|
|
|
done
|
2020-04-03 17:45:42 +02:00
|
|
|
install -Dm0644 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
2021-01-18 14:09:43 +01:00
|
|
|
# sysconfig
|
|
|
|
install -d -m0755 %{buildroot}%{_fillupdir}
|
|
|
|
install -D -m0644 %{SOURCE20} %{buildroot}%{_fillupdir}/sysconfig.jamulus
|
|
|
|
|
|
|
|
# firewalld
|
|
|
|
install -D -m0644 %{SOURCE21} %{buildroot}%{_libexecdir}/firewalld/services/jamulus.xml
|
|
|
|
|
|
|
|
# systemd/services
|
|
|
|
install -D -m0644 %{SOURCE10} %{buildroot}%{_unitdir}/jamulus-public.service
|
|
|
|
install -d -m0755 %{buildroot}%{_sbindir}
|
|
|
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcjamulus-public
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE11} %{buildroot}%{_unitdir}/jamulus-private.service
|
|
|
|
install -d -m0755 %{buildroot}%{_sbindir}
|
|
|
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcjamulus-private
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE12} %{buildroot}%{_unitdir}/jamulus-newrec.service
|
|
|
|
install -d -m0755 %{buildroot}%{_sbindir}
|
|
|
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcjamulus-newrec
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE13} %{buildroot}%{_unitdir}/jamulus-togglerec.service
|
|
|
|
install -d -m0755 %{buildroot}%{_sbindir}
|
|
|
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcjamulus-togglerec
|
|
|
|
|
|
|
|
# desktop file
|
|
|
|
sed -i -e 's|$$TARGET|Jamulus|g' distributions/jamulus.desktop.in
|
|
|
|
sed -i -e 's|Icon=jamulus|Icon=Jamulus|g' distributions/jamulus.desktop.in
|
|
|
|
install -D -m 0644 distributions/jamulus.desktop.in %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%suse_update_desktop_file %{name}
|
2018-03-09 22:04:28 +01:00
|
|
|
|
2020-04-03 22:07:43 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
2021-01-18 14:09:43 +01:00
|
|
|
%pre
|
2021-01-22 04:47:57 +01:00
|
|
|
%service_add_pre jamulus-public.service jamulus-private.service jamulus-newrec.service jamulus-togglerec.service
|
|
|
|
getent passwd jamulus >/dev/null || \
|
|
|
|
useradd -r -g nogroup -d /var/lib/empty -s /bin/false \
|
|
|
|
-c "Jamulus Server" jamulus
|
2021-01-18 14:09:43 +01:00
|
|
|
|
|
|
|
%post
|
2021-01-22 04:47:57 +01:00
|
|
|
%service_add_post jamulus-public.service jamulus-private.service jamulus-newrec.service jamulus-togglerec.service
|
2021-01-18 14:09:43 +01:00
|
|
|
%{fillup_only -n jamulus}
|
|
|
|
%firewalld_reload
|
|
|
|
|
|
|
|
%preun
|
2021-01-22 04:47:57 +01:00
|
|
|
%service_del_preun jamulus-public.service jamulus-private.service jamulus-newrec.service jamulus-togglerec.service
|
2021-01-18 14:09:43 +01:00
|
|
|
|
|
|
|
%postun
|
2021-01-22 04:47:57 +01:00
|
|
|
%service_del_postun jamulus-public.service jamulus-private.service jamulus-newrec.service jamulus-togglerec.service
|
2021-01-18 14:09:43 +01:00
|
|
|
|
2018-03-09 22:04:28 +01:00
|
|
|
%files
|
2021-01-18 14:09:43 +01:00
|
|
|
%doc README.md ChangeLog README.SUSE
|
2018-03-09 22:04:28 +01:00
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2021-01-18 14:09:43 +01:00
|
|
|
# sysconfig
|
|
|
|
%{_fillupdir}/sysconfig.jamulus
|
|
|
|
# firewalld
|
|
|
|
%config(noreplace) %{_libexecdir}/firewalld/services/jamulus.xml
|
|
|
|
%dir %{_libexecdir}/firewalld
|
|
|
|
%dir %{_libexecdir}/firewalld/services
|
|
|
|
# systemd/services
|
|
|
|
%{_unitdir}/jamulus-public.service
|
|
|
|
%{_sbindir}/rcjamulus-public
|
|
|
|
%{_unitdir}/jamulus-private.service
|
|
|
|
%{_sbindir}/rcjamulus-private
|
|
|
|
%{_unitdir}/jamulus-newrec.service
|
|
|
|
%{_sbindir}/rcjamulus-newrec
|
|
|
|
%{_unitdir}/jamulus-togglerec.service
|
|
|
|
%{_sbindir}/rcjamulus-togglerec
|
2018-03-09 22:04:28 +01:00
|
|
|
|
|
|
|
%changelog
|