diff --git a/xml/obs_build_config.xml b/xml/obs_build_config.xml index c66ad428..cbda4cfa 100644 --- a/xml/obs_build_config.xml +++ b/xml/obs_build_config.xml @@ -726,12 +726,39 @@ 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 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 + 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.