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}
950ce7
%global commit0 7e6de6678f6ed8a18661e1d5721b81ccee293b9b
950ce7
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
b91517
b51589
Name: conmon
b91517
Epoch: 2
950ce7
Version: 2.0.29
950ce7
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
b51589
BuildRequires: golang >= 1.12.12-4
b51589
BuildRequires: 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
950ce7
* Thu Jul 01 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.29-1
950ce7
- update to https://github.com/containers/conmon/releases/tag/v2.0.29
950ce7
- Related: #1954702
950ce7
1ad789
* Tue May 18 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-3
1ad789
- fix "Permission on /dev/null are changing from 666 to 777 after running podman as root [rhel-8.4.0.z]"
1ad789
- Resolves: #1961682
1ad789
1ad789
* Thu May 13 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.26-2
1ad789
- revert back to the state of 3.0-8.4.0
1ad789
- Related: #1954702
1ad789
1ad789
* Mon May 10 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-3
1ad789
- upload new source tarball
1ad789
- Related: #1954702
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)
1ad789
- Related: #1954702
1ad789
1ad789
* Thu Apr 29 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.27-1
1ad789
- update to https://github.com/containers/conmon/releases/tag/v2.0.27
1ad789
- Related: #1954702
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