Files
fedora-tools/plasma-always-show-unlock/plasma-always-show-unlock.spec
T

95 lines
3.2 KiB
RPMSpec

Name: plasma-always-show-unlock
Version: 0.1.0
Release: 11%{?dist}
Summary: Immediately show the Plasma unlock prompt without requiring input
License: MIT AND GPL-2.0-or-later
URL: https://git.ajpanton.se/ajp_anton/fedora-tools
Source0: plasma-always-show-unlock
Source1: LockScreenUi.patch
Source2: test-plasma-always-show-unlock
Source3: LockScreenUi.qml
Source4: LICENSE
Source5: README.md
Source6: FedoraToolsFingerprintRetry.qml
Source7: tst_fingerprintretry.qml
BuildArch: noarch
BuildRequires: bash
BuildRequires: patch
BuildRequires: qt6-qtdeclarative-devel
Requires: bash
Requires: patch
Requires: plasma-desktop >= 6.7.4
Provides: fedora-tools-tool
%description
Keeps KDE Plasma's unlock prompt visible when the screen is locked, after the
display is turned off, and after suspend. The package reapplies its narrow QML
patch after plasma-desktop updates and leaves unknown future layouts unchanged.
%prep
%build
%check
bash %{SOURCE2} %{SOURCE0} %{SOURCE1} %{SOURCE3}
mkdir -p qml-tests/tests
cp %{SOURCE6} qml-tests/
cp %{SOURCE7} qml-tests/tests/
QT_QPA_PLATFORM=offscreen QT_QUICK_BACKEND=software \
qmltestrunner-qt6 -input qml-tests/tests
%install
install -Dpm 0755 %{SOURCE0} \
%{buildroot}%{_libexecdir}/plasma-always-show-unlock
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/plasma-always-show-unlock/LockScreenUi.patch
install -Dpm 0644 %{SOURCE4} \
%{buildroot}%{_licensedir}/%{name}/LICENSE
install -Dpm 0644 %{SOURCE5} \
%{buildroot}%{_docdir}/%{name}/README.md
install -Dpm 0644 %{SOURCE6} \
%{buildroot}%{_datadir}/plasma/shells/org.kde.plasma.desktop/contents/lockscreen/FedoraToolsFingerprintRetry.qml
%pre
# Revert using the installed helper and patch, before RPM replaces either.
# The new patch must be applied to the original QML, not an older patched copy.
if [ -x %{_libexecdir}/plasma-always-show-unlock ]; then
%{_libexecdir}/plasma-always-show-unlock revert || exit 1
fi
%preun
if [ "$1" -eq 0 ]; then
%{_libexecdir}/plasma-always-show-unlock revert || :
fi
%triggerin -- plasma-desktop
%{_libexecdir}/plasma-always-show-unlock apply || :
%files
%license %{_licensedir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/README.md
%{_libexecdir}/plasma-always-show-unlock
%{_datadir}/plasma-always-show-unlock/LockScreenUi.patch
%{_datadir}/plasma/shells/org.kde.plasma.desktop/contents/lockscreen/FedoraToolsFingerprintRetry.qml
%changelog
* Mon Sep 14 2026 fedora-tools contributors - 0.1.0-11
- Retry idle fingerprint conversations without polling or restarting fprintd
- Preserve failed-scan handling and test timeout recovery in QML
- Revert the installed patch before upgrading to a new revision
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-10
- Clarify the package summary
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-9
- Advertise the tool to Fedora Tools settings
* Thu Sep 03 2026 fedora-tools contributors - 0.1.0-8
- Keep the prompt visible without continuously restarting authentication
- Retry authentication after resume and the automatic-lock grace period
* Wed Sep 02 2026 fedora-tools contributors - 0.1.0-1
- Initial package