(In reply to Dominique Leuenberger from comment #13) > That should be doable.. something like: > > %repo_conf DEVEL > %if "%{_repository}" == "QA" > %repo_conf QA > %endif Does not look so. Conditionals are not allowed in the Macros: section because it is dumped into a rpm macro file, and that does not support them. %repo_conf QA on the other hand goes into the Macros: section