File bustd.spec of Package bustd
#
# spec file for package bustd
#
# Copyright (c) 2024 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/
#
%bcond_without check
Name: bustd
Version: 0.1.1
Release: 0
Summary: Process killer daemon for out-of-memory scenarios
License: MIT
Group: System/Daemons
URL: https://github.com/vrmiguel/bustd
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
ExclusiveArch: %{rust_arches}
%description
bustd is a lightweight process killer daemon for out-of-memory scenarios
for Linux!
%prep
%autosetup -p1 -a1
%build
%{cargo_build}
%install
%{cargo_install}
%if %{with check}
%check
%{cargo_test}
%endif
%files
%doc README.md
%{_bindir}/%{name}
%license LICENSE
%changelog