From dd0e4c64f58ff468df660aacd5a369ca49414001 Mon Sep 17 00:00:00 2001 From: Carl George Date: May 21 2020 20:59:55 +0000 Subject: Add conditional CentOS customizations * Disable dnf plugin * Disable initial-setup-gui Supplements in subscription-manager-initial-setup-addon --- diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index 7d50957..63d157a 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -223,7 +223,7 @@ Name: subscription-manager Version: 1.27.3 -Release: 1%{?dist} +Release: 1%{?dist}.0.1 Summary: Tools and libraries for subscription and repository management %if 0%{?suse_version} Group: Productivity/Networking/System @@ -561,9 +561,11 @@ Group: System Environment/Base Requires: rhsm-gtk = %{version}-%{release} Requires: initial-setup-gui >= 0.3.9.24-1 Obsoletes: subscription-manager-firstboot < 1.15.3-1 +%if %{undefined centos} %if (0%{?rhel} >= 8) Supplements: initial-setup-gui %endif +%endif %description -n subscription-manager-initial-setup-addon This package contains the initial-setup screens for subscription-manager. @@ -849,6 +851,10 @@ find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \; %endif %endif +%if %{defined centos} +sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscription-manager.conf +%endif + # base/cli tools use the gettext domain 'rhsm', while the # gnome-help tools use domain 'subscription-manager' %files -f rhsm.lang