2011-03-24 13:22:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package mumble
|
|
|
|
#
|
2020-07-11 22:13:15 +02:00
|
|
|
# Copyright (c) 2020 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
|
|
|
|
2020-10-06 07:44:46 +02:00
|
|
|
%define ver 1.3.3
|
2019-07-14 05:08:10 +02:00
|
|
|
%if 0%{?fedora_version}
|
2010-12-16 16:12:21 +01:00
|
|
|
%bcond_without ice
|
|
|
|
%else
|
|
|
|
%bcond_with ice
|
|
|
|
%endif
|
2019-07-14 05:08:10 +02:00
|
|
|
%bcond_without pulseaudio
|
2014-07-29 21:58:30 +02:00
|
|
|
%bcond_without systemd
|
2019-07-14 05:08:10 +02:00
|
|
|
%bcond_without bonjour
|
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
|
2019-09-04 10:34:30 +02:00
|
|
|
Version: %{ver}%{?snapshot:_%{snapshot}}
|
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/
|
|
|
|
Source: https://github.com/mumble-voip/mumble/releases/download/%{ver}%{?snapshot:-%{snapshot}}/%{name}-%{ver}%{?snapshot:-%{snapshot}}.tar.gz
|
|
|
|
Source1: https://github.com/mumble-voip/mumble/releases/download/%{ver}%{?snapshot:-%{snapshot}}/%{name}-%{ver}%{?snapshot:-%{snapshot}}.tar.gz.sig
|
2015-12-15 20:27:52 +01:00
|
|
|
Source2: mumble-server.init
|
|
|
|
Source3: murmur.apparmor
|
|
|
|
# http://mumble.info/gpg/gpg.txt
|
2020-07-11 22:13:15 +02:00
|
|
|
Source4: https://raw.githubusercontent.com/mumble-voip/mumble-gpg-signatures/master/mumble-auto-build-2020.asc#/%{name}.keyring
|
2015-12-15 20:27:52 +01:00
|
|
|
Source5: mumble-server.service
|
|
|
|
Source6: baselibs.conf
|
|
|
|
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
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with bonjour}
|
|
|
|
%if 0%{?suse_version}
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: pkgconfig(avahi-compat-libdns_sd)
|
2010-12-16 16:12:21 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: avahi-compat-libdns_sd-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%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
|
|
|
|
%if 0%{?suse_version}
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: libqt5-linguist
|
2019-09-12 11:53:10 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: update-desktop-files
|
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
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: Mesa-libGL-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: alsa-lib-devel
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: libQt5DBus-devel
|
|
|
|
BuildRequires: libQt5Gui-devel
|
|
|
|
BuildRequires: libQt5Network-devel
|
|
|
|
BuildRequires: libQt5Sql-devel
|
|
|
|
BuildRequires: libQt5Xml-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: libXevie-devel
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
BuildRequires: libqt5-qtsvg-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with ice}
|
|
|
|
BuildRequires: ice-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?mandriva_version}
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: -alsa-plugins
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: Mesa-libGL-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: alsa-lib-devel
|
2019-09-04 10:34:30 +02:00
|
|
|
BuildRequires: libQt5DBus-devel
|
|
|
|
BuildRequires: libQt5Gui-devel
|
|
|
|
BuildRequires: libQt5Network-devel
|
|
|
|
BuildRequires: libQt5Sql-devel
|
|
|
|
BuildRequires: libQt5Xml-devel
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
BuildRequires: libqt5-qtsvg-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: libxevie-devel
|
2010-12-16 16:12:21 +01:00
|
|
|
BuildRequires: libxi-devel
|
2012-06-25 16:59:24 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with pulseaudio}
|
|
|
|
BuildRequires: pulseaudio-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%ifarch x86_64
|
|
|
|
Recommends: %{name}-32bit
|
|
|
|
Conflicts: %{name}-32bit < %{version}
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
Recommends: %{name}-64bit
|
|
|
|
Conflicts: %{name}-64bit < %{version}
|
|
|
|
%endif
|
|
|
|
%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
|
2019-09-12 11:53:10 +02:00
|
|
|
Requires: libQt5Sql5-sqlite
|
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
|
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
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
2013-06-06 20:23:04 +02:00
|
|
|
%{?systemd_requires}
|
2014-07-29 21:58:30 +02:00
|
|
|
%endif
|
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
|
2019-09-04 10:34:30 +02:00
|
|
|
%setup -q -n %{name}-%{ver}
|
|
|
|
rm -v scripts/*.bak
|
2011-03-24 13:22:30 +01:00
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
%build
|
|
|
|
#
|
|
|
|
#
|
|
|
|
%if 0
|
|
|
|
# for not having to wait for compile when testing packaging stuff..
|
|
|
|
mkdir release
|
|
|
|
touch release/mumble release/murmurd release/libmumble.so.1.1.1
|
|
|
|
%endif
|
2019-09-11 09:34:38 +02:00
|
|
|
%qmake5 \
|
2019-09-12 11:53:10 +02:00
|
|
|
QMAKE_CFLAGS_RELEASE="%{optflags} -Wall -fno-strict-aliasing" \
|
|
|
|
QMAKE_CXXFLAGS_RELEASE="%{optflags} -Wall -fno-strict-aliasing" \
|
|
|
|
QMAKE_LRELEASE="%{_bindir}/lrelease-qt5" \
|
|
|
|
DEFINES*=NO_UPDATE_CHECK \
|
|
|
|
DEFINES*=MUMBLE_VERSION=%{version} \
|
|
|
|
DEFINES*=PLUGIN_PATH=%{_libdir}/mumble/plugins \
|
|
|
|
CONFIG*=packaged \
|
2010-12-16 16:12:21 +01:00
|
|
|
%if 0%{?suse_version}
|
2019-09-12 11:53:10 +02:00
|
|
|
DEFINES*=NO_SYSTEM_CA_OVERRIDE \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-g15 \
|
|
|
|
CONFIG*=no-embed-qt-translations \
|
2010-12-16 16:12:21 +01:00
|
|
|
%if !%{with ice}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-ice \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if %{with system_celt}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-bundled-celt \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-11 09:34:38 +02:00
|
|
|
%if %{with system_speex}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-bundled-opus \
|
2019-09-11 09:34:38 +02:00
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
%if %{with system_speex}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-bundled-speex \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if !%{with bonjour}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-bonjour \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
|
|
|
%if !%{with pulseaudio}
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-pulseaudio \
|
2010-12-16 16:12:21 +01:00
|
|
|
%endif
|
2019-09-12 11:53:10 +02:00
|
|
|
CONFIG*=no-crash-report \
|
|
|
|
-recursive
|
2010-12-16 16:12:21 +01:00
|
|
|
#
|
2015-03-19 09:54:23 +01:00
|
|
|
# Include is broken for openSUSE, so fix it.
|
|
|
|
sed -i "s,<libspeechd.h>,<speech-dispatcher/libspeechd.h>," src/mumble/TextToSpeech_unix.cpp
|
2010-12-16 16:12:21 +01:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# deps for *.pb.cc are broken and fail for high -j so generate
|
|
|
|
# them manually first
|
2019-09-04 10:34:30 +02:00
|
|
|
for i in src/* ; do
|
|
|
|
grep -q compiler_pb_make_all $i/Makefile.Release || continue
|
2020-07-11 22:13:15 +02:00
|
|
|
%make_build -C $i -f Makefile.Release compiler_pb_make_all
|
2010-12-16 16:12:21 +01:00
|
|
|
done
|
2019-09-04 10:34:30 +02:00
|
|
|
|
2020-07-11 22:13:15 +02:00
|
|
|
%make_build
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# client
|
|
|
|
install -d -m 0755 "%{buildroot}%{_bindir}"
|
2011-06-11 18:18:51 +02:00
|
|
|
# hack to make loading libs from applicationDirPath work
|
|
|
|
install -D -m 0755 release/mumble %{buildroot}%{_libdir}/mumble/mumble
|
|
|
|
ln -s "%{_libdir}/mumble/mumble" "%{buildroot}%{_bindir}/mumble"
|
|
|
|
#
|
2010-12-16 16:12:21 +01:00
|
|
|
install -d -m 0755 "%{buildroot}%{_libdir}/mumble/plugins"
|
|
|
|
install -m 0755 release/plugins/*.so "%{buildroot}%{_libdir}/mumble/plugins"
|
|
|
|
install -m 755 scripts/mumble-overlay "%{buildroot}%{_bindir}/mumble-overlay"
|
|
|
|
install -d -m 0755 "%{buildroot}%{_mandir}/man1"
|
|
|
|
install -m 0644 man/*.1 "%{buildroot}%{_mandir}/man1"
|
|
|
|
#
|
|
|
|
install -D -m 0644 icons/mumble.xpm "%{buildroot}%{_datadir}/pixmaps/mumble.xpm"
|
|
|
|
install -D -m 0644 icons/mumble.svg "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mumble.svg"
|
|
|
|
#
|
|
|
|
install -d -m0755 "%{buildroot}%{_libdir}/mumble"
|
|
|
|
install -m0755 release/libmumble.so.*.*.* "%{buildroot}%{_libdir}/mumble"
|
|
|
|
/sbin/ldconfig -n "%{buildroot}%{_libdir}/mumble"
|
2011-02-21 15:45:43 +01:00
|
|
|
# do this after ldconfig as we don't need the links
|
|
|
|
%if !%{with system_celt}
|
|
|
|
install -m 644 release/libcelt0.so.0.*.* "%{buildroot}%{_libdir}/mumble"
|
|
|
|
%endif
|
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
#
|
|
|
|
# server
|
|
|
|
install -D -m 0755 release/murmurd "%{buildroot}%{_sbindir}/murmurd"
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
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
|
|
|
|
#
|
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/mumble-server.service
|
2015-12-15 20:27:52 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcmumble-server
|
2014-07-29 21:58:30 +02:00
|
|
|
%else
|
2015-12-15 20:27:52 +01:00
|
|
|
install -D -m 0755 %{SOURCE2} %{buildroot}%{_initddir}/mumble-server
|
|
|
|
ln -s %{_initddir}/mumble-server %{buildroot}%{_sbindir}/rcmumble-server
|
2013-08-01 11:24:21 +02:00
|
|
|
%endif
|
2015-12-15 20:27:52 +01:00
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/apparmor.d/usr.sbin.murmurd
|
2011-03-24 14:43:17 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_bindir}
|
|
|
|
# can be launched as user too but apparmor profile doesn't make
|
|
|
|
# sense in that case. So use link to avoid the profile.
|
|
|
|
ln -s %{_sbindir}/murmurd %{buildroot}%{_bindir}/murmurd
|
2010-12-16 16:12:21 +01:00
|
|
|
install -D -m 0644 scripts/murmur.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/mumble-server.conf
|
2019-11-06 10:46:40 +01:00
|
|
|
install -D -m 0640 scripts/murmur.ini %{buildroot}%{_sysconfdir}/mumble-server.ini
|
2010-12-16 16:12:21 +01:00
|
|
|
# fix up config file
|
|
|
|
sed -i -e 's/^dbus=session/dbus=system/' \
|
2019-09-12 11:53:10 +02:00
|
|
|
-e 's/#uname=/uname=mumble-server/' \
|
|
|
|
-e 's@#pidfile=@pidfile=%{_localstatedir}/run/mumble-server/mumble-server.pid@' \
|
|
|
|
-e 's@#logfile=@logfile=%{_localstatedir}/log/mumble-server/@' \
|
|
|
|
%{buildroot}%{_sysconfdir}/mumble-server.ini
|
2010-12-16 16:12:21 +01:00
|
|
|
install -D -m 0755 scripts/murmur-user-wrapper %{buildroot}%{_bindir}/murmur-user-wrapper
|
2014-11-21 14:38:23 +01:00
|
|
|
sed -i -e '/^SYSDIR=/s@=.*@=%{_docdir}/%{name}/scripts@' %{buildroot}%{_bindir}/murmur-user-wrapper
|
2010-12-16 16:12:21 +01:00
|
|
|
for i in log lib run; do
|
2019-09-12 11:53:10 +02:00
|
|
|
install -d -m755 %{buildroot}%{_localstatedir}/$i/mumble-server
|
2010-12-16 16:12:21 +01:00
|
|
|
done
|
|
|
|
#
|
2015-12-15 20:27:52 +01:00
|
|
|
install -d %{buildroot}/%{_datadir}/applications
|
2020-12-27 16:43:06 +01:00
|
|
|
install -m 644 scripts/mumble.desktop %{buildroot}/%{_datadir}/applications/mumble.desktop
|
2010-12-16 16:12:21 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file mumble
|
|
|
|
%endif
|
2019-09-12 11:53:10 +02:00
|
|
|
|
2010-12-16 16:12:21 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
cp -a scripts LICENSE README README.Linux %{buildroot}%{_docdir}/%{name}
|
|
|
|
#
|
2016-09-25 16:02:40 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -m 644 scripts/mumble.appdata.xml %{buildroot}%{_datadir}/appdata/mumble.appdata.xml
|
|
|
|
#
|
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
|
|
|
%if %{with systemd}
|
|
|
|
%service_add_pre mumble-server.service
|
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%preun server
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%service_del_preun mumble-server.service
|
|
|
|
%else
|
2010-12-16 16:12:21 +01:00
|
|
|
%stop_on_removal mumble-server
|
|
|
|
%endif
|
2013-06-06 20:23:04 +02:00
|
|
|
|
|
|
|
%post server
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
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
|
|
|
|
%else
|
2013-06-06 20:23:04 +02:00
|
|
|
%fillup_and_insserv mumble-server
|
|
|
|
%endif
|
2010-12-16 16:12:21 +01:00
|
|
|
|
|
|
|
%postun server
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
|
|
|
%service_del_postun mumble-server.service
|
|
|
|
%else
|
2010-12-16 16:12:21 +01:00
|
|
|
%restart_on_update mumble-server
|
|
|
|
%insserv_cleanup
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%exclude %{_docdir}/%{name}/scripts/murmur.ini
|
|
|
|
%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}/pixmaps/*
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_libdir}/mumble
|
|
|
|
|
|
|
|
%files server
|
|
|
|
%doc %{_docdir}/%{name}/scripts/murmur.ini
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/mumble-server.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/mumble-server.ini
|
2014-07-29 21:58:30 +02:00
|
|
|
%if %{with systemd}
|
2020-08-19 12:26:40 +02:00
|
|
|
%{_tmpfilesdir}/mumble-server.conf
|
2014-07-29 21:58:30 +02:00
|
|
|
%{_unitdir}/mumble-server.service
|
|
|
|
%else
|
2015-12-15 20:27:52 +01:00
|
|
|
%{_initddir}/mumble-server
|
2013-08-01 11:24:21 +02:00
|
|
|
%endif
|
2014-03-26 13:21:06 +01:00
|
|
|
%{_sbindir}/rcmumble-server
|
2015-12-15 20:27:52 +01:00
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
|
|
|
%config %{_sysconfdir}/apparmor.d/usr.sbin.murmurd
|
2010-12-16 16:12:21 +01:00
|
|
|
%{_sbindir}/murmurd
|
2011-03-24 14:43:17 +01:00
|
|
|
%{_bindir}/murmurd
|
2010-12-16 16:12:21 +01:00
|
|
|
%{_bindir}/murmur-user-wrapper
|
|
|
|
%{_mandir}/man1/murmurd.*
|
|
|
|
%{_mandir}/man1/murmur-user-wrapper.*
|
2015-12-15 20:27:52 +01:00
|
|
|
%dir %attr(-,mumble-server,mumble-server) %{_localstatedir}/lib/mumble-server
|
|
|
|
%dir %{_localstatedir}/log/mumble-server
|
2016-05-06 10:57:05 +02:00
|
|
|
%ghost %{_rundir}/mumble-server
|
2016-09-25 16:02:40 +02:00
|
|
|
%dir %{_datadir}/appdata/
|
|
|
|
%{_datadir}/appdata/mumble.appdata.xml
|
2011-03-28 10:54:20 +02:00
|
|
|
|
2011-03-24 13:22:30 +01:00
|
|
|
%changelog
|