]> git.pld-linux.org Git - packages/conmon.git/blob - conmon.spec
49bca417830956893cfb26ea83c541071c4f40d2
[packages/conmon.git] / conmon.spec
1 Summary:        OCI container runtime monitor
2 Name:           conmon
3 Version:        2.1.0
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:  0d52ac189c948c78e39dc41b6a288c7f
10 URL:            https://github.com/containers/conmon
11 BuildRequires:  glib2-devel
12 BuildRequires:  go-md2man
13 BuildRequires:  libseccomp-devel
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
26 %{__rm} -r tools/vendor
27
28 %build
29 # prevent build of go-md2man
30 install -d tools/build
31 : > tools/build/go-md2man
32 %{__make} \
33         CC="%{__cc}" \
34         CFLAGS="%{rpmcppflags} %{rpmcflags}" \
35         LDLAGS="%{rpmldflags}" \
36
37 %{__make} docs \
38         GOMD2MAN=/usr/bin/go-md2man
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
56 %{_mandir}/man8/conmon.8*
This page took 0.101573 seconds and 2 git commands to generate.