You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Test case for redefine Version
Name: test-version
Version: 1.0
Release: 1
License: GPL
%description
Test case for redefine Version
%package sub
Summary: sunbackage
Version: 2.0
%description sub
sunbackage.
%prep
echo %{version}
%prep
echo %{version}
%build
echo %{version}
%install
echo %{version}
%check
echo %{version}
%files
%files sub
Despite above looks like version of the generated main package and subpackages are OK.
The text was updated successfully, but these errors were encountered:
kloczek
changed the title
4.15.1: Version field in subpackage redefines all section %{version}
4.15.1: Version field in subpackage redefines all sections %{version}
Mar 27, 2020
Yes, this is expected spec crazy behavior, and can't be changed because all sorts of constructs have been built around this behavior: in some cases you need the sub-package version, in some cases you need the main package version.
In rpm >= 4.14 you can use uppercase macro names to refer to the main package fields, which is the best we can do about this ancient mess. Closed by commit ccdb1aa.
Very simple test unit
And build:
Despite above looks like version of the generated main package and subpackages are OK.
The text was updated successfully, but these errors were encountered: