Blame SPECS/conmon-rs.spec

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