0c4708
%global with_check 0
0c4708
0c4708
%global _find_debuginfo_dwz_opts %{nil}
0c4708
%global _dwz_low_mem_die_limit 0
0c4708
0c4708
# https://github.com/containers/conmon
0c4708
%global import_path github.com/containers/%{name}
0c4708
%global git0 https://%{import_path}
0c4708
0c4708
Name: conmon
0c4708
Epoch: 2
0c4708
Version: 2.0.26
f91872
Release: 3%{?dist}
0c4708
Summary: OCI container runtime monitor
0c4708
License: ASL 2.0
0c4708
URL: %{git0}
0c4708
Source0: %{git0}/archive/v%{version}.tar.gz
f91872
Patch0: CVE-2022-1708.patch
0c4708
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
0c4708
#ExclusiveArch: %%{go_arches}
0c4708
# still use arch exclude as the macro above still refers %%{ix86} in RHEL8.4:
0c4708
# https://bugzilla.redhat.com/show_bug.cgi?id=1905383
0c4708
ExcludeArch: %{ix86}
0c4708
BuildRequires: gcc
0c4708
BuildRequires: git
0c4708
BuildRequires: glib2-devel
0c4708
BuildRequires: systemd-devel
0c4708
BuildRequires: golang >= 1.12.12-4
0c4708
BuildRequires: go-md2man
0c4708
0c4708
%description
0c4708
%{summary}.
0c4708
0c4708
%prep
0c4708
%autosetup -Sgit
0c4708
0c4708
%build
0c4708
export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
0c4708
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
0c4708
%{__make} all
0c4708
0c4708
%install
0c4708
%{__make} PREFIX=%{buildroot}%{_prefix} install
0c4708
0c4708
#define license tag if not already defined
0c4708
%{!?_licensedir:%global license %doc}
0c4708
0c4708
%files
0c4708
%license LICENSE
0c4708
%doc README.md
0c4708
%{_bindir}/%{name}
0c4708
%{_mandir}/man8/*
0c4708
0c4708
%changelog
f91872
* Thu Jul 14 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-3
f91872
- amend CVE-2022-1708
f91872
- Related: #2093390
f91872
f91872
* Mon Jun 06 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-2
f91872
- fix CVE-2022-1708 - thanks to Peter Hunt
f91872
- Related: #2061390
f91872
0c4708
* Thu Feb 04 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.26
0c4708
- Related: #1883490
0c4708
0c4708
* Thu Jan 21 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.25-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.25
0c4708
- Related: #1883490
0c4708
0c4708
* Fri Jan 15 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.24-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.24
0c4708
- Related: #1883490
0c4708
0c4708
* Mon Jan 04 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-3
0c4708
- exclude i686 as golang is not suppoerted there
0c4708
- Related: #1883490
0c4708
0c4708
* Sat Dec 26 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-2
0c4708
- add BR: golang, go-md2man
0c4708
- add man pages
0c4708
- Related: #1883490
0c4708
0c4708
* Mon Dec 21 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.22
0c4708
- Related: #1883490
0c4708
0c4708
* Tue Dec 08 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-3
0c4708
- simplify spec
0c4708
- Related: #1883490
0c4708
0c4708
* Mon Nov 09 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-2
0c4708
- be sure to harden the linked binary
0c4708
- compile with debuginfo enabled
0c4708
- Related: #1883490
0c4708
0c4708
* Wed Oct 21 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-1
0c4708
- synchronize with stream-container-tools-rhel8
0c4708
- Related: #1883490
0c4708
0c4708
* Tue Aug 11 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.20-2
0c4708
- use proper CFLAGS
0c4708
- Related: #1821193
0c4708
0c4708
* Wed Jul 29 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.20-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.20
0c4708
- Related: #1821193
0c4708
0c4708
* Wed Jul 15 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.19-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.19
0c4708
- Related: #1821193
0c4708
0c4708
* Tue Jun 16 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.18-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.18
0c4708
- Related: #1821193
0c4708
0c4708
* Tue May 26 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.17-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.17
0c4708
- Related: #1821193
0c4708
0c4708
* Wed May 13 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.16-1
0c4708
- update to https://github.com/containers/conmon/releases/tag/v2.0.16
0c4708
- Related: #1821193
0c4708
0c4708
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.15-2
0c4708
- synchronize containter-tools 8.3.0 with 8.2.1
0c4708
- Related: #1821193
0c4708
0c4708
* Mon Apr 06 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.15-1
0c4708
- update to 2.0.15
0c4708
- Related: #1821193
0c4708
0c4708
* Wed Dec 11 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.6-1
0c4708
- update to 2.0.6
0c4708
- Related: RHELPLAN-25139
0c4708
0c4708
* Tue Dec 10 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.5-1
0c4708
- update to 2.0.5
0c4708
- Related: RHELPLAN-25139
0c4708
0c4708
* Mon Dec 09 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.4-1
0c4708
- update to 2.0.4 bugfix release
0c4708
- Related: RHELPLAN-25139
0c4708
0c4708
* Mon Nov 25 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.3-2.giteb5fa88
0c4708
- BR: systemd-devel
0c4708
- Related: RHELPLAN-25139
0c4708
0c4708
* Wed Nov 20 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.3-1.giteb5fa88
0c4708
- update to 2.0.3
0c4708
- Related: RHELPLAN-25139
0c4708
0c4708
* Wed Sep 25 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.2-0.1.dev.git422ce21
0c4708
- build latest upstream master
0c4708
0c4708
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-2
0c4708
- remove BR: go-md2man since no manpages yet
0c4708
0c4708
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-1
0c4708
- bump to v2.0.0
0c4708
0c4708
* Fri May 31 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:0.2.0-1
0c4708
- initial package