spec file cleanup

move chmod to outside files section

add requires ruby

add comment to very short scripts

make a more secure temp file