]> git.pld-linux.org Git - packages/conmon.git/blame - conmon.spec
up to 2.1.5
[packages/conmon.git] / conmon.spec
CommitLineData
b7b5a8d1
JP
1Summary: OCI container runtime monitor
2Name: conmon
4ec36344 3Version: 2.1.5
b7b5a8d1
JP
4Release: 1
5License: Apache v2.0
6Group: Applications/System
7#Source0Download: https://github.com/containers/conmon/releases
8Source0: https://github.com/containers/conmon/archive/v%{version}/%{name}-%{version}.tar.gz
4ec36344 9# Source0-md5: 9d90964dd164561d8eebc744a844e6e2
b7b5a8d1
JP
10URL: https://github.com/containers/conmon
11BuildRequires: glib2-devel
4e3ace04 12BuildRequires: go-md2man
3054352d 13BuildRequires: libseccomp-devel >= 2.5.2
b7b5a8d1
JP
14BuildRequires: pkgconfig
15BuildRequires: systemd-devel
3054352d 16Requires: libseccomp >= 2.5.2
b7b5a8d1
JP
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Conmon is a monitoring program and communication tool between a
21container manager (like Podman or CRI-O) and an OCI runtime (like runc
22or 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
31install -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
42rm -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
51rm -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*
This page took 0.145222 seconds and 4 git commands to generate.