# # spec file for package kmon # # Copyright (c) 2022-2024, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: kmon Version: 1.7.1 Release: 0 Summary: Interactive kernel monitor that combines dmesg and kmod License: GPL-3.0-only Group: System/Monitoring URL: https://kmon.cli.rs/ #Git-Clone: https://github.com/orhun/kmon.git Source: https://github.com/orhun/kmon/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: vendor.tar.zst BuildRequires: cargo >= 1.83 BuildRequires: pkgconfig BuildRequires: cargo-packaging BuildRequires: pkgconfig(xcb) %description Interactive kernel monitor that combines dmesg and kmod. %package bash-completion Summary: Bash Completion for %{name} Group: Productivity/Networking/Diagnostic Requires: %{name} = %{version} Requires: bash-completion Supplements: (%{name} and bash-completion) BuildArch: noarch %description bash-completion Bash completion script for %{name}. %prep %autosetup -p 1 -a 1 %build %{cargo_build} %install cargo install --no-track --root=%{buildroot}%{_prefix} --path . install -Dm 0644 target/man/kmon.8 %{buildroot}%{_mandir}/man8/kmon.8 install -Dm 0644 target/completions/kmon.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} %files %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/kmon %{_mandir}/man8/kmon.8%{?ext_man} %files bash-completion %{_datadir}/bash-completion/completions/%{name} %changelog