e01b86
%global with_debug 0
e01b86
%global with_check 0
e01b86
e01b86
%if 0%{?with_debug}
e01b86
%global _find_debuginfo_dwz_opts %{nil}
e01b86
%global _dwz_low_mem_die_limit 0
e01b86
%else
e01b86
%global debug_package %{nil}
e01b86
%endif
e01b86
e01b86
%global provider github
e01b86
%global provider_tld com
e01b86
%global project containers
e01b86
%global repo conmon
e01b86
# https://github.com/containers/conmon
e01b86
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
e01b86
%global commit0 5ca7df27cb3a6f1edaab1a40fcc61cc6c16d9308
e01b86
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
e01b86
%global git0 https://%{import_path}
e01b86
e01b86
Name: %{repo}
e01b86
Epoch: 2
e01b86
Version: 2.0.8
e01b86
Release: 1%{?dist}
e01b86
Summary: OCI container runtime monitor
e01b86
License: ASL 2.0
e01b86
URL: %{git0}
e01b86
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
e01b86
BuildRequires: gcc
e01b86
BuildRequires: git
e01b86
BuildRequires: glib2-devel
e01b86
BuildRequires: systemd-devel
e01b86
e01b86
%description
e01b86
%{summary}.
e01b86
e01b86
%prep
e01b86
%autosetup -Sgit -n %{name}-%{commit0}
e01b86
e01b86
%build
e01b86
%{__make} all
e01b86
e01b86
%install
e01b86
%{__make} PREFIX=%{buildroot}%{_prefix} install
e01b86
e01b86
#define license tag if not already defined
e01b86
%{!?_licensedir:%global license %doc}
e01b86
e01b86
%files
e01b86
%license LICENSE
e01b86
%doc README.md
e01b86
%{_bindir}/%{name}
e01b86
e01b86
%changelog
e01b86
* Mon Dec 16 2019 Jindrich Novy <jnovy@redhat.com> - 2.0.8-1
e01b86
- update to 2.0.8
e01b86
e01b86
* Wed Dec 11 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.6-1
e01b86
- import conmon 2.0.6 to extras-rhel-7.8