Skip to content

Automatically exclude BRs that are excluded by rpm macros #8

@mbooth101

Description

@mbooth101

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions