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