conmon-2.0.22-0.10.dev.git%{shortcommit0}.el9

- exclude i686 as golang is not suppoerted there

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
Jindrich Novy
2021-01-04 13:03:37 +01:00
parent c601928849
commit 84a3b52601
8 changed files with 22 additions and 162 deletions
+20 -26
View File
@@ -1,54 +1,45 @@
%global with_debug 1
%global with_check 0
%if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif
%global provider github
%global provider_tld com
%global project containers
%global repo conmon
# https://github.com/containers/conmon
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global commit0 2fbeb9f01d65b1feecffb4816f0d3ec9e3265351
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global import_path github.com/containers/%{name}
%global git0 https://%{import_path}
# Used for comparing with latest upstream tag
# to decide whether to autobuild (non-rawhide only)
%global built_tag v2.0.20
Name: %{repo}
Name: conmon
Epoch: 2
Version: 2.0.22
Release: 0.9.dev.git%{shortcommit0}%{?dist}
Release: 1
Summary: OCI container runtime monitor
License: ASL 2.0
URL: %{git0}
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Source0: %{git0}/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: systemd-libs
Requires: glib2
Requires: systemd-libs
BuildRequires: golang >= 1.12.12-4
BuildRequires: go-md2man
%description
%{summary}.
%prep
%autosetup -Sgit -n %{name}-%{commit0}
%autosetup -Sgit
%build
%{__make} DEBUGTAG="enable_debug" all
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 install.crio
%{__make} PREFIX=%{buildroot}%{_prefix} install
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -57,9 +48,12 @@ Requires: systemd-libs
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_libexecdir}/crio/%{name}
%{_mandir}/man8/*
%changelog
* Mon Jan 04 2021 Jindrich Novy <jnovy@redhat.com> - 2:2.0.22-1
- exclude i686 as golang is not suppoerted there
* Fri Nov 13 2020 RH Container Bot <rhcontainerbot@fedoraproject.org> - 2:2.0.22-0.9.dev.git2fbeb9f
- autobuilt 2fbeb9f