spec file cleanup

move chmod to outside files section

add requires ruby

add comment to very short scripts

make a more secure temp file

change oo-diagnostics to use ruby tempfile