Name: nabu-flashlight-integration Version: 1.0.0 Release: 4%{?dist} Summary: Xiaomi Pad 5 flashlight integration for Plasma and GNOME License: GPL-3.0-or-later URL: https://copr.fedorainfracloud.org/coprs/mcc45tr/nabu-linux/ Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: python3 Requires: feedbackd %description A narrowly scoped native flashlight controller plus stock Plasma 6 and GNOME Shell integrations for the Xiaomi Pad 5. It uses the kernel LED class ABI and does not patch either desktop environment or run a persistent service. %package plasma Summary: Plasma 6 widget for the Nabu flashlight Requires: %{name}%{?_isa} = %{version}-%{release} Requires: plasma-workspace Requires: plasma5support %description plasma Plasma 6 panel/desktop widget for the Xiaomi Pad 5 flashlight. %package gnome Summary: GNOME Shell quick setting for the Nabu flashlight Requires: %{name}%{?_isa} = %{version}-%{release} Requires: gnome-shell %description gnome GNOME Shell Quick Settings extension for the Xiaomi Pad 5 flashlight. %prep %autosetup %build %{__cc} %{build_cflags} %{build_ldflags} -o nabu-flashlight src/nabu-flashlight.c %install install -Dpm2755 nabu-flashlight %{buildroot}%{_libexecdir}/nabu-flashlight install -d %{buildroot}%{_datadir}/plasma/plasmoids/org.senemos.nabu.flashlight cp -a plasma/. %{buildroot}%{_datadir}/plasma/plasmoids/org.senemos.nabu.flashlight/ install -Dpm0644 plasma-update/org.senemos.nabu.flashlight.js \ %{buildroot}%{_datadir}/plasma/shells/org.kde.plasma.desktop/contents/updates/org.senemos.nabu.flashlight.js install -d %{buildroot}%{_datadir}/gnome-shell/extensions/nabu-flashlight@senemos.org cp -a gnome/. %{buildroot}%{_datadir}/gnome-shell/extensions/nabu-flashlight@senemos.org/ %check test "$(stat -c '%%a' %{buildroot}%{_libexecdir}/nabu-flashlight)" = 2755 python3 -m json.tool plasma/metadata.json >/dev/null python3 -m json.tool gnome/metadata.json >/dev/null %files %attr(2755,root,feedbackd) %{_libexecdir}/nabu-flashlight %files plasma %{_datadir}/plasma/plasmoids/org.senemos.nabu.flashlight/ %{_datadir}/plasma/shells/org.kde.plasma.desktop/contents/updates/org.senemos.nabu.flashlight.js %files gnome %{_datadir}/gnome-shell/extensions/nabu-flashlight@senemos.org/ %changelog * Fri Aug 28 2026 Senen OS - 1.0.0-4 - Use the Plasma 6 scripting API for System Tray registration - Mark the plasmoid as tray-loadable and avoid an inherited QML property clash * Fri Aug 28 2026 SENEMOS Nabu - 1.0.0-3 - Add hardware-limited brightness controls and coordinated dual-LED support. * Fri Aug 28 2026 SENEMOS Nabu - 1.0.0-2 - Refresh the Plasma indicator when another client changes the LED. * Fri Aug 28 2026 SENEMOS Nabu - 1.0.0-1 - Add service-free Plasma and GNOME flashlight controls.