2011-03-24 13:22:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package mumble
|
|
|
|
#
|
2022-01-20 16:27:42 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-03-24 13:22:30 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-19 06:31:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-24 13:22:30 +01:00
|
|
|
#
|
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
|
2022-01-20 16:27:42 +01:00
|
|
|
# requires libzeroc-ice, not available yet
|
2010-12-16 16:12:21 +01:00
|
|
|
%bcond_without ice
|
2021-11-10 09:09:44 +01:00
|
|
|
%bcond_without jack
|
2019-07-14 05:08:10 +02:00
|
|
|
%bcond_without pulseaudio
|
2019-09-12 11:53:10 +02:00
|
|
|
%bcond_without system_opus
|
|
|
|
%bcond_without system_speex
|
2011-02-21 15:45:43 +01:00
|
|
|
# mumble must be able to talk to other clients which may use
|
2019-09-12 11:53:10 +02:00
|
|
|
# different versions of celt. Since each celt release is
|
2011-02-21 15:45:43 +01:00
|
|
|
# incompatible to each other mumble bundles some specific
|
|
|
|
# versions.
|
2010-12-16 16:12:21 +01:00
|
|
|
%bcond_with system_celt
|
2011-03-24 13:22:30 +01:00
|
|
|
Name: mumble
|
2022-01-25 21:36:51 +01:00
|
|
|
Version: 1.4.230
|
2015-12-15 20:27:52 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Voice Communication Client for Gamers
|
2019-09-12 11:53:10 +02:00
|
|
|
# For Legal: the bundled opus and speex subdirectories are not built.
|
|
|
|
# Most files are BSD-3-Clause, celt also contains BSD-2-Clause files.
|
|
|
|
License: BSD-2-Clause AND BSD-3-Clause
|
2015-12-15 20:27:52 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2019-09-12 11:53:10 +02:00
|
|
|
URL: http://mumble.sourceforge.net/
|
2022-01-25 21:36:51 +01:00
|
|
|
Source: https://github.com/mumble-voip/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/mumble-voip/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
|
2015-12-15 20:27:52 +01:00
|
|
|
Source3: murmur.apparmor
|
|
|
|
# http://mumble.info/gpg/gpg.txt
|
2022-01-20 16:27:42 +01:00
|
|
|
Source4: https://raw.githubusercontent.com/mumble-voip/mumble-gpg-signatures/master/mumble-auto-build-2022.asc#/%{name}.keyring
|
2015-12-15 20:27:52 +01:00
|
|
|
Source5: mumble-server.service
|
|
|
|
Source6: baselibs.conf
|
2022-01-20 16:27:42 +01:00
|
|
|
BuildRequires: cmake >= 3.15
|
2015-12-15 20:27:52 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: libspeechd-devel
|
2010-12-16 16:12:21 +01:00
|
|
|
BuildRequires: protobuf-devel
|
2015-12-15 20:27:52 +01:00
|
|
|
Requires: lsb-release
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
BuildRequires: pkgconfig(avahi-compat-libdns_sd)
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with system_celt}
|
|
|
|
BuildRequires: libcelt-devel
|
|
|
|
Requires: libcelt0 > 0.7.0
|
|
|
|
%endif
|
2019-09-11 09:34:38 +02:00
|
|
|
%if %{with system_opus}
|
|
|
|
BuildRequires: pkgconfig(opus)
|
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with system_speex}
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: pkgconfig(speex)
|
2015-03-16 15:37:39 +01:00
|
|
|
BuildRequires: pkgconfig(speexdsp)
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2022-01-20 16:27:42 +01:00
|
|
|
BuildRequires: cmake(PocoZip)
|
|
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5TextToSpeech)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(libopenssl)
|
|
|
|
BuildRequires: pkgconfig(xi)
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with ice}
|
2022-01-20 16:27:42 +01:00
|
|
|
BuildRequires: pkgconfig(ice)
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with pulseaudio}
|
|
|
|
BuildRequires: pulseaudio-devel
|
|
|
|
%endif
|
2021-11-10 09:09:44 +01:00
|
|
|
%if %{with jack}
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
%ifarch x86_64
|
2022-01-20 16:27:42 +01:00
|
|
|
BuildRequires: gcc-c++-32bit
|
2010-12-16 16:12:21 +01:00
|
|
|
Recommends: %{name}-32bit
|
|
|
|
Conflicts: %{name}-32bit < %{version}
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Recommends: %{name}-64bit
|
|
|
|
Conflicts: %{name}-64bit < %{version}
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
%if 0%{?snapshot:1}
|
2015-12-15 20:27:52 +01:00
|
|
|
Conflicts: mumble < %{version}
|
|
|
|
Provides: mumble = %{version}
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2011-02-21 15:45:43 +01:00
|
|
|
#
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Low-latency, high-quality voice communication for gamers. Includes game
|
|
|
|
linking, so voice from other players comes from the direction of their
|
|
|
|
characters, and has echo cancellation so the sound from your loudspeakers
|
|
|
|
won't be audible to other players.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: Voice Communication Server for Gamers
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2012-11-07 10:40:52 +01:00
|
|
|
Requires: lsb-release
|
2015-12-15 20:27:52 +01:00
|
|
|
Requires(pre): %{_sbindir}/useradd
|
2020-07-11 22:13:15 +02:00
|
|
|
Recommends: libQt5Sql5-mysql
|
|
|
|
Recommends: libQt5Sql5-postgresql
|
2022-04-17 15:43:42 +02:00
|
|
|
Recommends: libQt5Sql5-sqlite
|
2010-12-16 16:12:21 +01:00
|
|
|
%if 0%{?snapshot:1}
|
2015-12-15 20:27:52 +01:00
|
|
|
Conflicts: mumble-server < %{version}
|
|
|
|
Provides: mumble-server = %{version}
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2013-06-06 20:23:04 +02:00
|
|
|
%{?systemd_requires}
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%description server
|
|
|
|
Low-latency, high-quality voice communication for gamers. Includes game
|
|
|
|
linking, so voice from other players comes from the direction of their
|
|
|
|
characters, and has echo cancellation so the sound from your loudspeakers
|
|
|
|
won't be audible to other players.
|
|
|
|
|
|
|
|
%prep
|
2022-01-25 21:36:51 +01:00
|
|
|
%setup -q -n %{name}-%{version}.src
|
2011-03-24 13:22:30 +01:00
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
%build
|
2022-01-20 16:27:42 +01:00
|
|
|
%cmake .. \
|
|
|
|
-Dupdate:BOOL=OFF \
|
2022-04-17 15:43:42 +02:00
|
|
|
-Doverlay-xcompile:BOOL=OFF \
|
2022-01-20 16:27:42 +01:00
|
|
|
-Dsymbols:BOOL=ON \
|
|
|
|
-Dcrash-report:BOOL=OFF \
|
|
|
|
-DMUMBLE_INSTALL_PLUGINDIR=%{_libdir}/mumble/plugins \
|
|
|
|
-DCMAKE_MODULE_LINKER_FLAGS="" \
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="" \
|
|
|
|
%if 1
|
|
|
|
-Dice=OFF \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with system_celt}
|
2022-01-20 16:27:42 +01:00
|
|
|
-Dbundled-celt:BOOL=OFF \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-11 09:34:38 +02:00
|
|
|
%if %{with system_speex}
|
2022-01-20 16:27:42 +01:00
|
|
|
-Dbundled-opus:BOOL=OFF \
|
2019-09-11 09:34:38 +02:00
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with system_speex}
|
2022-01-20 16:27:42 +01:00
|
|
|
-Dbundled-speex:BOOL=OFF \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if !%{with pulseaudio}
|
2022-01-20 16:27:42 +01:00
|
|
|
-Dpulseaudio:BOOL=OFF \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-04 10:34:30 +02:00
|
|
|
|
2022-01-20 16:27:42 +01:00
|
|
|
# build fails for high -j so we overwrite with 1 here
|
|
|
|
%make_build -j1
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%install
|
2022-01-20 16:27:42 +01:00
|
|
|
%cmake_install
|
2011-02-21 15:45:43 +01:00
|
|
|
|
2022-01-20 16:27:42 +01:00
|
|
|
install -D -m 0640 scripts/murmur.ini %{buildroot}%{_sysconfdir}/mumble-server.ini
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -a scripts LICENSE README.md %{buildroot}%{_docdir}/%{name}
|
|
|
|
find %{buildroot}%{_docdir}/%{name}/scripts -type f -name '*.py' -exec chmod -x {} \;
|
|
|
|
find %{buildroot}%{_docdir}/%{name}/scripts -type f -name '*.rb' -exec chmod -x {} \;
|
|
|
|
find %{buildroot}%{_docdir}/%{name}/scripts -type f -name '*.sh' -exec chmod -x {} \;
|
|
|
|
find %{buildroot}%{_docdir}/%{name}/scripts -type f -name '*.bat' -exec chmod -x {} \;
|
|
|
|
# Server
|
|
|
|
##
|
2020-08-19 12:26:40 +02:00
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
|
cat >> %{buildroot}%{_tmpfilesdir}/mumble-server.conf <<EOF
|
2015-12-15 20:27:52 +01:00
|
|
|
d %{_localstatedir}/run/mumble-server 0755 mumble-server mumble-server -
|
2014-07-29 21:58:30 +02:00
|
|
|
EOF
|
2015-12-15 20:27:52 +01:00
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/apparmor.d/usr.sbin.murmurd
|
2022-01-20 16:27:42 +01:00
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/mumble-server.service
|
2010-12-16 16:12:21 +01:00
|
|
|
install -D -m 0644 scripts/murmur.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/mumble-server.conf
|
2022-01-20 16:27:42 +01:00
|
|
|
install -D -m 0644 scripts/murmur.ini %{buildroot}%{_sysconfdir}/mumble-server.ini
|
2013-06-06 20:23:04 +02:00
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
%pre server
|
|
|
|
getent group mumble-server >/dev/null || groupadd -r mumble-server || :
|
|
|
|
getent passwd mumble-server >/dev/null || \
|
2015-12-15 20:27:52 +01:00
|
|
|
%{_sbindir}/useradd -r -d %{_localstatedir}/lib/mumble-server -s /bin/false -c "Mumble VoIP Server" -g mumble-server mumble-server 2> /dev/null || :
|
2015-06-18 08:58:32 +02:00
|
|
|
%service_add_pre mumble-server.service
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%preun server
|
2014-07-29 21:58:30 +02:00
|
|
|
%service_del_preun mumble-server.service
|
2013-06-06 20:23:04 +02:00
|
|
|
|
|
|
|
%post server
|
2020-08-19 12:26:40 +02:00
|
|
|
systemd-tmpfiles --create %{_tmpfilesdir}/mumble-server.conf || true
|
2014-07-29 21:58:30 +02:00
|
|
|
%service_add_post mumble-server.service
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%postun server
|
2014-07-29 21:58:30 +02:00
|
|
|
%service_del_postun mumble-server.service
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%exclude %{_docdir}/%{name}/scripts/murmur.ini
|
2022-01-20 16:27:42 +01:00
|
|
|
%exclude %{_docdir}/%{name}/scripts/org.mumble_voip.mumble.desktop
|
2010-12-16 16:12:21 +01:00
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%{_bindir}/mumble
|
|
|
|
%{_bindir}/mumble-overlay
|
|
|
|
%{_mandir}/man1/mumble-overlay.*
|
|
|
|
%{_mandir}/man1/mumble.*
|
|
|
|
%dir %{_datadir}/icons/hicolor
|
|
|
|
%dir %{_datadir}/icons/hicolor/*
|
|
|
|
%dir %{_datadir}/icons/hicolor/*/apps
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/mumble.*
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_libdir}/mumble
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%doc %{_docdir}/%{name}/scripts/murmur.ini
|
2022-01-20 16:27:42 +01:00
|
|
|
%{_bindir}/mumble-server
|
2010-12-16 16:12:21 +01:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/mumble-server.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/mumble-server.ini
|
2020-08-19 12:26:40 +02:00
|
|
|
%{_tmpfilesdir}/mumble-server.conf
|
2014-07-29 21:58:30 +02:00
|
|
|
%{_unitdir}/mumble-server.service
|
2010-12-16 16:12:21 +01:00
|
|
|
%{_mandir}/man1/murmurd.*
|
|
|
|
%{_mandir}/man1/murmur-user-wrapper.*
|
2022-01-20 16:27:42 +01:00
|
|
|
%{_datadir}/metainfo/org.mumble_voip.mumble.appdata.xml
|
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
|
|
|
%config %{_sysconfdir}/apparmor.d/usr.sbin.murmurd
|
2011-03-28 10:54:20 +02:00
|
|
|
|
2011-03-24 13:22:30 +01:00
|
|
|
%changelog
|