]> git.pld-linux.org Git - packages/conmon.git/blob - conmon.spec
5dd33fd0a0dd287a9be727eca3a5e3ece73adf9f
[packages/conmon.git] / conmon.spec
1 Summary:        OCI container runtime monitor
2 Name:           conmon
3 Version:        2.1.4
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
9 # Source0-md5:  84738e50cbefcc10ca3b9ea479540157
10 URL:            https://github.com/containers/conmon
11 BuildRequires:  glib2-devel
12 BuildRequires:  go-md2man
13 BuildRequires:  libseccomp-devel >= 2.5.2
14 BuildRequires:  pkgconfig
15 BuildRequires:  systemd-devel
16 Requires:       libseccomp >= 2.5.2
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
27 %{__rm} -r tools/vendor
28
29 %build
30 # prevent build of go-md2man
31 install -d tools/build
32 : > tools/build/go-md2man
33 %{__make} \
34         CC="%{__cc}" \
35         CFLAGS="%{rpmcppflags} %{rpmcflags}" \
36         LDLAGS="%{rpmldflags}" \
37
38 %{__make} docs \
39         GOMD2MAN=/usr/bin/go-md2man
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
57 %{_mandir}/man8/conmon.8*
This page took 0.110289 seconds and 2 git commands to generate.