I am trying out generate-modulemd.py and think it would be neat if, when enabling build deps, we could automatically exclude BRs that are eliminated when any rpm macro is set.
For example, say we have this spec file:
%bcond_without junit5
BuildRequire: junit
%if %{with junit5}
BuildRequire: junit5
%endif
And in my koschie.cfg I have the following section:
"macros": {
"_without_junit5": 1,
},
Then the script should automatically eliminate junit5 from the dep tree.
For now, I am adding junit5 to the "excludes" list in koschie.cfg manually.