update CMakefile and rpm spec file