%global with_check 0 Name: conmon Epoch: 3 Version: 2.1.12 Release: %autorelease Summary: OCI container runtime monitor License: ASL 2.0 URL: https://github.com/containers/%{name} Source0: %{url}/archive/v%{version}.tar.gz # https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures #ExclusiveArch: %%{go_arches} # still use arch exclude as the macro above still refers %%{ix86} in RHEL8.4: # https://bugzilla.redhat.com/show_bug.cgi?id=1905383 ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: git BuildRequires: glib2-devel BuildRequires: systemd-devel BuildRequires: golang >= 1.12.12-4 BuildRequires: /usr/bin/go-md2man BuildRequires: libseccomp-devel %description %{summary}. %prep %if 0%{?branch:1} %autosetup -Sgit -n containers-%{name}-%{shortcommit0} %else %autosetup -Sgit -n %{name}-%{commit0} %endif %build export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" %{__make} all %install %{__make} PREFIX=%{buildroot}%{_prefix} install #define license tag if not already defined %{!?_licensedir:%global license %doc} %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_mandir}/man8/* %changelog %autochangelog