rpm building sample code