Name: nabu-flashlight-integration Version: 1.0.0 Release: 7%{?dist} Summary: Xiaomi Pad 5 tablet controls 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 Requires: polkit %description A narrowly scoped native hardware controller plus stock Plasma 6 and GNOME Shell integrations for the Xiaomi Pad 5. It uses kernel and desktop public APIs, does not patch either desktop environment and runs no persistent service. %package plasma Summary: Plasma 6 Tablet Control widget for Nabu Requires: %{name}%{?_isa} = %{version}-%{release} Requires: plasma-workspace Requires: plasma5support %description plasma Kirigami Plasma 6 System Tray widget for Xiaomi Pad 5 tablet controls. %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 %{__cc} %{build_cflags} %{build_ldflags} -o nabu-usb-role src/nabu-usb-role.c %install install -Dpm2755 nabu-flashlight %{buildroot}%{_libexecdir}/nabu-flashlight install -Dpm0755 nabu-usb-role %{buildroot}%{_libexecdir}/nabu-usb-role install -d %{buildroot}%{_bindir} ln -s %{_libexecdir}/nabu-flashlight %{buildroot}%{_bindir}/nabu-flashlightctl ln -s %{_libexecdir}/nabu-usb-role %{buildroot}%{_bindir}/nabu-usb-role install -Dpm0644 polkit/org.senemos.nabu.tablet-control.policy \ %{buildroot}%{_datadir}/polkit-1/actions/org.senemos.nabu.tablet-control.policy 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 test "$(stat -c '%%a' %{buildroot}%{_libexecdir}/nabu-usb-role)" = 755 grep -Fq '/usr/libexec/nabu-usb-role' \ %{buildroot}%{_datadir}/polkit-1/actions/org.senemos.nabu.tablet-control.policy 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 %{_libexecdir}/nabu-usb-role %{_bindir}/nabu-flashlightctl %{_bindir}/nabu-usb-role %{_datadir}/polkit-1/actions/org.senemos.nabu.tablet-control.policy %doc API.md %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-7 - Use an explicit Plasmoid property in the expanded-state handler. * Fri Aug 28 2026 Senen OS - 1.0.0-6 - Ignore KScreen ANSI formatting when reading display automation state. * Fri Aug 28 2026 Senen OS - 1.0.0-5 - Evolve the Plasma widget into Kirigami Tablet Control. - Publish the safe flashlight CLI and add polkit-gated USB-C role requests. * 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.