# The following tag is to get correct syntax highlighting for this file in vim text editor # vim: syntax=spec %global with_debug 0 %if 0%{?with_debug} %global _find_debuginfo_dwz_opts %{nil} %global _dwz_low_mem_die_limit 0 %else %global debug_package %{nil} %endif %global bin_name conmonrs Name: conmon-rs Version: 0.5.1 Release: 1%{?dist} Summary: Container monitor in Rust License: ASL 2.0 and BSD and ISC and MIT URL: https://github.com/containers/conmon-rs Source0: https://github.com/containers/conmon-rs/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/containers/conmon-rs/releases/download/v%{version}/conmonrs-v%{version}-vendor.tar.gz BuildRequires: capnproto BuildRequires: cargo BuildRequires: git-core BuildRequires: make BuildRequires: protobuf-compiler %if 0%{?rhel} BuildRequires: rust-toolset %else BuildRequires: rust-packaging %endif Provides: %{bin_name} ExclusiveArch: %{rust_arches} %description %{summary}. %prep %autosetup -n %{name}-%{version} %if 0%{?rhel} %cargo_prep -V 1 %else %cargo_prep %endif %if !0%{?rhel} %generate_buildrequires %cargo_generate_buildrequires %endif %build %{__make} release %install %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install %files %license LICENSE %{_bindir}/%{bin_name} %changelog * Thu May 25 2023 Christian Glombek - 0.5.1-1 - Initial Release