RPM API: parseSpec and macroContext

Matwey V. Kornilov matwey.kornilov at gmail.com
Tue Feb 11 18:04:03 UTC 2020


I would like to read a number of spec files in a row in my
application. However, I've found that RPM maintains global macro
context inside rpmSpec type.
This way, a macro from the first spec are visible for other spec
files, leading to parsing issues. What should be a proper way to
revert macro context to the initial state before subsequent calling

With best regards,
Matwey V. Kornilov

More information about the Rpm-list mailing list