Skip to content

Commit 30174b0

Browse files
Daniel Machjrohel
authored andcommitted
Change yum compat package version to 4.0.version.
DNF == YUM4, tweak compat package version accordingly. Remove this version prefix once DNF has version >= 4.1.
1 parent 88a0b56 commit 30174b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dnf.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ Provides: %{name}-conf = %{version}-%{release}
144144
Common data and configuration files for DNF
145145

146146
%package -n %{yum_subpackage_name}
147+
# DNF == YUM4; prefix version with 4.0 to make it higher than any version of YUM3
148+
# save and restore version, otherwise setting Version affects other sub-packages
149+
%global pkg_version %{version}
150+
Version: 4.0.%{version}
151+
%global version %{pkg_version}
147152
Requires: %{name} = %{version}-%{release}
148153
Summary: %{pkg_summary}
149154
%if 0%{?fedora}

0 commit comments

Comments
 (0)