1.2.4
OBS-URL: https://build.opensuse.org/package/show/games:tools/mumble?expand=0&rev=37
This commit is contained in:
committed by
Git OBS Bridge
parent
0fafcd47d0
commit
65056caac1
73
mumble.spec
73
mumble.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package mumble
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -32,7 +32,7 @@
|
||||
%bcond_with ice
|
||||
%endif
|
||||
|
||||
%bcond_without mumble11x
|
||||
%bcond_with mumble11x
|
||||
|
||||
%bcond_without bonjour
|
||||
# mumble must be able to talk to other clients which may use
|
||||
@@ -102,7 +102,7 @@ BuildRequires: qt4-linguist
|
||||
%if %{with pulseaudio}
|
||||
BuildRequires: pulseaudio-devel
|
||||
%endif
|
||||
Version: 1.2.3%{?snapshot:_%snapshot}
|
||||
Version: 1.2.4%{?snapshot:_%snapshot}
|
||||
Release: 0
|
||||
%if 0%{!?snapshot:1}
|
||||
Source: http://downloads.sourceforge.net/project/mumble/Mumble/%{version}/mumble-%{version}.tar.gz
|
||||
@@ -111,14 +111,7 @@ Source1: http://downloads.sourceforge.net/project/mumble/Mumble/%{version
|
||||
Source2: mumble-server.init
|
||||
Source3: murmur.apparmor
|
||||
Source4: %{name}.keyring
|
||||
Patch0: 0001-fix-build-error-with-capability.h.diff
|
||||
Patch1: 0001-fix-user-switching.diff
|
||||
Patch2: 0001-open-log-file-early-so-log-dir-can-be-root-owned.diff
|
||||
Patch3: 0001-if-service-name-is-empty-don-t-pass-an-empty-string.diff
|
||||
Patch4: 0001-remove-CAP_NET_ADMIN.diff
|
||||
Patch5: 0001-fix-bonjour-support-using-avahi-compat-lib.diff
|
||||
Patch6: mumble-1.2.3-nohardcodedcas.diff
|
||||
Patch7: 0001-Explicitly-remove-file-permissions-for-settings-and-D.diff
|
||||
Source5: mumble-server.service
|
||||
Patch50: mumble-1.2.2-buildcompare.diff
|
||||
# hack, no clue about glx so no idea to fix this properly
|
||||
Patch99: mumble-1.1.4-sle10glx.diff
|
||||
@@ -159,6 +152,14 @@ Provides: mumble = %version
|
||||
#
|
||||
%endif
|
||||
#
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%if 0%{?suse_version} > 1220
|
||||
%define _unitdir /usr/lib/systemd
|
||||
%else
|
||||
%define _unitdir /lib/systemd
|
||||
%endif
|
||||
BuildRequires: systemd
|
||||
%endif
|
||||
|
||||
%description
|
||||
Low-latency, high-quality voice communication for gamers. Includes game
|
||||
@@ -176,6 +177,9 @@ PreReq: /usr/sbin/useradd
|
||||
Conflicts: mumble-server < %version
|
||||
Provides: mumble-server = %version
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%{?systemd_requires}
|
||||
%endif
|
||||
|
||||
%description server
|
||||
Low-latency, high-quality voice communication for gamers. Includes game
|
||||
@@ -184,19 +188,11 @@ characters, and has echo cancellation so the sound from your loudspeakers
|
||||
won't be audible to other players.
|
||||
|
||||
%prep
|
||||
%if 0%{?gpg_verify:1}
|
||||
%gpg_verify %{S:1}
|
||||
%endif
|
||||
#if 0%{?gpg_verify:1}
|
||||
#gpg_verify %{S:1}
|
||||
#endif
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
#
|
||||
|
||||
%patch50 -p1
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1020
|
||||
%patch99 -p1
|
||||
@@ -303,7 +299,7 @@ make -C src/mumble qt_de.qm
|
||||
for i in mumble murmur; do
|
||||
make -C src/$i -f Makefile.Release compiler_pb_make_all
|
||||
done
|
||||
make %{?jobs:-j%{jobs}}
|
||||
make %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%install
|
||||
@@ -320,10 +316,6 @@ 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.16x16.png "%{buildroot}%{_datadir}/icons/hicolor/16x16/apps/mumble.png"
|
||||
#install -D -m 0644 icons/mumble.32x32.png "%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/mumble.png"
|
||||
#install -D -m 0644 icons/mumble.48x48.png "%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/mumble.png"
|
||||
#install -D -m 0644 icons/mumble.64x64.png "%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/mumble.png"
|
||||
install -D -m 0644 icons/mumble.svg "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/mumble.svg"
|
||||
#
|
||||
install -d -m0755 "%{buildroot}%{_libdir}/mumble"
|
||||
@@ -339,7 +331,7 @@ install -m 644 release/libcelt0.so.0.*.* "%{buildroot}%{_libdir}/mumble"
|
||||
install -D -m 0755 release/mumble11x %{buildroot}%{_bindir}/mumble11x
|
||||
%else
|
||||
# XXX
|
||||
/bin/rm "%{buildroot}%{_mandir}"/man1/mumble11x*
|
||||
/bin/rm -f "%{buildroot}%{_mandir}"/man1/mumble11x*
|
||||
%endif
|
||||
#
|
||||
# server
|
||||
@@ -402,8 +394,14 @@ d /var/run/mumble-server 0755 mumble-server mumble-server -
|
||||
EOF
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1140
|
||||
# service file
|
||||
install -d "%{buildroot}%{_unitdir}/system"
|
||||
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/system/mumble-server.service
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf "%{buildroot}"
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%pre server
|
||||
getent group mumble-server >/dev/null || groupadd -r mumble-server || :
|
||||
@@ -414,12 +412,24 @@ getent passwd mumble-server >/dev/null || \
|
||||
%if 0%{?suse_version}
|
||||
%stop_on_removal mumble-server
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1140
|
||||
%service_del_preun mumble-server.service
|
||||
%endif
|
||||
|
||||
%post server
|
||||
%fillup_and_insserv mumble-server
|
||||
%if 0%{?suse_version} > 1140
|
||||
%service_add_post mumble-server.service
|
||||
%endif
|
||||
|
||||
%postun server
|
||||
%if 0%{?suse_version}
|
||||
%restart_on_update mumble-server
|
||||
%insserv_cleanup
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1140
|
||||
%service_del_postun mumble-server.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
@@ -466,5 +476,8 @@ getent passwd mumble-server >/dev/null || \
|
||||
%dir /usr/lib/tmpfiles.d
|
||||
%config /usr/lib/tmpfiles.d/mumble-server.conf
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%config %{_unitdir}/system/mumble-server.service
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user