Accepting request 94978 from 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 (forwarded request 94900 from elvigia) OBS-URL: https://build.opensuse.org/request/show/94978 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rtkit?expand=0&rev=11
This commit is contained in:
commit
3cc23db937
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 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ff892fecb350d70cea216e661fb83f8d2912f3ec958f38d67bd16fe13fdb9c1f
|
|
||||||
size 120799
|
|
@ -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
|
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
|
# 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
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: rtkit
|
Name: rtkit
|
||||||
Summary: Realtime Policy and Watchdog Daemon
|
Summary: Realtime Policy and Watchdog Daemon
|
||||||
Version: 0.5
|
Version: 0.10_git201107141740
|
||||||
Release: 6
|
Release: 6
|
||||||
# The daemon itself is GPL v3 or later, the reference implementation for the client BSD
|
# The daemon itself is GPL v3 or later, the reference implementation for the client BSD
|
||||||
License: GPLv3+ ; BSD
|
License: GPLv3+ ; BSD
|
||||||
@ -33,6 +33,11 @@ BuildRequires: libcap-devel
|
|||||||
BuildRequires: polkit-devel
|
BuildRequires: polkit-devel
|
||||||
Requires: polkit
|
Requires: polkit
|
||||||
PreReq: dbus-1
|
PreReq: dbus-1
|
||||||
|
%if 0%{?suse_version} > 1140
|
||||||
|
BuildRequires: systemd
|
||||||
|
%{?systemd_requires}
|
||||||
|
%define has_systemd 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
RealtimeKit is a D-Bus system service that changes the
|
RealtimeKit is a D-Bus system service that changes the
|
||||||
@ -45,8 +50,14 @@ processes.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
./bootstrap.sh
|
||||||
# %configure --libexecdir=$prefix/lib/rtkit
|
# %configure --libexecdir=$prefix/lib/rtkit
|
||||||
%configure --libexecdir=%{_libexecdir}/rtkit
|
%configure \
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
--with-systemdsystemunitdir=%{_unitdir} \
|
||||||
|
%endif
|
||||||
|
--libexecdir=%{_libexecdir}/rtkit
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
|
./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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
%service_del_preun rtkit-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
groupadd -r rtkit &>/dev/null || :
|
groupadd -r rtkit &>/dev/null || :
|
||||||
/usr/bin/id rtkit >/dev/null 2>&1 || \
|
/usr/bin/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 /proc rtkit
|
||||||
|
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
%service_add_pre rtkit-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
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
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%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}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
|
||||||
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
|
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
|
||||||
|
%{_mandir}/man8/rtkitctl.*
|
||||||
|
%if 0%{?has_systemd}
|
||||||
|
%{_unitdir}/rtkit-daemon.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user