File systeroid.spec of Package systeroid
#
# spec file for package systeroid
#
# Copyright (c) 2022 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/
#
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
Name: systeroid
Version: 0.4.6
Release: 0
Summary: A more powerful alternative to sysctl(8) with a terminal user interface
License: Apache-2.0 AND MIT
URL: https://systeroid.cli.rs/
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(xcb)
%description
systeroid — A more powerful alternative to sysctl(8).
sysctl(8) is a utility on Unix-like operating systems that is used to read and modify the attributes of the kernel such as its version number, maximum limits, and security settings*. systeroid is "sysctl on steroids". It can do everything that sysctl does and even more. It provides a safer, more performant, and user-friendly CLI/TUI for managing the kernel parameters at runtime.
%prep
%autosetup -a1
%build
%{cargo_build} --all
%install
%{cargo_install -p systeroid}
%{cargo_install -p systeroid-tui}
%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md RELEASE.md CONTRIBUTING.md CODE_OF_CONDUCT.md CHANGELOG.md
%{_bindir}/%{name}
%{_bindir}/%{name}-tui
%changelog