diff options
-rw-r--r-- | subr/pkg_install.subr | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 25664aa8..df68ba19 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -34,11 +34,15 @@ ${PKG_NAME} ${PKG_VERSION:-Unknown} %prep %build %install -cp -pPr ${PKG_DESTDIR}/. . +rm -rf "\${RPM_BUILD_ROOT}" +mkdir -p "\${RPM_BUILD_ROOT}" +cp -pPr "${PKG_DESTDIR}/." "\${RPM_BUILD_ROOT}" %post %postun %files +/ + %changelog EOF |