Adapting output of rpm.build