脚本内解决rpmbuild时路径问题

This commit is contained in:
linxin
2023-04-28 09:41:02 +08:00
parent a3abacd614
commit e53226b40a

View File

@@ -40,7 +40,7 @@ go version
mkdir -p ./rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
tar -czvf ./rpmbuild/SOURCES/coredump-tools-${VERSION_ID}.tar.gz ../coredump-tools
cp ./script/coredump.spec ./rpmbuild/SPECS
rpmbuild --define "_version ${VERSION_ID}" --define "_release release" -ba ./rpmbuild/SPECS/coredump.spec
rpmbuild --define "_topdir `pwd`/rpmbuild" --define "_version ${VERSION_ID}" --define "_release release" -ba ./rpmbuild/SPECS/coredump.spec
ls -halt ./*.rpm