1 Star 0 Fork 10

tianlijing/rtkit

forked from src-openEuler/rtkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rtkit.spec 3.07 KB
一键复制 编辑 原始数据 按行查看 历史
tianlijing 提交于 2022-08-08 02:31 . update to 0.13
%global revision 20161005
Name: rtkit
Version: 0.13
Release: 1
Summary: REALTIMEKIT Realtime Policy and Watchdog Daemon
License: GPLv3+ and BSD
URL: http://git.0pointer.de/
Source0: https://github.com/heftig/rtkit/archive/refs/tags/v0.13.tar.gz
BuildRequires: systemd dbus-devel libcap-devel polkit-devel libtool autoconf automake
Requires: dbus polkit
%systemd_requires
%package_help
%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.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -vif
export CFLAGS="%{optflags} -Wno-error=format-security"
%configure --with-systemdsystemunitdir=%{_unitdir}
%make_build V=1
./rtkit-daemon --introspect > org.freedesktop.RealtimeKit1.xml
%install
%define _unpackaged_files_terminate_build 0
make install DESTDIR=%{buildroot}
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
getent passwd rtkit >/dev/null 2>&1 || useradd -r -l -u 172 -g rtkit \
-d /proc -s /sbin/nologin -c "RealtimeKit" rtkit
:;
%post
%systemd_post %{name}-daemon.service
dbus-send --system --type=method_call \
--dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
%preun
%systemd_preun %{name}-daemon.service
%postun
%systemd_postun_with_restart %{name}-daemon.service
%files
%doc rtkit.c rtkit.h README
%license GPL LICENSE
%attr(0755,root,root) %{_libexecdir}/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
%files help
%{_mandir}/man8/rtkitctl.8.gz
%changelog
* Sun Sep 11 2022 tianlijing <tianlijing@kylinos.cn> - 0.13-1
- update to 0.13
* Fri Sep 11 2020 chengguipeng<chengguipeng1@huawei.com> - 0.11-27
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.11-26
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.11-25
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:bugfix about spec
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.11-24
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Tue Oct 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.11-23
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix missing arguments after systemd_postun
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.11-22
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:change the directory of the license files
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.11-21
- Package Init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tianlijing/rtkit.git
git@gitee.com:tianlijing/rtkit.git
tianlijing
rtkit
rtkit
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385