脚本内解决rpmbuild时路径问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user