summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-01-20 13:52:44 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2019-01-20 13:52:44 +0000
commit1b271e3adeede2d3521ad5f5c074ead6ed780d36 (patch)
tree781972f515727e20d8921951f0c614e9af8e7fae
parent8eb7cf914aa4a7b81499ed2d0b376e6dd8e655ca (diff)
downloadmidipix_build-1b271e3adeede2d3521ad5f5c074ead6ed780d36.tar.bz2
midipix_build-1b271e3adeede2d3521ad5f5c074ead6ed780d36.tar.xz
subr/pkg_install_rpm.subr:pkg_install_rpm(): pass --define="_tmppath ${BUILD_WORKDIR}" to rpmbuild.
-rw-r--r--subr/pkg_install_rpm.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/subr/pkg_install_rpm.subr b/subr/pkg_install_rpm.subr
index 691fe04c..49cf6aa4 100644
--- a/subr/pkg_install_rpm.subr
+++ b/subr/pkg_install_rpm.subr
@@ -47,7 +47,11 @@ cp -pPr "${PKG_DESTDIR}/." "\${RPM_BUILD_ROOT}"
%changelog
EOF
- rpmbuild -bb --define="_topdir ${PREFIX_RPM}/${PKG_NAME}-${_pkg_version_rpm}" --nodeps "${PKG_BASE_DIR}/${PKG_NAME}-${_pkg_version_rpm}.spec";
+ rpmbuild \
+ -bb \
+ --define="_tmppath ${BUILD_WORKDIR}" \
+ --define="_topdir ${PREFIX_RPM}/${PKG_NAME}-${_pkg_version_rpm}" \
+ --nodeps "${PKG_BASE_DIR}/${PKG_NAME}-${_pkg_version_rpm}.spec";
find "${PREFIX_RPM}/${PKG_NAME}-${_pkg_version_rpm}/RPMS" -iname \*.rpm -exec cp -pP {} "${PREFIX_RPM}/" \;;
ex_rtl_fileop rm "${PREFIX_RPM}/${PKG_NAME}-${_pkg_version_rpm}";
ex_rtl_fileop cp "${PKG_BASE_DIR}/${PKG_NAME}-${_pkg_version_rpm}.spec" "${PREFIX_RPM}/";