]> git.pld-linux.org Git - packages/conmon.git/blame - conmon.spec
up to 2.1.1
[packages/conmon.git] / conmon.spec
CommitLineData
b7b5a8d1
JP
1Summary: OCI container runtime monitor
2Name: conmon
82017256 3Version: 2.1.1
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
82017256 9# Source0-md5: e91e50433c28ce317d3d7ab3d78ab22d
b7b5a8d1
JP
10URL: https://github.com/containers/conmon
11BuildRequires: glib2-devel
4e3ace04 12BuildRequires: go-md2man
4f623481 13BuildRequires: libseccomp-devel
b7b5a8d1
JP
14BuildRequires: pkgconfig
15BuildRequires: systemd-devel
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Conmon is a monitoring program and communication tool between a
20container manager (like Podman or CRI-O) and an OCI runtime (like runc
21or crun) for a single container.
22
23%prep
24%setup -q
25
4e3ace04
JP
26%{__rm} -r tools/vendor
27
b7b5a8d1 28%build
4e3ace04
JP
29# prevent build of go-md2man
30install -d tools/build
31: > tools/build/go-md2man
b7b5a8d1
JP
32%{__make} \
33 CC="%{__cc}" \
34 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
4e3ace04
JP
35 LDLAGS="%{rpmldflags}" \
36
37%{__make} docs \
38 GOMD2MAN=/usr/bin/go-md2man
b7b5a8d1
JP
39
40%install
41rm -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
50rm -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
4400995e 56%{_mandir}/man8/conmon.8*
This page took 0.113834 seconds and 4 git commands to generate.