Merge topic 'CPackRPM-Fix0011595'

8d366cd CPackRPM fix bug 0011595 : Can't generate RPMs (on FC11...)
This commit is contained in:
Brad King 2010-12-14 14:39:00 -05:00 committed by CMake Topic Stage
commit 2c7d36ce6f
1 changed files with 2 additions and 3 deletions

View File

@ -566,10 +566,9 @@ mv $RPM_BUILD_ROOT \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\"
%install
if [ -e $RPM_BUILD_ROOT ];
then
mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot/*\" $RPM_BUILD_ROOT
else
mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
fi
mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" $RPM_BUILD_ROOT
%clean