I need assistance with rpmbuild’s BuildRequires and Requires automation. There is a dnf builddep plugin in Fedora for installing dependencies; I tried some regex and rpmspec --parse, but it doesn’t seem to work. I’d like to know how to get the exact package name for pkgconfig(blah) and most perl(blah::blah), because ‘zypper se --provides <name>’ doesn’t help much and frequently fails due to a lack of a full path for the search string. I’m doing this for educational purposes and to better understand the package construction process.
Please guide me in locating BuildRequires and Requires packages with full names prior to launching rpmbuild; while building individual packages, I can get a list of missing dependencies and install them, but this is inconvenient when building 100+ packages at once.