From 7b617141ec3ed4fa12c3e170d55026169289f06c Mon Sep 17 00:00:00 2001 From: Akarsh Date: Thu, 22 Oct 2026 18:57:32 +0000 Subject: [PATCH 1/2] Document Release templates and build-type overrides Remove the outdated RPM-only restriction and explain the release counter placeholders, default template, and build-type-specific overrides. Include the spec-prefixed example and its resulting release numbers. Fixes #471 --- xml/obs_build_config.xml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/xml/obs_build_config.xml b/xml/obs_build_config.xml index c66ad428..0d14247a 100644 --- a/xml/obs_build_config.xml +++ b/xml/obs_build_config.xml @@ -726,12 +726,33 @@ Support: pax debbuild - Release: CI_CNT B_CNT (RPM only) + Release: TEMPLATE + [TYPE:TEMPLATE ...] - CI_CNT is the number of commits. - B_CNT is the number of rebuilds. - The default is CI_CNT.B_CNT. + Defines the template used to generate release numbers. This setting also applies + to build types other than RPM, such as Debian packages and Docker containers. + + + The placeholders <CI_CNT> and <B_CNT> + are replaced with the check-in (source change) counter and the build counter, respectively. + The default template is <CI_CNT>.<B_CNT>. + + + The first template is the default for build types without an override. + To override it for a specific build type, append a space-separated + TYPE:TEMPLATE entry. + Use build type names, such as spec for RPM packages, + dsc for Debian packages, or docker for Docker containers. + For example: + + Release: <CI_CNT>.<B_CNT> spec:160150.<CI_CNT>.<B_CNT> + + This configuration adds the 160150. prefix only to RPM release numbers. + Other build types use <CI_CNT>.<B_CNT>. + For a check-in counter of 3 and a build counter of 2, + the release is 160150.3.2 for RPM builds and 3.2 + for other build types. From 9c663a7a3693a05c3066000489f36d518d8a4a0f Mon Sep 17 00:00:00 2001 From: Akarsh Date: Wed, 11 Nov 2026 17:23:27 +0000 Subject: [PATCH 2/2] Address review: mention shortcut, generalize build formats Say that Release templates are supported for most build formats instead of listing only some of them, and document the tag as a shortcut for the generated release number (. by default). Co-Authored-By: Claude Opus 5.5 --- xml/obs_build_config.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xml/obs_build_config.xml b/xml/obs_build_config.xml index 0d14247a..cbda4cfa 100644 --- a/xml/obs_build_config.xml +++ b/xml/obs_build_config.xml @@ -730,14 +730,20 @@ Support: pax debbuild [TYPE:TEMPLATE ...] - Defines the template used to generate release numbers. This setting also applies - to build types other than RPM, such as Debian packages and Docker containers. + Defines the template used to generate release numbers. This setting is + supported for most build formats, not only RPM. The placeholders <CI_CNT> and <B_CNT> are replaced with the check-in (source change) counter and the build counter, respectively. The default template is <CI_CNT>.<B_CNT>. + + In build recipes, the <RELEASE> tag is a shortcut for the + generated release number, which is <CI_CNT>.<B_CNT> + by default. For example, it can be used in the Release: line of + a spec file or in container tags. + The first template is the default for build types without an override. To override it for a specific build type, append a space-separated