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