From a1417f7e7c58664de74e76283ee168fd2f85e28f Mon Sep 17 00:00:00 2001 From: nazunalika Date: Thu, 8 Apr 2021 20:59:11 -0700 Subject: [PATCH] simplify --- SPECS/rocky-release.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SPECS/rocky-release.spec b/SPECS/rocky-release.spec index 2b2a270..04d1fb3 100644 --- a/SPECS/rocky-release.spec +++ b/SPECS/rocky-release.spec @@ -11,7 +11,6 @@ %define minor 3 %define rocky_rel 5 %define upstream_rel %{major}.%{minor} -%define upstream_rel_long %{upstream_rel}-1 %define base_release_version %{major} %define full_release_version %{major} @@ -35,8 +34,8 @@ BuildArch: noarch # What do we provide? Provides: rocky-release = %{version}-%{release} Provides: rocky-release(upstream) = %{upstream_rel} -Provides: redhat-release = %{upstream_rel_long} -Provides: system-release = %{upstream_rel_long} +Provides: redhat-release = %{version}-%{release} +Provides: system-release = %{version}-%{release} Provides: system-release(releasever) = %{major} ## Required by libdnf @@ -90,7 +89,7 @@ BuildArch: noarch Provides: rocky-repos(%{major}) = %{upstream_rel} Requires: system-release = %{upstream_rel} Requires: rocky-gpg-keys -Conflicts: ${name} < 8.0 +Conflicts: %{name} < 8.0 %description -n rocky-repos %{distro} package repository files for yum/dnf