like https://pagure.io/rpmdevtools/issue/89 when macro fails rpmdev-bumpspec doesn't work neither spectools !
for spectool I found one workaround
spectool -g moby-engine.spec
error: Unable to open /home/sergio/rpmbuild/SOURCES/provides.spec.inc: No such file or directory RPM Failed to parse spec file.
for spectools workaround thats make it work for me is:
spectool -g moby-engine.spec --define "_sourcedir ."
this workaround doesn't work for rpmdev-bumpspec
rpmdev-bumpspec: error: no such option: --define
so the solution on issue #89 looks good to me
Spectool defers to RPM for parsing the actual spec file. If plain RPM can't parse it, then spectool can't parse it.
Not sure if there's something we could do to improve support for dist-git-style "flat" directory setup (i.e. without separate %_sourcedir, %_specdir, etc., but everything within $PWD).
Login to comment on this ticket.