Specify linux target for rpmbuild

This commit is contained in:
hensm
2019-01-24 16:27:27 +00:00
parent c8c883212c
commit 20122d6d19

View File

@@ -281,6 +281,7 @@ function packageLinuxRpm (platform, packageType) {
`rpmbuild -bb ${specOutputPath} `
+ `--define "_distdir ${BUILD_PATH}" `
+ `--define "_rpmdir ${BUILD_PATH}" `
+ `--target=x86_64-linux`
, { shell: true });
return glob.sync("**/*.rpm", { cwd: BUILD_PATH })[0];