refactoring rpmbuild