fix bug unknown version

This commit is contained in:
suoxiaocong 2023-11-21 15:05:45 +08:00
parent 21cb438006
commit bb1754e1ef

View File

@ -13,7 +13,7 @@
Name: cri-tools
Version: 1.24.2
Release: 1
Release: 2
Summary: CLI and validation tools for Container Runtime Interface
License: ASL 2.0
URL: https://%{goipath}
@ -39,6 +39,7 @@ cp ../_build/bin/go-md2man $GO_MD2MAN_PATH/go-md2man
export PATH=$GO_MD2MAN_PATH:$PATH
cd -
export LDFLAGS='-X %{goipath}/pkg/version.Version=v%{version}'
%gobuild -o bin/crictl %{goipath}/cmd/crictl
go-md2man -in docs/crictl.md -out docs/crictl.1
@ -59,6 +60,9 @@ install -p -m 644 docs/crictl.1 %{buildroot}%{_mandir}/man1
%{_mandir}/man1/crictl*
%changelog
* Tue Nov 21 2023 suoxiaocong <suoxiaocong@kylinos.cn> - 1.24.2-2
- fix bug unknown version
* Sat Jul 30 2022 tianlijing <tianlijing@kylinos.cn> - 1.24.2-1
- update to 1.24.2