From 9b7922e6a3a3702c472298dc1285c2b5e69a0113 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: May 14 2018 16:32:51 +0000 Subject: subr/pkg_install.subr: fixup ${PKG_VERSION} for rpmbuild(8). --- diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 5518e03..7394fc6 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -3,6 +3,7 @@ # pkg_install() { + local _pkg_version_rpm=""; ex_rtl_fileop mkdir "${PKG_PREFIX}"; find "${PKG_DESTDIR}" \ -type d -exec chmod 0755 {} \;; @@ -19,9 +20,11 @@ pkg_install() { fi; if [ "${ARG_RPM:-0}" -eq 1 ]\ && [ -x "$(which rpmbuild 2>/dev/null)" ]; then - cat > "${PKG_BASE_DIR}/${PKG_NAME}-${PKG_VERSION:-Unknown}.spec" < "${PKG_BASE_DIR}/${PKG_NAME}-${_pkg_version_rpm}.spec" <