[opensuse-buildservice] Release tagging

Hi friends! I have a couple of packages in a project to build and i want to set their release tags according to those specified in .spec files. Is it possible to do this instead of define common "Release:" tag in prjconf? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Wednesday 2018-06-27 08:16, Mitya Ivanov wrote:
Hi friends! I have a couple of packages in a project to build and i want to set their release tags according to those specified in .spec files. Is it possible to do this instead of define common "Release:" tag in prjconf?
Build Service uses the Release: field for its own purposes already, no packager should ever manually fumble with it. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Wed, 2018-06-27 at 09:16 +0300, Mitya Ivanov wrote:
Hi friends! I have a couple of packages in a project to build and i want to set their release tags according to those specified in .spec files. Is it possible to do this instead of define common "Release:" tag in prjconf?
Have you looked at: https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#How_to_contro... It's considered bad practice to not let the build service increment the release numbers with each build (or not ensure that the numbers increment with each release and build somehow), but if you just want to add a prefix/suffix to what the build service generates, I find the following method to work well. Release: <CI_CNT>.<B_CNT>.myrelease Use this carefully, and ensure you understand how rpm version comparison will work with regard to desired upgrade scenarios. -Scott

Thanks! I need to rebuild some packages and keep their release numbers similar to original packages. So defining release macro in a .spec is a way to go. 27.06.2018, 13:06, "Scott Bahling" <sbahling@suse.com>:
On Wed, 2018-06-27 at 09:16 +0300, Mitya Ivanov wrote:
Hi friends! I have a couple of packages in a project to build and i want to set their release tags according to those specified in .spec files. Is it possible to do this instead of define common "Release:" tag in prjconf?
Have you looked at: https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#How_to_contro...
It's considered bad practice to not let the build service increment the release numbers with each build (or not ensure that the numbers increment with each release and build somehow), but if you just want to add a prefix/suffix to what the build service generates, I find the following method to work well.
Release: <CI_CNT>.<B_CNT>.myrelease
Use this carefully, and ensure you understand how rpm version comparison will work with regard to desired upgrade scenarios.
-Scott -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Jan Engelhardt
-
Mitya Ivanov
-
Scott Bahling