Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the pkgrel variable with the release number of the build system #1043

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

munix9
Copy link

@munix9 munix9 commented Nov 27, 2024

The PKGBUILD file must contain one of the following placeholders:
pkgrel=@RELEASE@
pkgrel=@RELEASE1@
pkgrel=@RELEASE2@

Assuming the $RELEASE variable supplied by the build system contains the value 123.456 (default <CI_CNT>.<B_CNT>), the corresponding placeholder is replaced as follows:
pkgrel=123.456
pkgrel=123
pkgrel=456

@RELEASE1@ and @RELEASE2@ have been implemented in case someone wants to use a stricter variant with only one number.
Then you have the choice between <CI_CNT> or <B_CNT>.

For the use of obs-service-set_version an adjustment is necessary there.
I will link the corresponding pull-request here later.

See also openSUSE/obs-service-set_version#98

The PKGBUILD file must contain one of the following placeholders:
pkgrel=@Release@
pkgrel=@release1@
pkgrel=@release2@

Assuming the $RELEASE variable supplied by the build system contains the value "123.456"
(default <CI_CNT>.<B_CNT>), the corresponding placeholder is replaced as follows:
pkgrel=123.456
pkgrel=123
pkgrel=456

@release1@ and @release2@ have been implemented in case someone wants
to use a stricter variant with only one number.
Then you have the choice between <CI_CNT> or <B_CNT>

For the use of obs-service-set_version an adjustment is necessary there.
I will link the corresponding pull-request here later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant