Implement modularized build for RPM packages