add rpm spec file.

also fix issue with manager