* Release 0.11.0 * Update crate tempfile 3.15 -> 3.22 (#8262) * Upgrade rtnetlink and friends * Edition 2024 cleanup: rename `expr_2021` -> `expr` * Update tokio 1.46-1 -> 1.47.1 and tokio-openssl 1.6.1 -> 1.6.5 * Use __type macro in BPF map definitions * Point ethtool crate to specific revision * Add raw-value feature to serde-json * Adding collectd and sysstat tool to comparsion docs (#8259) * Update clap (4.5.41 -> 4.5.42) /clap_complete (4.5.50 -> 4.5.55) * Add ViewRc::process_view_default_tree to select the default process view style between tree/flat * Upgrade to 0.30 * Update serde 1.0.185 -> 1.0.219 * adding crossterm serde for scxtop import * third-party/rust: Make once-cell usable in no-std * Make libbpf-rs 0.26.0-beta.0 the default * Fix commented out code * Implement process tree view * Support memory.oom.group cgroup property * apply rustfix lints * Use into_path() instead of keep() * Update futures 0.3.30 -> 0.3.31 * Update bytes 1.9.0 -> 1.10 * Update bitflags * Update clap4 4.5.38 -> 4.5.41 * Show process processor OBS-URL: https://build.opensuse.org/package/show/utilities/below?expand=0&rev=10
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package below
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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: below
|
|
Version: 0.11.0~0
|
|
Release: 0
|
|
Summary: A time traveling resource monitor for modern Linux systems
|
|
License: Apache-2.0
|
|
URL: https://github.com/facebookincubator/below
|
|
Source0: %{name}-%{version}.tar.zst
|
|
Source1: vendor.tar.zst
|
|
Patch0: 001-harden-systemd-unit.patch
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: clang-devel
|
|
BuildRequires: libelf-devel
|
|
BuildRequires: systemd-rpm-macros
|
|
Recommends: logrotate
|
|
ExclusiveArch: %{rust_tier1_arches}
|
|
|
|
%description
|
|
below is an interactive tool to view and record historical system data. It has support for:
|
|
|
|
- information regarding hardware resource utilization
|
|
- viewing the cgroup hierarchy
|
|
- cgroup and process information
|
|
- pressure stall information (PSI)
|
|
- record mode to record system data
|
|
- replay mode to replay historical system data
|
|
- live mode to view live system data
|
|
- dump subcommand to report script-friendly information (e.g. JSON and CSV)
|
|
|
|
below does not have support for cgroup1.
|
|
|
|
%pre
|
|
%service_add_pre %{name}.service
|
|
|
|
%post
|
|
%service_add_post %{name}.service
|
|
|
|
%preun
|
|
%service_del_preun %{name}.service
|
|
|
|
%postun
|
|
%service_del_postun %{name}.service
|
|
|
|
%prep
|
|
%autosetup -p1 -a1
|
|
|
|
%build
|
|
%{cargo_build}
|
|
|
|
%check
|
|
|
|
%install
|
|
install -D -m0644 %{_builddir}/%{name}-%{version}%{_sysconfdir}/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
|
install -D -p -m0644 %{_builddir}/%{name}-%{version}%{_sysconfdir}/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
|
install -D -d -m0755 %{buildroot}%{_bindir}
|
|
install -m0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
|
|
install -d -m1755 %{buildroot}%{_localstatedir}/log/%{name}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/%{name}
|
|
%{_unitdir}/%{name}.service
|
|
%dir %{_sysconfdir}/logrotate.d
|
|
%dir %{_localstatedir}/log/%{name}
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%changelog
|