From 9b7922e6a3a3702c472298dc1285c2b5e69a0113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 14 May 2018 16:32:51 +0000 Subject: subr/pkg_install.subr: fixup ${PKG_VERSION} for rpmbuild(8). --- subr/pkg_install.subr | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'subr') diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 5518e03a..7394fc65 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" <