Created attachment 832726 [details] rpmdev-splitfilename rpmdev-splitfilename I needed to use rpmUtils.miscutils.splitFilename from bash. There was no command-line tool that gave me access. I wrote a utility that exposed it.
Note that this would require a dep. on yum/rpmUtils, which rpmdevtools currently doesn't have.
In addition to the rpmUtils dep, there are a few issues why I'm closing this as WONTFIX. Most of the functionality is already available through plain rpm's query format, see for example rpm -qp --qf='%{NAME}\t%{VERSION}\t%{RELEASE}\t%{EPOCH}\t%{ARCH}\n' \ path/to/example-1.2-3.el6.x86_64.rpm Of the things that aren't directly available through query formatting ("integer portion of release" and "platform") look quite specific to some need, and the terminology isn't widely used. I also have a hunch that they might make some assumptions about the format of the release tag which might not hold in general. And the dir portion of the path name can be trivially acquired through standard bash (or the dirname command).