I'm searching for a tool similar to rpmdev-extract, except it would dump all information from RPM header, including pre/post/... scriptlets into files.
Why I'm not satisfied with pure rpm -q and redirecting to a file? Simply said, I need standardization. Some tools already use own dump format -- one example for all: rpmgrill dumps these information to files: provides~ requires~ scripts obsoletes conflicts changelog triggers info version per_file_metadata
rpm -q
Writing some other tool I would like to use the same files structure to be able to use it like a cache. For example, I expect several tasks will do something with RPM headers in Taskotron in the future and running rpm -q several times during every task would not be much effective. If all tools that need to work with RPM headers could utilize the same dump structure, and thus call the dump only once, we can save some processor time at least.
So, this request is: 1) a question if there is such a tool already (different from what rpmgrill provides) that would dump RPM header into files in a standard way -- do you know about anything like this? 2) if there is not ^, would you be fine with including such a tool into rpmdevtools? 3) could that tool be the extracted functionality from rpmgrill-fetch-build, i.e. perl script that would dump things into the structure above?
This is a bit better formatted description:
Why I'm not satisfied with pure rpm -q and redirecting to a file? Simply said, I need standardization. Some tools already use own dump format -- one example for all: rpmgrill-fetch-build tool from rpmgrill dumps these information to files:
So, this request is:
1) a question if there is such a tool already (different from what rpmgrill provides) that would dump RPM header into files in a standard way -- do you know about anything like this?
2) if there is not such a tool, would you be fine with including such a tool into rpmdevtools?
3) could that tool be the extracted functionality from rpmgrill-fetch-build, i.e. perl script that would dump things into the structure above?
I've forgot to attach link to rpmgrill-fetch-build, which is: https://git.fedorahosted.org/cgit/rpmgrill.git/tree/bin/rpmgrill-fetch-build
Metadata Update from @scop: - Assignee reset