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