[CentOS-devel] Announcing rpmautospec support on cbs.centos.org

Thu Jan 11 15:32:27 UTC 2024
Fabian Arrotin <arrfab at centos.org>

A long time ago, some SIGs requested rpmautospec to be available on 
https://cbs.centos.org koji instance.
Due to the fact that previous versions of rpmautospec were running on 
the kojid host, and not *inside* buildroots, and that it needed 
different version of pygit2/libgit2 conflicting with operating system, 
it wasn't possible to enable that feature ...

... But these days are gone now !

Thanks to the work done by rpmautospec maintainer (Nils Philippsen), 
rpmautospec is now divided into multiple packages, and mock 5.4 
(released upstream last week) has the built-in logic (in 
mock-rpmautospec) to call rpmautospec in the populated buildroot.

That means that from today, rpmautospec is implemented in cbs.centos.org 
, with the following needed changes :

- at the kojid host level : bump to mock 5.4 and mock-rpmautospec plugin 
installed and enabled
- at the kojihub level, the inherited buildsys9s-release tag has all the 
needed packages (https://cbs.centos.org/koji/builds?tagID=2363) required 
at runtime to process the %autorelease and %autochangelog entries


# How to use it ?
Basically SIGs asking initially to have it already know how to use it 
but using https://fedora-infra.github.io/rpmautospec-docs/ docs to 
understand %autorelease and %autochangelog is the only required thing.
CBS doesn't have anything to understand as it's rpmautospec's job to 
process git logs to automatically convert these macros. That also means 
that it's really opt-in : if there is no %autorelease/%autochangelog, 
nothing will be processed, so the build will happen as it was in the 
past (no change)

# When can we use it ?
Whenever you want, as it was implemented today, and by the time you'll 
have read this email, cbs *should* have reprocessed the various build 
tags to see the inherited packages from buildsys9-release tag (packages 
needed in buildroot dynamically installed when %autochangelog and 
%autorelease are detected)

# Limitation
As said in the past, rpmautospec itself needed at least python3 (and 
deps), meaning that it wasn't available for el8. So trying to use 
rpmautospec for CentOS Stream 8 on cbs.centos.org wouldn't work (but 
Stream 8 itself will go EOL in ~3months anyway).

Kind Regards,
-- 
Fabian Arrotin
The CentOS Project | https://www.centos.org
gpg key: 17F3B7A1 | @arrfab[@fosstodon.org]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20240111/1f773aac/attachment.sig>