procedure to build RPM