update to version 0.13

This commit is contained in:
li weigang 2023-10-19 16:37:26 +08:00
parent b1c51a8ac8
commit 6b6ab807c3
4 changed files with 15 additions and 23 deletions

Binary file not shown.

View File

@ -1,12 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 5a77363..45721a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,6 +112,7 @@ CC="$PTHREAD_CC"
AC_SEARCH_LIBS([sched_setscheduler], [rt])
AC_SEARCH_LIBS([clock_gettime], [rt])
+AC_SEARCH_LIBS([mq_getattr], [rt])
AC_SEARCH_LIBS([cap_init], [cap])
PKG_CHECK_MODULES(DBUS, dbus-1)

View File

@ -1,15 +1,15 @@
%global revision 20161005
Name: rtkit
Version: 0.11
Release: 27
Version: 0.13
Release: 1
Summary: REALTIMEKIT Realtime Policy and Watchdog Daemon
License: GPLv3+ and BSD
URL: http://git.0pointer.de/
Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
URL: https://github.com/heftig/rtkit
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Patch0001: rtkit-mq_getattr.patch
BuildRequires: systemd dbus-devel libcap-devel polkit-devel libtool autoconf automake
BuildRequires: vim-common
Requires: dbus polkit
%systemd_requires
@ -29,15 +29,12 @@ be used by normal user processes.
%build
autoreconf -vif
export CFLAGS="%{optflags} -Wno-error=format-security"
%configure --with-systemdsystemunitdir=%{_unitdir}
%configure --with-systemdsystemunitdir=%{_unitdir} --libexecdir=%{_libexecdir}/rtkit
%make_build V=1
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
%install
make install DESTDIR=%{buildroot}
mkdir %{buildroot}%{_datadir}/dbus-1/interfaces/
cp %{_builddir}/%{name}-%{version}/org.freedesktop.RealtimeKit1.xml \
%{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
%pre
getent group rtkit >/dev/null 2>&1 || groupadd -r -g 172 rtkit
@ -59,18 +56,25 @@ dbus-send --system --type=method_call \
%files
%doc rtkit.c rtkit.h README
%license GPL LICENSE
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
%attr(0755,root,root) %{_libexecdir}/rtkit-daemon
%attr(0755,root,root) %{_libexecdir}/rtkit/rtkit-daemon
%attr(0755,root,root) %{_sbindir}/rtkitctl
%attr(0644,root,root) %{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/polkit-1/actions/*.policy
%{_unitdir}/rtkit-daemon.service
%{_libexecdir}/rtkit/installed-tests/rtkit/rtkit-test
%{_datadir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
%files help
%{_mandir}/man8/rtkitctl.8.gz
%changelog
* Thu Oct 19 2023 li weigang - <weigangli99@gmail.com> - 0.13-1
- Type: update
- ID: NA
- SUG: NA
- DESC: update to version 0.13
* Fri Sep 11 2020 chengguipeng<chengguipeng1@huawei.com> - 0.11-27
- Type:bugfix
- ID:NA

BIN
v0.13.tar.gz Normal file

Binary file not shown.