b91517
%global with_check 0
b91517
b91517
%global _find_debuginfo_dwz_opts %{nil}
b91517
%global _dwz_low_mem_die_limit 0
b51589
b91517
# https://github.com/containers/conmon
b51589
%global import_path github.com/containers/%{name}
b91517
%global git0 https://%{import_path}
60b59f
%global commit0 158b5421dbac6bda96b1457955cf2e3c34af29bc
950ce7
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
b91517
b51589
Name: conmon
642e04
Epoch: 3
60b59f
Version: 2.1.6
86a9e2
Release: 1%{?dist}
b91517
Summary: OCI container runtime monitor
b91517
License: ASL 2.0
b91517
URL: %{git0}
950ce7
%if 0%{?branch:1}
950ce7
Source0: https://%{import_path}/tarball/%{commit0}/%{branch}-%{shortcommit0}.tar.gz
950ce7
%else
950ce7
Source0: https://%{import_path}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz
950ce7
%endif
b51589
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
b51589
#ExclusiveArch: %%{go_arches}
b51589
# still use arch exclude as the macro above still refers %%{ix86} in RHEL8.4:
b51589
# https://bugzilla.redhat.com/show_bug.cgi?id=1905383
b51589
ExcludeArch: %{ix86}
b91517
BuildRequires: gcc
b91517
BuildRequires: git
b91517
BuildRequires: glib2-devel
b91517
BuildRequires: systemd-devel
8b56d0
BuildRequires: golang >= 1.17.7
8b56d0
BuildRequires: /usr/bin/go-md2man
950ce7
BuildRequires: libseccomp-devel
b91517
b91517
%description
b91517
%{summary}.
b91517
b91517
%prep
950ce7
%if 0%{?branch:1}
950ce7
%autosetup -Sgit -n containers-%{name}-%{shortcommit0}
950ce7
%else
950ce7
%autosetup -Sgit -n %{name}-%{commit0}
950ce7
%endif
b91517
b91517
%build
be9808
export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
b51589
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
b91517
%{__make} all
b91517
b91517
%install
b91517
%{__make} PREFIX=%{buildroot}%{_prefix} install
b91517
b91517
#define license tag if not already defined
b91517
%{!?_licensedir:%global license %doc}
b91517
b91517
%files
b91517
%license LICENSE
b91517
%doc README.md
b91517
%{_bindir}/%{name}
b51589
%{_mandir}/man8/*
b91517
b91517
%changelog
60b59f
* Tue Feb 07 2023 Jindrich Novy <jnovy@redhat.com> - 3:2.1.6-1
60b59f
- update to https://github.com/containers/conmon/releases/tag/v2.1.6
60b59f
- Related: #2123641
60b59f
60b59f
* Mon Nov 07 2022 Jindrich Novy <jnovy@redhat.com> - 3:2.1.5-1
60b59f
- update to https://github.com/containers/conmon/releases/tag/v2.1.5
60b59f
- Related: #2123641
60b59f
642e04
* Tue Aug 30 2022 Jindrich Novy <jnovy@redhat.com> - 3:2.1.4-1
642e04
- update to https://github.com/containers/conmon/releases/tag/v2.1.4
642e04
- Related: #2061390
642e04
642e04
* Fri Aug 26 2022 Jindrich Novy <jnovy@redhat.com> - 3:2.1.2-2
642e04
- revert conmon to 2.1.2
642e04
- Related: #2061390
642e04
642e04
* Tue Jul 26 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.3-1
86a9e2
- update to https://github.com/containers/conmon/releases/tag/v2.1.3
86a9e2
- Related: #2061390
86a9e2
642e04
* Thu Jun 16 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.2-2
8b56d0
- update to latest content of https://github.com/containers/conmon/releases/tag/2.1.2
8b56d0
  (https://github.com/containers/conmon/commit/2bc95ee697e87d5f7b77063cf83fc32739addafe)
8b56d0
- Related: #2061390
73a10c
8b56d0
* Wed Jun 15 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.2-1
8b56d0
- update to https://github.com/containers/conmon/releases/tag/v2.1.2
8b56d0
- Related: #2061390
879a1a
642e04
* Mon Jun 06 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.1-2
8b56d0
- fix CVE-2022-1708 - thanks to Peter Hunt
8b56d0
- Related: #2061390
8b56d0
642e04
* Tue May 24 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.1-1
642e04
- update to https://github.com/containers/conmon/releases/tag/v2.1.1
642e04
- Related: #2061390
642e04
642e04
* Wed May 11 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.0-3
642e04
- BuildRequires: /usr/bin/go-md2man
642e04
- Related: #2061390
642e04
642e04
* Fri Apr 08 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.0-2
8b56d0
- bump golang BR to 1.17.7
8b56d0
- Related: #2061390
8b56d0
642e04
* Tue Jan 25 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.1.0-1
8b56d0
- update to https://github.com/containers/conmon/releases/tag/v2.1.0
73a10c
- Related: #2001445
879a1a
642e04
* Wed Jan 12 2022 Jindrich Novy <jnovy@redhat.com> - 2:2.0.32-1
642e04
- update to https://github.com/containers/conmon/releases/tag/v2.0.32
642e04
- Related: #2001445
642e04
642e04
* Wed Dec 08 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.31-1
642e04
- update to https://github.com/containers/conmon/releases/tag/v2.0.31
642e04
- Related: #2001445
642e04
73a10c
* Thu Sep 23 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.30-1
879a1a
- update to https://github.com/containers/conmon/releases/tag/v2.0.30
879a1a
- Related: #2001445
879a1a
025886
* Thu Jun 03 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.29-1
950ce7
- update to https://github.com/containers/conmon/releases/tag/v2.0.29
025886
- Related: #1934415
950ce7
025886
* Thu Jun 03 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-6
025886
- update to the latest content of https://github.com/containers/conmon/tree/master
025886
  (https://github.com/containers/conmon/commit/75e067e)
025886
- Related: #1934415
1ad789
025886
* Wed Jun 02 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-5
025886
- update to the latest content of https://github.com/containers/conmon/tree/master
025886
  (https://github.com/containers/conmon/commit/b033cb5)
025886
- Related: #1934415
025886
025886
* Mon May 17 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-4
025886
- update to the latest content of https://github.com/containers/conmon/tree/master
025886
  (https://github.com/containers/conmon/commit/3161452)
025886
- Related: #1934415
1ad789
1ad789
* Mon May 10 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-3
1ad789
- upload new source tarball
025886
- Related: #1934415
1ad789
1ad789
* Mon May 10 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-2
1ad789
- switch to master branch to fix /dev/null ownership issues
1ad789
  (https://github.com/containers/conmon/commit/372fa19211cfeabdb2bad52a4ab8a4d1b0b0063c)
025886
- Related: #1934415
1ad789
025886
* Tue Mar 09 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-1
1ad789
- update to https://github.com/containers/conmon/releases/tag/v2.0.27
025886
- Related: #1934415
1ad789
d6945d
* Thu Feb 04 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-1
d6945d
- update to https://github.com/containers/conmon/releases/tag/v2.0.26
d6945d
- Related: #1883490
d6945d
d6945d
* Thu Jan 21 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.25-1
d6945d
- update to https://github.com/containers/conmon/releases/tag/v2.0.25
d6945d
- Related: #1883490
d6945d
d6945d
* Fri Jan 15 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.24-1
d6945d
- update to https://github.com/containers/conmon/releases/tag/v2.0.24
d6945d
- Related: #1883490
d6945d
b51589
* Mon Jan 04 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-3
b51589
- exclude i686 as golang is not suppoerted there
d6945d
- Related: #1883490
b51589
b51589
* Sat Dec 26 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-2
b51589
- add BR: golang, go-md2man
b51589
- add man pages
d6945d
- Related: #1883490
b51589
b51589
* Mon Dec 21 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-1
b51589
- update to https://github.com/containers/conmon/releases/tag/v2.0.22
d6945d
- Related: #1883490
b51589
b51589
* Tue Dec 08 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-3
b51589
- simplify spec
d6945d
- Related: #1883490
b51589
b51589
* Mon Nov 09 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-2
b51589
- be sure to harden the linked binary
b51589
- compile with debuginfo enabled
d6945d
- Related: #1883490
b51589
d6945d
* Wed Oct 21 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.21-1
d6945d
- synchronize with stream-container-tools-rhel8
d6945d
- Related: #1883490
b51589
be9808
* Tue Aug 11 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.20-2
be9808
- use proper CFLAGS
be9808
- Related: #1821193
be9808
be9808
* Wed Jul 29 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.20-1
be9808
- update to https://github.com/containers/conmon/releases/tag/v2.0.20
be9808
- Related: #1821193
be9808
be9808
* Wed Jul 15 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.19-1
be9808
- update to https://github.com/containers/conmon/releases/tag/v2.0.19
be9808
- Related: #1821193
be9808
be9808
* Tue Jun 16 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.18-1
be9808
- update to https://github.com/containers/conmon/releases/tag/v2.0.18
be9808
- Related: #1821193
be9808
b1f1a1
* Tue May 26 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.17-1
b1f1a1
- update to https://github.com/containers/conmon/releases/tag/v2.0.17
be9808
- Related: #1821193
b1f1a1
b1f1a1
* Wed May 13 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.16-1
b1f1a1
- update to https://github.com/containers/conmon/releases/tag/v2.0.16
be9808
- Related: #1821193
be9808
be9808
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.15-2
be9808
- synchronize containter-tools 8.3.0 with 8.2.1
be9808
- Related: #1821193
b1f1a1
b1f1a1
* Mon Apr 06 2020 Jindrich Novy <jnovy@redhat.com> - 2:2.0.15-1
b1f1a1
- update to 2.0.15
be9808
- Related: #1821193
b1f1a1
f63695
* Wed Dec 11 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.6-1
b91517
- update to 2.0.6
f63695
- Related: RHELPLAN-25139
b91517
b91517
* Tue Dec 10 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.5-1
b91517
- update to 2.0.5
f63695
- Related: RHELPLAN-25139
b91517
f63695
* Mon Dec 09 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.4-1
b91517
- update to 2.0.4 bugfix release
f63695
- Related: RHELPLAN-25139
b91517
b91517
* Mon Nov 25 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.3-2.giteb5fa88
b91517
- BR: systemd-devel
f63695
- Related: RHELPLAN-25139
b91517
b91517
* Wed Nov 20 2019 Jindrich Novy <jnovy@redhat.com> - 2:2.0.3-1.giteb5fa88
b91517
- update to 2.0.3
f63695
- Related: RHELPLAN-25139
b91517
b91517
* Wed Sep 25 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.2-0.1.dev.git422ce21
b91517
- build latest upstream master
b91517
b91517
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-2
b91517
- remove BR: go-md2man since no manpages yet
b91517
b91517
* Tue Sep 10 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.0.0-1
b91517
- bump to v2.0.0
b91517
b91517
* Fri May 31 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:0.2.0-1
b91517
- initial package