From 1554dbc3b65f479e6fcbf6445b0bb0a8d05c8cc0 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 29 Nov 2025 21:14:25 -0800 Subject: [PATCH] fix(wluma): package systemd service, config, and udev rules (#7786) (#7789) --- anda/system/wluma/wluma.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/anda/system/wluma/wluma.spec b/anda/system/wluma/wluma.spec index b1e5af075b..55eb07ede3 100644 --- a/anda/system/wluma/wluma.spec +++ b/anda/system/wluma/wluma.spec @@ -1,11 +1,11 @@ Name: wluma Version: 4.10.0 -Release: 1%?dist +Release: 2%?dist Summary: Automatic brightness adjustment based on screen contents and ALS URL: https://github.com/max-baz/wluma Source0: %{url}/archive/refs/tags/%{version}.tar.gz License: ISC -BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold v4l-utils libv4l-devel rust-libudev-devel vulkan-loader-devel dbus-devel clang +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold v4l-utils libv4l-devel rust-libudev-devel vulkan-loader-devel dbus-devel clang systemd-rpm-macros Packager: Its-J %description @@ -22,13 +22,31 @@ Packager: Its-J %cargo_install %cargo_license_summary_online %{cargo_license_online -a} > LICENSE.dependencies +install -Dm 644 %{name}.service %{buildroot}%{_userunitdir}/%{name}.service +install -Dm 644 90-%{name}-backlight.rules %{buildroot}%{_udevrulesdir}/90-%{name}-backlight.rules +install -Dm 644 config.toml %{buildroot}%{_datadir}/%{name}/config.toml + +%post +%systemd_user_post %{name}.service + +%preun +%systemd_user_preun %{name}.service + +%postun +%systemd_user_postun_with_restart %{name}.service %files %doc README.md %license LICENSE %license LICENSE.dependencies %{_bindir}/wluma +%{_userunitdir}/%{name}.service +%{_udevrulesdir}/90-%{name}-backlight.rules +%{_datadir}/%{name}/config.toml %changelog +* Sat Nov 29 2025 metcya +- Package systemd service, example config, and udev rules + * Fri Nov 28 2025 Its-J - Package wluma