From f5398e955d4ae4f8d4aa697e5da9e06e5baaf722 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:31:14 +0100 Subject: [PATCH] update to 20220923 [release 20220923-1mamba;Wed Sep 28 2022] --- rtirq.spec | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/rtirq.spec b/rtirq.spec index 07c0f3d..3ad92a2 100644 --- a/rtirq.spec +++ b/rtirq.spec @@ -1,18 +1,17 @@ Name: rtirq -Version: 20210329 +Version: 20220923 Release: 1mamba Summary: A script that configures a Real Time kernel IRQs for low audio latency Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba -Packager: Silvan Calarco -URL: https://www.rncbc.org/jack/ +Packager: Silvan Calarco +URL: https://www.rncbc.org/drupal/ Source: https://www.rncbc.org/archive/rtirq-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN -BuildRequires: schedutils ## AUTOBUILDREQ-END -Requires: schedutils +Requires: schedutils %description A script that configures a Real Time kernel IRQs for low audio latency. @@ -24,34 +23,40 @@ A script that configures a Real Time kernel IRQs for low audio latency. %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -install -vD rtirq.sh -m 0755 %{buildroot}/etc/init.d/rtirq -install -vD rtirq.conf -m 0644 %{buildroot}/etc/sysconfig/rtirq +install -D -m0755 rtirq.sh %{buildroot}%{_sbindir}/rtirq +install -D -m0644 rtirq.conf %{buildroot}%{_sysconfdir}/rtirq.conf +install -D -m0644 *.service -t %{buildroot}%{_unitdir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -if [ $1 -eq 1 ]; then - # new install - service rtirq start - /sbin/chkconfig --add rtirq -fi -exit 0 - %preun -# erase -if [ $1 -eq 0 ]; then - /sbin/chkconfig --del rtirq - service rtirq stop -fi -exit 0 +%systemd_preun rtirq +%systemd_preun rtirq-resume +: + +%post +%systemd_post rtirq +%systemd_post rtirq-resume +: + +%postun +%systemd_postun rtirq +%systemd_postun rtirq-resume +: %files %defattr(-,root,root) -%config /etc/sysconfig/rtirq -/etc/init.d/rtirq +%config(noreplace) %{_sysconfdir}/rtirq.conf +%{_sbindir}/rtirq +%{_unitdir}/rtirq-resume.service +%{_unitdir}/rtirq.service +%doc LICENSE %changelog +* Wed Sep 28 2022 Silvan Calarco 20220923-1mamba +- update to 20220923 + * Thu Apr 01 2021 Automatic Build System 20210329-1mamba - automatic version update by autodist