fix warning and errors while packaging rpmbuild