Name: linspectacles-kernel-ring-buffer Version: 0.0.6 Release: 1%{?dist} Summary: Read-only inspector for the current Linux kernel printk ring buffer, reading /dev/kmsg directly to preserve... License: GPL-3.0-or-later URL: https://github.com/linspectacles/kernel-ring-buffer Vendor: LinSpectacles Packager: brunonlinespace Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3 Requires: python3 Requires: python3-pyqt6 Requires: polkit %description Read-only inspector for the current Linux kernel printk ring buffer, reading /dev/kmsg directly to preserve native record headers, sequence numbers, monotonic timestamps, priorities, facilities, flags, optional caller metadata, machine-readable continuation tags, message text and raw records. %prep %autosetup %build # Pure Python/source applet; no build step is required. %install APPLET_DIR="%{buildroot}%{_libexecdir}/linspectacles/applets/linspectacles_kernel_ring_buffer" install -d "$APPLET_DIR" cp -a . "$APPLET_DIR/" find "$APPLET_DIR" -type d -name __pycache__ -prune -exec rm -rf {} + find "$APPLET_DIR" -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete install -d "%{buildroot}%{_bindir}" cat > "%{buildroot}%{_bindir}/%{name}" <<'APPLET_LAUNCHER' #!/bin/sh exec /usr/bin/python3 "%{_libexecdir}/linspectacles/applets/linspectacles_kernel_ring_buffer/standalone.py" "$@" APPLET_LAUNCHER chmod 0755 "%{buildroot}%{_bindir}/%{name}" install -Dm0755 "kernel_ring_buffer/privileged/linspectacles-kernel-ring-buffer-helper" "%{buildroot}/usr/libexec/linspectacles-kernel-ring-buffer-helper" %check python3 -m compileall -q . %files %dir %{_libexecdir}/linspectacles %dir %{_libexecdir}/linspectacles/applets %license %{_libexecdir}/linspectacles/applets/linspectacles_kernel_ring_buffer/LICENSE %doc %{_libexecdir}/linspectacles/applets/linspectacles_kernel_ring_buffer/README.md %{_libexecdir}/linspectacles/applets/linspectacles_kernel_ring_buffer %{_bindir}/%{name} /usr/libexec/linspectacles-kernel-ring-buffer-helper %changelog * Mon Nov 16 2026 brunonlinespace - 0.0.6-1 - Package Kernel Ring Buffer from its self-describing LinSpectacles applet source.