3 %bcond_without docs # Don't build man page (requires go arch)
8 Summary: OCI container runtime monitor
13 Group: Applications/System
14 #Source0Download: https://github.com/containers/conmon/releases
15 Source0: https://github.com/containers/conmon/archive/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: ecbec90ad0870e12de7adbb53416f383
17 URL: https://github.com/containers/conmon
18 BuildRequires: glib2-devel
19 %{?with_docs:BuildRequires: go-md2man}
20 BuildRequires: libseccomp-devel >= 2.5.2
21 BuildRequires: pkgconfig
22 BuildRequires: systemd-devel
23 Requires: libseccomp >= 2.5.2
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Conmon is a monitoring program and communication tool between a
28 container manager (like Podman or CRI-O) and an OCI runtime (like runc
29 or crun) for a single container.
34 %{__rm} -r tools/vendor
37 # prevent build of go-md2man
38 install -d tools/build
39 : > tools/build/go-md2man
42 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
43 LDLAGS="%{rpmldflags}" \
47 GOMD2MAN=/usr/bin/go-md2man
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} install.bin \
54 DESTDIR=$RPM_BUILD_ROOT \
57 LIBEXECDIR=%{_libexecdir}
60 %{__make} -C docs install \
61 DESTDIR=$RPM_BUILD_ROOT \
64 LIBEXECDIR=%{_libexecdir}
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc README.md changelog.txt
73 %attr(755,root,root) %{_bindir}/conmon
74 %{?with_docs:%{_mandir}/man8/conmon.8*}