#760 publish rpm-specs-latest tarball for CentOS Stream
Closed: Fixed 2 years ago by arrfab. Opened 2 years ago by dcavalca.

Fedora publishes this handy tarball which includes all the specfiles. Looks like it's generated from make-git-checkout-seed.sh. Could we port this to CentOS and get tarballs generated for c8s and c9s on a regular schedule?


Metadata Update from @zlopez:
- Issue tagged with: centos-stream

2 years ago

It was implemented for the git-seed part already some time ago, and so producing https://git.centos.org/sources/git-seed-latest.tar.xz , but we never had request for the .spec.
That would be easy to just adapt (as it's same script) but that works on local git.centos.org

If you need something that would parse remote git projects (like gitlab) that would be different (as it doesn't exist)

I'd like to hear some more about the use-case here. We've found a few times that folks that want to grep through the body of specfiles had their needs met by looking in content resolver or by querying the API.

I'd like to consider if there might be more friendly solutions than dumping things to a tarball on a regular basis.

The main usecase is quickly grepping through specs to check for patterns/antipatterns when working on something. The secondary usecase is one-off auditing (e.g. I've used the Fedora equivalent of this before to check whether a given macro was still being used anywhere). APIs are great for automation, but for humans IMO a tarball is hard to beat.

For now, just covering git.centos.org is probably enough. Down the road, it'd be nice to figure out a way to have this also for gitlab, but that can probably be a separate ticket.

I guess it would work if rpms/${project} has a default branch set. and so it would pull/clone from that branch and use that .spec. is that what you're searching for ? or a more complex variant of the fedora one with also branch support ? I guess for Fedora it's just always pulling from rawhide but for git.centos.org it depends if there was one (I think c8 or c8s back in the days)

I modified upstream script (that we were already using, but modified) to now produce https://git.centos.org/sources/rpm-specs-latest.tar.xz

Considering this ticket done for now but feel free to open it again for other mods if needed

Metadata Update from @arrfab:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Where is the script located?

Login to comment on this ticket.

Metadata