options to define friendlyname
Added rpm spec file, fixed compilation warnings