#163 Use case: All Fedora Rawhide specfiles
Opened 20 days ago by churchyard. Modified 20 days ago

I have an use case that I like to be addressed. I don't need a solution, I'd rather need a hint and then I can help script a proof of concept for this. I'm partially opening this to track the use case, rather than to ask somebody to work on this.

From time to time, as a "metapackager" (a packager that also packages/creates tools (such as RPM macros) or polices for other packagers) I need to run a quick grep over all Rawhide specfiles. This allows for example to analyze how often is a particular macro used in Fedora, or how it is used in most cases.

For non-modular content, a solution exist. There is a tarball with all rawhide specfiles from Fedora, generated daily-ish.

https://pkgs.fedoraproject.org/repo/rpm-specs-latest.tar.xz

With the raise of the amount of modular content, it is probably no longer desirable to ignore it completely. I'd like to get all rawhide spec files including the spec files of modular packages.

What would be the way to get all rawhide modular specfiles?

I am looking for a way a script can get the list of all Rawhide modules and all their source packages (components) for all their streams and for each such package, get the modular branch. From there, I can construct a Pagure spec URL and fetch it.


Login to comment on this ticket.

Metadata