On 04. 02. 21 20:19, Fabio Valentini wrote:
Some handle situations like these by setting Version for each
subpackaged component separately and only ever incrementing Release
and never resetting it to 0.

In the past, I've done:

Version:             1.2.3
# rpmdev-bumpspec will bump this:
%global base_release 1
Release:             %{base_release}%{?dist}
%global foo_version  7.8.9
# To ensure ascending EVR for foo, we include main's version into release
%global foo_release  %{version}^%{base_release}%{?dist}
# by using custom version of a subpackage %%version gets redefined, we preserve the value fir further use in the spec
%global main_version %{version}

...

%package -n          foo
Version:             %{foo_version}
Release:             %{foo_release}


---


So the ver-rels are:

main: 1.2.3-1.fc34
foo:  7.8.9-1.2.3^1.fc34

Once the base_release is bumped:

main: 1.2.3-2.fc34
foo:  7.8.9-1.2.3^2.fc34

And once the main version is bumped without foo, base_release back to 1:

main: 1.2.4-1.fc34
foo:  7.8.9-1.2.4^1.fc34

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to