!29 修改 spec 文件中的“openEuler”硬编码文本为宏

From: @reganhe_xx 
Reviewed-by: @luo-haibo 
Signed-off-by: @luo-haibo
This commit is contained in:
openeuler-ci-bot 2022-04-25 03:18:20 +00:00 committed by Gitee
commit c47587cee5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5,7 +5,7 @@
Name: maven
Epoch: 1
Version: 3.5.4
Release: 11
Release: 12
Summary: Java project management and project comprehension tool
License: ASL 2.0 and MIT
URL: http://maven.apache.org/
@ -101,7 +101,7 @@ rm apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
%pom_remove_plugin -r :buildnumber-maven-plugin
sed -i "
/buildNumber=/ {
s/=.*/=openEuler %{version}-%{release}/
s/=.*/=%{_vendor} %{version}-%{release}/
s/%{dist}$//
}
/timestamp=/ d
@ -177,6 +177,9 @@ if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
%license LICENSE NOTICE
%changelog
* Tue Apr 19 2022 herengui <herengui@uniontech.com> - 1:3.5.4-12
- Modify hardcode openEuler to _vendor macro
* Fri Feb 25 2022 wangkai <wangkai385@huawei.com> - 1:3.5.4-11
- Rebuild for fix log4j1.x cves