#21 Fix dnf-yum Provides on ELN
Opened a year ago by sgallagh. Modified a year ago
rpms/ sgallagh/dnf eln-yum  into  rawhide

file modified
+4 -5
@@ -128,13 +128,12 @@ 

  %package -n %{yum_subpackage_name}

  Requires:       %{name} = %{version}-%{release}

  Summary:        %{pkg_summary}

- %if 0%{?fedora}

- %if 0%{?fedora} >= 31

+ 

+ %if 0%{?fedora} && 0%{?fedora} < 31

+ Conflicts:      yum < 3.4.3-505

+ %else

  Provides:       %{name}-yum = %{version}-%{release}

  Obsoletes:      %{name}-yum < 5

- %else

- Conflicts:      yum < 3.4.3-505

- %endif

  %endif

  

  %description -n %{yum_subpackage_name}

On ELN, the %{fedora} macro is not present. Instead, it has a
%{rhel} macro equal to the next major release of RHEL.

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

Closing this to propose upstream

Metadata