forked from containers/conmon-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conmon-rs.spec.rpkg
56 lines (44 loc) · 1.19 KB
/
conmon-rs.spec.rpkg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# The following tag is to get correct syntax highlighting for this file in vim text editor
# vim: syntax=spec
# This spec file is used for automatic rebuilds in COPR
# This is not the official spec file for any distro
%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: {{{ git_dir_name }}}
Epoch: 101
Version: {{{ git_dir_version }}}
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
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
# CentOS Stream doesn't have capnproto yet.
# It's built separately on the copr.
BuildRequires: capnproto
BuildRequires: cargo
BuildRequires: git-core
BuildRequires: make
BuildRequires: protobuf-compiler
Provides: %{bin_name}
ExclusiveArch: %{rust_arches}
%global _description %{expand:
%{summary}}
%description %{_description}
%prep
{{{ git_dir_setup_macro }}}
%build
%{__make} release
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
%files
%license LICENSE
%{_bindir}/%{bin_name}
%changelog
{{{ git_dir_changelog }}}