# The release profile strips the binary, so there is no debug info to extract. %global debug_package %{nil} %global bin_name conmonrs Name: conmon-rs # Copr builds keep a higher Epoch to always win over distro packages. %if %{defined copr_username} Epoch: 101 %endif Version: 1.0.1 Release: 1.20261020113256482971.pr3453.207.gf8a1bca9%{?dist} Summary: OCI container runtime monitor written in Rust License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT URL: https://github.com/containers/%{name} Source0: conmon-rs-1.0.1.tar.gz BuildRequires: capnproto BuildRequires: cargo BuildRequires: make Provides: %{bin_name} = %{?epoch:%{epoch}:}%{version}-%{release} ExclusiveArch: %{rust_arches} %description conmon-rs is a pod level OCI container runtime monitor. It keeps track of the containers of a pod and serves their logs, attach and exec sessions over a Cap'n Proto RPC interface. %prep %autosetup -n conmon-rs-1.0.1 %build # The source tarball has no git metadata, so pass in what --version shows. # Copr builds are packit snapshots of commits which are not tagged, they get # the abbreviated commit packit puts into the Release (".g") instead. %if %{defined copr_username} BUILD_COMMIT=%{lua: print(string.match(rpm.expand("%{release}"), "%.g(%x+)") or "")} %{__make} release %else BUILD_TAG=v%{version} %{__make} release %endif %install %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install %files %license LICENSE %doc README.md %{_bindir}/%{bin_name} %changelog %autochangelog