Discover external tool settings and refresh cached settings UI
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Name: fedora-tools-settings
|
||||
Version: 0.1.0
|
||||
Release: 7%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Plasma System Settings module for Fedora Tools
|
||||
|
||||
License: MIT
|
||||
@@ -36,7 +36,15 @@ tools after administrator authorization.
|
||||
|
||||
%build
|
||||
%cmake
|
||||
%cmake_build
|
||||
# RCC otherwise gives every revision built on the same changelog date the
|
||||
# same timestamp, allowing Qt to reuse an older QML disk cache. Keep the
|
||||
# resource stamp reproducible, but make it depend on the actual UI contents.
|
||||
qml_checksum=$(find src/ui -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum)
|
||||
(
|
||||
unset SOURCE_DATE_EPOCH
|
||||
export QT_RCC_SOURCE_DATE_OVERRIDE=$((16#${qml_checksum:0:8}))
|
||||
%cmake_build
|
||||
)
|
||||
|
||||
%check
|
||||
%ctest
|
||||
@@ -48,6 +56,13 @@ install -Dpm 0644 %{SOURCE1} \
|
||||
install -Dpm 0644 %{SOURCE2} \
|
||||
%{buildroot}%{_docdir}/%{name}/README.md
|
||||
|
||||
%post
|
||||
# Releases through 0.1.0-7 let privileged DNF processes inherit KAuth's
|
||||
# restrictive umask. Restore DNF's standard permissions on files they created.
|
||||
for file in environments.toml groups.toml modules.toml nevras.toml packages.toml system.toml; do
|
||||
test ! -e "%{_prefix}/lib/sysimage/libdnf5/$file" || chmod 0644 "%{_prefix}/lib/sysimage/libdnf5/$file"
|
||||
done
|
||||
|
||||
%files
|
||||
%license %{_licensedir}/%{name}/LICENSE
|
||||
%doc %{_docdir}/%{name}/README.md
|
||||
@@ -59,6 +74,18 @@ install -Dpm 0644 %{SOURCE2} \
|
||||
%{_datadir}/polkit-1/actions/se.ajpanton.fedoratools.policy
|
||||
|
||||
%changelog
|
||||
* Mon Sep 07 2026 fedora-tools contributors - 0.1.0-11
|
||||
- Invalidate cached QML whenever the embedded settings pages change
|
||||
|
||||
* Sun Sep 06 2026 fedora-tools contributors - 0.1.0-10
|
||||
- Discover configuration applications registered by installed tools
|
||||
|
||||
* Sun Sep 06 2026 fedora-tools contributors - 0.1.0-9
|
||||
- Open the Panel Actions widget's native per-panel configuration
|
||||
|
||||
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-8
|
||||
- Preserve standard permissions on DNF system-state files
|
||||
|
||||
* Sat Sep 05 2026 fedora-tools contributors - 0.1.0-7
|
||||
- Use the DNF upgrade transaction for installed tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user