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