runc-1.0.1-4.el9

- fix "unknown version" displayed by runc -v
- Related: #1970747

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
Jindrich Novy 2021-07-29 09:25:01 +02:00
parent bd6a9299fa
commit eaacaf56d0

View File

@ -22,7 +22,7 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl
Name: %{repo} Name: %{repo}
Version: 1.0.1 Version: 1.0.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: CLI for running Open Containers Summary: CLI for running Open Containers
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures # https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
#ExclusiveArch: %%{go_arches} #ExclusiveArch: %%{go_arches}
@ -60,8 +60,7 @@ export GO111MODULE=off
export GOPATH=%{gopath}:$(pwd)/GOPATH export GOPATH=%{gopath}:$(pwd)/GOPATH
export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
export BUILDTAGS="selinux seccomp" export BUILDTAGS="selinux seccomp"
export COMMIT="" export LDFLAGS="-X main.gitCommit= -X main.version=%{version}"
make
%gobuild -o %{name} %{import_path} %gobuild -o %{name} %{import_path}
pushd man pushd man
@ -84,6 +83,10 @@ make install install-man install-bash DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
%{_datadir}/bash-completion/completions/%{name} %{_datadir}/bash-completion/completions/%{name}
%changelog %changelog
* Thu Jul 29 2021 Jindrich Novy <jnovy@redhat.com> - 1.0.1-4
- fix "unknown version" displayed by runc -v
- Related: #1970747
* Mon Jul 26 2021 Jindrich Novy <jnovy@redhat.com> - 1.0.1-3 * Mon Jul 26 2021 Jindrich Novy <jnovy@redhat.com> - 1.0.1-3
- be sure to compile runc binaries the right way - be sure to compile runc binaries the right way
- Related: #1970747 - Related: #1970747