2019-09-11 17:22:49 +00:00
|
|
|
%global with_debug 0
|
|
|
|
%global with_check 0
|
|
|
|
|
|
|
|
%if 0%{?with_debug}
|
|
|
|
%global _find_debuginfo_dwz_opts %{nil}
|
|
|
|
%global _dwz_low_mem_die_limit 0
|
|
|
|
%else
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global provider github
|
|
|
|
%global provider_tld com
|
|
|
|
%global project containers
|
|
|
|
%global repo conmon
|
|
|
|
# https://github.com/containers/conmon
|
|
|
|
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
2019-09-25 12:55:42 +00:00
|
|
|
%global commit0 422ce21f1527f7624982748a36601401887aa181
|
2019-09-11 17:22:49 +00:00
|
|
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
|
%global git0 https://%{import_path}
|
|
|
|
|
2019-09-11 17:28:49 +00:00
|
|
|
# Used for comparing with latest upstream tag
|
|
|
|
# to decide whether to autobuild (non-rawhide only)
|
2019-09-25 12:55:42 +00:00
|
|
|
%global built_tag v2.0.1
|
2019-09-11 17:22:49 +00:00
|
|
|
|
|
|
|
Name: %{repo}
|
|
|
|
Epoch: 2
|
2019-09-25 12:55:42 +00:00
|
|
|
Version: 2.0.2
|
|
|
|
Release: 0.1.dev.git%{shortcommit0}%{?dist}
|
2019-09-11 17:22:49 +00:00
|
|
|
Summary: OCI container runtime monitor
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: %{git0}
|
|
|
|
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -Sgit -n %{name}-%{commit0}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__make} all
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} PREFIX=%{buildroot}%{_prefix} install
|
|
|
|
|
|
|
|
#define license tag if not already defined
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2019-09-25 12:55:42 +00:00
|
|
|
* Wed Sep 25 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.2-0.1.dev.git422ce21
|
|
|
|
- build latest upstream master
|
|
|
|
|
2019-09-11 17:22:49 +00:00
|
|
|
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-2
|
|
|
|
- remove BR: go-md2man since no manpages yet
|
|
|
|
|
|
|
|
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-1
|
|
|
|
- bump to v2.0.0
|
|
|
|
|
|
|
|
* Fri May 31 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:0.2.0-1
|
|
|
|
- initial package
|