]>
Commit | Line | Data |
---|---|---|
b7b5a8d1 JP |
1 | Summary: OCI container runtime monitor |
2 | Name: conmon | |
82017256 | 3 | Version: 2.1.1 |
b7b5a8d1 JP |
4 | Release: 1 |
5 | License: Apache v2.0 | |
6 | Group: Applications/System | |
7 | #Source0Download: https://github.com/containers/conmon/releases | |
8 | Source0: https://github.com/containers/conmon/archive/v%{version}/%{name}-%{version}.tar.gz | |
82017256 | 9 | # Source0-md5: e91e50433c28ce317d3d7ab3d78ab22d |
b7b5a8d1 JP |
10 | URL: https://github.com/containers/conmon |
11 | BuildRequires: glib2-devel | |
4e3ace04 | 12 | BuildRequires: go-md2man |
4f623481 | 13 | BuildRequires: libseccomp-devel |
b7b5a8d1 JP |
14 | BuildRequires: pkgconfig |
15 | BuildRequires: systemd-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Conmon is a monitoring program and communication tool between a | |
20 | container manager (like Podman or CRI-O) and an OCI runtime (like runc | |
21 | or crun) for a single container. | |
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | ||
4e3ace04 JP |
26 | %{__rm} -r tools/vendor |
27 | ||
b7b5a8d1 | 28 | %build |
4e3ace04 JP |
29 | # prevent build of go-md2man |
30 | install -d tools/build | |
31 | : > tools/build/go-md2man | |
b7b5a8d1 JP |
32 | %{__make} \ |
33 | CC="%{__cc}" \ | |
34 | CFLAGS="%{rpmcppflags} %{rpmcflags}" \ | |
4e3ace04 JP |
35 | LDLAGS="%{rpmldflags}" \ |
36 | ||
37 | %{__make} docs \ | |
38 | GOMD2MAN=/usr/bin/go-md2man | |
b7b5a8d1 JP |
39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT \ | |
45 | PREFIX=%{_prefix} \ | |
46 | BINDIR=%{_bindir} \ | |
47 | LIBEXECDIR=%{_libexecdir} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README.md changelog.txt | |
55 | %attr(755,root,root) %{_bindir}/conmon | |
4400995e | 56 | %{_mandir}/man8/conmon.8* |