[CentOS-devel] Search through CentOS Stream specfiles

Mon Jun 20 16:32:01 UTC 2022
Nico Kadel-Garcia <nkadel at gmail.com>

On Thu, Jun 9, 2022 at 1:12 PM Neal Gompa <ngompa13 at gmail.com> wrote:
>
> On Thu, Jun 9, 2022 at 12:19 PM Josh Boyer <jwboyer at redhat.com> wrote:
> >
> > On Thu, Jun 9, 2022 at 11:59 AM Davide Cavalca via CentOS-devel
> > <centos-devel at centos.org> wrote:
> > >
> > > On Wed, 2022-06-08 at 21:26 -0500, Maxwell G via CentOS-devel wrote:
> > > > Hi everyone,
> > > >
> > > > Is there some sort of specfile tarball or other method to search
> > > > through all
> > > > the CentOS Stream specfiles for a regex? In Fedora, we have a
> > > > tarball[1] with
> > > > all the specfiles that's generated daily, as well as access to
> > > > Sourcegraph[2].
> > > > Is there an equivalent for CentOS Stream/RHEL? Of course, I could
> > > > manually
> > > > extract them from the *-source yum repos' SRPMs or distgit, but that
> > > > would be
> > > > tedious.
> > >
> > > It's a recent addition (see https://pagure.io/centos-infra/issue/760
> > > for details), but try
> > > https://git.centos.org/sources/rpm-specs-latest.tar.xz
> >
> > Oh, fantastic!  Thanks for teaching me something.
> >
>
> Oh yay! This will definitely be useful! :)

For me, too. I'm dealing with the "we build the RPMs, we compile with
them internally, but we decline to include them in the RHEL or CentOS
dnf repsitories". Having the .spec files makes it easier to search
through them for which is the relevant SRPM for the missing package.