!37 修复非 abuild 系统编译问题

From: @jiachao2130 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-10-27 06:09:36 +00:00 committed by Gitee
commit 724b52de25
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: pki-core
Version: 11.0.0
Release: 5
Release: 6
Summary: The PKI Core Package
License: GPLv2 and LGPLv2
URL: http://www.dogtagpki.org/
@ -216,9 +216,9 @@ else
app_server=tomcat-$tomcat_version
fi
# generate go-md2man
mkdir -p /home/abuild/rpmbuild/bin/
mkdir -p ${HOME}/rpmbuild/bin/
cd go-md2man-*
go build -mod=vendor -o /home/abuild/rpmbuild/bin/
go build -mod=vendor -o ${HOME}/rpmbuild/bin/
cd -
mkdir -p build
cd build
@ -238,7 +238,7 @@ cd build
..
%install
export PATH=$PATH:/home/abuild/rpmbuild/bin/
export PATH=$PATH:${HOME}/rpmbuild/bin/
cd build
%make_build \
VERBOSE=%{?_verbose} CMAKE_NO_VERBOSE=1 \
@ -455,6 +455,9 @@ fi
%endif
%changelog
* Tue Sep 19 2023 Jia Chao <jiac13@chinaunicom.cn> - 11.0.0-6
- Fix: use ${HOME} replace hard code '/home/abuild'.
* Thu Dec 01 2022 xu_ping <xuping33@h-partners.com> - 11.0.0-5
- remove unuse buildrequires git packages