!17 修改获取Release的方式

From: @wangchong1995924 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2024-04-02 08:47:59 +00:00 committed by Gitee
commit 167e57ae53
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,11 @@ Summary: System information like kernelversion, openeulerversion, gccvers
License: GPL-1.0-or-later
Group: System/Config
Version: 1.0
Release: 1
%ifarch aarch64
Release: %(date +%s -d "$(grep "compiletime" %{_sourcedir}/isopackage_arm64.sdf | cut -d '=' -f2 | sed 's/-/ /3' | sed 's/-/:/3' | sed 's/-/:/3')")%(grep "openeulerversion" %{_sourcedir}/isopackage_arm64.sdf | cut -d '-' -f2)
%else
Release: %(date +%s -d "$(grep "compiletime" %{_sourcedir}/isopackage.sdf | cut -d '=' -f2 | sed 's/-/ /3' | sed 's/-/:/3' | sed 's/-/:/3')")%(grep "openeulerversion" %{_sourcedir}/isopackage.sdf | cut -d '-' -f2)
%endif
Source1: isopackage.sdf
Source2: isopackage_arm64.sdf
BuildRoot: %{_tmppath}/%{name}-%{version}
@ -52,5 +56,3 @@ rm -rf %{_tmppath}/%{name}-%{version}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%changelog
* Thu Jul 28 2022 Chenyx <chenyixiong3@huawei.com> - 1.0-1
- License compliance rectification