From e49611d876fcc9cf98de254c3bb470d998f8125c Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Wed, 17 Jun 2026 10:09:55 +0200 Subject: [PATCH] chore (asusctl): define %{asus_system_units} (#13138) (cherry picked from commit 1c04a2a57127b941675728d3116a1cfbe63353da) --- anda/system/asusctl/asusctl.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/anda/system/asusctl/asusctl.spec b/anda/system/asusctl/asusctl.spec index c56d89f4f5..fb4034f5d4 100644 --- a/anda/system/asusctl/asusctl.spec +++ b/anda/system/asusctl/asusctl.spec @@ -1,9 +1,11 @@ %global debug_package %{nil} %global appid org.asus_linux.rog_control_center +%global asus_system_units asusd.service asus-shutdown.service + Name: asusctl Version: 6.3.8 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Summary: A control daemon, CLI tools, and a collection of crates for interacting with ASUS ROG laptops URL: https://gitlab.com/asus-linux/asusctl @@ -93,16 +95,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/asusd %{_datadir}/asusd/ %post -%systemd_post asusd.service -%systemd_post asus-shutdown.service +%systemd_post %{asus_system_units} %preun -%systemd_preun asusd.service -%systemd_preun asus-shutdown.service +%systemd_preun %{asus_system_units} %postun -%systemd_postun_with_restart asusd.service -%systemd_postun_with_restart asus-shutdown.service +%systemd_postun_with_restart %{asus_system_units} %files rog-gui %{_bindir}/rog-control-center @@ -112,6 +111,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/asusd %{_metainfodir}/%{appid}.metainfo.xml %changelog +* Wed Jun 17 2026 Owen Zimmerman - 6.3.8-2 +- define %{asus_system_units} to make rhe spec a bit cleaner +- and only call %%systemd_* once + * Fri May 08 2026 Owen Zimmerman - 6.3.7-3 - Use new macros, clean some stuff up