Accepting request 848099 from home:favogt:branches:Base:System

- Use /var/lib/empty instead of /proc as home for the rtkit user
- Use %license
- Commit _servicedata to avoid updating on every commit

OBS-URL: https://build.opensuse.org/request/show/848099
OBS-URL: https://build.opensuse.org/package/show/Base:System/rtkit?expand=0&rev=38
This commit is contained in:
Marcus Meissner 2020-11-12 11:19:46 +00:00 committed by Git OBS Bridge
parent 1191221beb
commit 890001243e
3 changed files with 16 additions and 4 deletions

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">http://git.0pointer.net/clone/rtkit.git</param>
<param name="changesrevision">6c28e20c0be2f616a025059fda0ffac84e7f4f17</param></service></servicedata>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 12 10:48:49 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- Use /var/lib/empty instead of /proc as home for the rtkit user
- Use %license
- Commit _servicedata to avoid updating on every commit
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 03 14:13:21 UTC 2019 - mliska@suse.cz Wed Jul 03 14:13:21 UTC 2019 - mliska@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package rtkit # spec file for package rtkit
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -24,7 +24,7 @@ Summary: Realtime Policy and Watchdog Daemon
# the client BSD-3-Clause # the client BSD-3-Clause
License: GPL-3.0-or-later AND BSD-3-Clause License: GPL-3.0-or-later AND BSD-3-Clause
Group: System/Base Group: System/Base
Url: http://git.0pointer.de/?p=rtkit.git URL: http://git.0pointer.de/?p=rtkit.git
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
BuildRequires: automake BuildRequires: automake
BuildRequires: libcap-devel BuildRequires: libcap-devel
@ -72,7 +72,7 @@ install -D -m 0644 org.freedesktop.RealtimeKit1.xml %{buildroot}/%{_datadir}/dbu
%pre %pre
groupadd -r rtkit >/dev/null 2>&1 || : groupadd -r rtkit >/dev/null 2>&1 || :
%{_bindir}/id rtkit >/dev/null 2>&1 || \ %{_bindir}/id rtkit >/dev/null 2>&1 || \
useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /proc rtkit useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /var/lib/empty rtkit
%service_add_pre rtkit-daemon.service %service_add_pre rtkit-daemon.service
@ -85,7 +85,8 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc README GPL LICENSE rtkit.c rtkit.h %license GPL LICENSE
%doc README rtkit.c rtkit.h
%attr(0755,root,root) %{_sbindir}/rtkitctl %attr(0755,root,root) %{_sbindir}/rtkitctl
%dir %{_libexecdir}/rtkit %dir %{_libexecdir}/rtkit
%attr(0755,root,root) %{_libexecdir}/rtkit/rtkit-daemon %attr(0755,root,root) %{_libexecdir}/rtkit/rtkit-daemon