On 07/26/2018 11:52 AM, Igor Gnatenko wrote:
>> Note that mizdebsk already had such tool for quite some
time.
>>
>
> Do you have a reference?
>
CCing Mikolaj.
Latest version of the code Igor is talking about is available at [1].
The tool is targeted for solving specific problem - generating modulemd
files, with correct and optimal buildorder, but it can be adapted for
other things.
It supports:
* conditionals (parsing spec files is done by rpmbuild,, so you can use
any construct supported by rpm, you can define macros to enable/disable
features, do bootstrap builds etc.).
* auto-provides (packages are built before generating final build order)
* rich deps (for dependency solving it uses libsolv via hawkey API)
[1]
https://github.com/fedora-java/modularity-utils/blob/master/generate-modu...
--
Mikolaj Izdebski
Senior Software Engineer, Red Hat
IRC: mizdebsk