commit rtkit for openSUSE:Factory
Hello community, here is the log from the commit of package rtkit for openSUSE:Factory checked in at 2016-05-05 08:12:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rtkit (Old) and /work/SRC/openSUSE:Factory/.rtkit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rtkit" Changes: -------- --- /work/SRC/openSUSE:Factory/rtkit/rtkit.changes 2015-01-05 04:44:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rtkit.new/rtkit.changes 2016-05-05 08:12:03.000000000 +0200 @@ -1,0 +2,17 @@ +Mon Apr 18 19:58:57 UTC 2016 - mpluskal@suse.com + +- Update to version 0.11+git.20130926: + * Pass uid of caller to polkit + * build-sys: since clock_gettime() moved to libc use mq_open to + check for librt + * systemd: update sd-daemon.[ch] +- Drop upstreamed patches + * rtkit-bnc836939.patch + * rtkit-use-system-sd-daemon.patch +- Add _service +- Cleanup spec file with spec-cleaner +- Drop support for pre systemd ditributions +- Add rc symlink for service +- Use more strict ldflags + +------------------------------------------------------------------- Old: ---- rtkit-0.11_git201205151338.tar.xz rtkit-bnc836939.patch rtkit-use-system-sd-daemon.patch New: ---- rtkit-0.11+git.20130926.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rtkit.spec ++++++ --- /var/tmp/diff_new_pack.ywxJ4w/_old 2016-05-05 08:12:04.000000000 +0200 +++ /var/tmp/diff_new_pack.ywxJ4w/_new 2016-05-05 08:12:04.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rtkit # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,86 +17,71 @@ Name: rtkit +Version: 0.11+git.20130926 +Release: 0 Summary: Realtime Policy and Watchdog Daemon License: GPL-3.0+ and BSD-3-Clause Group: System/Base -Version: 0.11_git201205151338 -Release: 0 -# The daemon itself is GPL v3 or later, the reference implementation for the client BSD-3-Clause -Source: %{name}-%{version}.tar.xz +# The daemon itself is GPL v3 or later, the reference implementation for +# the client BSD-3-Clause Url: http://git.0pointer.de/?p=rtkit.git -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: %{name}-%{version}.tar.xz +Patch2: rtkit-no-cpu-controlgroup.patch BuildRequires: automake -BuildRequires: dbus-1-devel >= 1.2 BuildRequires: libcap-devel -BuildRequires: polkit-devel +BuildRequires: pkg-config BuildRequires: xz -Requires: polkit -PreReq: dbus-1 -%if 0%{?suse_version} > 1140 +BuildRequires: pkgconfig(dbus-1) >= 1.2 BuildRequires: pkgconfig(libsystemd-daemon) -%{?systemd_requires} -%define has_systemd 1 -%endif -Patch0: rtkit-use-system-sd-daemon.patch -# PATCH-FIX-UPSTREAM rtkit-bnc836939.patch sreeves@suse.com -- use of insecure polkit DBUS API -Patch1: rtkit-bnc836939.patch -Patch2: rtkit-no-cpu-controlgroup.patch +BuildRequires: pkgconfig(polkit-agent-1) +BuildRequires: pkgconfig(polkit-gobject-1) +Requires: polkit +Requires(pre): dbus-1 +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -RealtimeKit is a D-Bus system service that changes the -scheduling policy of user processes/threads to SCHED_RR (i.e. realtime -scheduling mode) on request. It is intended to be used as a secure -mechanism to allow real-time scheduling to be used by normal user -processes. +RealtimeKit is a D-Bus system service that changes the scheduling policy of +user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on +request. It is intended to be used as a secure mechanism to allow real-time +scheduling to be used by normal user processes. %prep %setup -q -%patch0 -p1 -%patch1 -p1 %patch2 -p1 %build autoreconf -fiv -export CFLAGS="$RPM_OPT_FLAGS -fPIE" -export LDFLAGS="-pie" -%configure --disable-silent-rules \ -%if 0%{?has_systemd} ---with-systemdsystemunitdir=%{_unitdir} \ -%endif ---libexecdir=%{_libexecdir}/rtkit +export CFLAGS="%{optflags} -fPIE" +export LDFLAGS="-Wl,-z,relro,-z,now -pie" +%configure \ + --disable-silent-rules \ + --with-systemdsystemunitdir=%{_unitdir} \ + --libexecdir=%{_libexecdir}/rtkit make %{?_smp_mflags} ./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml %install -%makeinstall -install -D org.freedesktop.RealtimeKit1.xml $RPM_BUILD_ROOT/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml +make %{?_smp_mflags} DESTDIR=%{buildroot} install +ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcrtkit-daemon +install -D -m 0644 org.freedesktop.RealtimeKit1.xml %{buildroot}/%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml %preun -%if 0%{?has_systemd} %service_del_preun rtkit-daemon.service -%endif %pre groupadd -r rtkit >/dev/null 2>&1 || : -/usr/bin/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 -%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) @@ -108,9 +93,8 @@ %{_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} +%{_mandir}/man8/rtkitctl.8%{ext_man} +%{_sbindir}/rcrtkit-daemon %{_unitdir}/rtkit-daemon.service -%endif %changelog
participants (1)
-
root@hilbert.suse.de