Accepting request 94900 from home:elvigia:branches:Base:System
- Update to version 0.10.x * fix annoying warning Failed to make ourselves RT: Invalid argument [bnc#551777] * activation is now done with systemd if possible OBS-URL: https://build.opensuse.org/request/show/94900 OBS-URL: https://build.opensuse.org/package/show/Base:System/rtkit?expand=0&rev=9
This commit is contained in:
parent
5eba8c45dc
commit
c953482f37
3
rtkit-0.10_git201107141740.tar.bz2
Normal file
3
rtkit-0.10_git201107141740.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:24c1ccdb3e567382cfdb39f3813f5bc7a6cc72b38a67dcd50c38c0bfec9f28b8
|
||||
size 41227
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 04:21:25 UTC 2011 - crrodriguez@opensuse.org
|
||||
|
||||
- Update to version 0.10.x
|
||||
* fix annoying warning
|
||||
Failed to make ourselves RT: Invalid argument [bnc#551777]
|
||||
* activation is now done with systemd if possible
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de
|
||||
|
||||
|
40
rtkit.spec
40
rtkit.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package rtkit (Version 0.5)
|
||||
# spec file for package rtkit
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2011 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
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
Name: rtkit
|
||||
Summary: Realtime Policy and Watchdog Daemon
|
||||
Version: 0.5
|
||||
Version: 0.10_git201107141740
|
||||
Release: 6
|
||||
# The daemon itself is GPL v3 or later, the reference implementation for the client BSD
|
||||
License: GPLv3+ ; BSD
|
||||
@ -33,6 +33,11 @@ BuildRequires: libcap-devel
|
||||
BuildRequires: polkit-devel
|
||||
Requires: polkit
|
||||
PreReq: dbus-1
|
||||
%if 0%{?suse_version} > 1140
|
||||
BuildRequires: systemd
|
||||
%{?systemd_requires}
|
||||
%define has_systemd 1
|
||||
%endif
|
||||
|
||||
%description
|
||||
RealtimeKit is a D-Bus system service that changes the
|
||||
@ -45,8 +50,14 @@ processes.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
./bootstrap.sh
|
||||
# %configure --libexecdir=$prefix/lib/rtkit
|
||||
%configure --libexecdir=%{_libexecdir}/rtkit
|
||||
%configure \
|
||||
%if 0%{?has_systemd}
|
||||
--with-systemdsystemunitdir=%{_unitdir} \
|
||||
%endif
|
||||
--libexecdir=%{_libexecdir}/rtkit
|
||||
|
||||
make %{?_smp_mflags}
|
||||
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
|
||||
|
||||
@ -57,13 +68,30 @@ install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/i
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%preun
|
||||
%if 0%{?has_systemd}
|
||||
%service_del_preun rtkit-daemon.service
|
||||
%endif
|
||||
|
||||
%pre
|
||||
groupadd -r rtkit &>/dev/null || :
|
||||
/usr/bin/id rtkit >/dev/null 2>&1 || \
|
||||
useradd -r -g rtkit -c 'RealtimeKit' -s /bin/false -d /proc rtkit
|
||||
|
||||
%if 0%{?has_systemd}
|
||||
%service_add_pre rtkit-daemon.service
|
||||
%endif
|
||||
|
||||
%post
|
||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
||||
%if 0%{?has_systemd}
|
||||
%service_add_post rtkit-daemon.service
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if 0%{?has_systemd}
|
||||
%service_del_postun rtkit-daemon.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -75,5 +103,9 @@ dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesk
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
|
||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
||||
%{_mandir}/man8/rtkitctl.*
|
||||
%if 0%{?has_systemd}
|
||||
%{_unitdir}/rtkit-daemon.service
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user