Compare commits

...

No commits in common. 'c9' and 'i9-beta' have entirely different histories.
c9 ... i9-beta

2
.gitignore vendored

@ -1 +1 @@
SOURCES/subscription-manager-1.29.38.tar.gz
SOURCES/subscription-manager-1.29.42.tar.gz

@ -1 +1 @@
711306cb958fd5b645191e8e35aebc432818501d SOURCES/subscription-manager-1.29.38.tar.gz
96fe0bb71a717a9b248374f7252505e74d61f3f8 SOURCES/subscription-manager-1.29.42.tar.gz

@ -0,0 +1,393 @@
From 6f1bb300be19c34eb7f49ddc3ddff166d48e478d Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Tue, 2 Apr 2024 19:03:24 +0300
Subject: [PATCH] Debrand for MSVSphere
---
po/as.po | 4 ++--
po/bn_IN.po | 4 ++--
po/de.po | 4 ++--
po/es.po | 4 ++--
po/fr.po | 4 ++--
po/gu.po | 4 ++--
po/hi.po | 4 ++--
po/it.po | 4 ++--
po/ja.po | 4 ++--
po/ka.po | 4 ++--
po/kn.po | 4 ++--
po/ko.po | 4 ++--
po/ml.po | 4 ++--
po/mr.po | 4 ++--
po/or.po | 4 ++--
po/pa.po | 4 ++--
po/pt_BR.po | 4 ++--
po/ru.po | 4 ++--
po/si.po | 4 ++--
po/ta_IN.po | 4 ++--
po/te.po | 4 ++--
po/zh_CN.po | 4 ++--
po/zh_TW.po | 4 ++--
src/subscription_manager/repolib.py | 2 +-
24 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/po/as.po b/po/as.po
index b903623..5a655ef 100644
--- a/po/as.po
+++ b/po/as.po
@@ -4317,8 +4317,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/bn_IN.po b/po/bn_IN.po
index ea83766..794d495 100644
--- a/po/bn_IN.po
+++ b/po/bn_IN.po
@@ -4373,8 +4373,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/de.po b/po/de.po
index 87441fd..750992b 100644
--- a/po/de.po
+++ b/po/de.po
@@ -4117,8 +4117,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"Die yum/dnf-Plugins: %s wurden automatisch zum Nutzen von Red Hat "
diff --git a/po/es.po b/po/es.po
index 8eadf14..0df0b27 100644
--- a/po/es.po
+++ b/po/es.po
@@ -4114,8 +4114,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"Los plugins yum/dnf: %s se habilitaron automáticamente en beneficio de Red "
diff --git a/po/fr.po b/po/fr.po
index 2641df4..47980c5 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -3999,8 +3999,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"Les greffons yum : %s ont été activées automatiquement au bénéfice de Red "
diff --git a/po/gu.po b/po/gu.po
index 19a6bea..2b2bf46 100644
--- a/po/gu.po
+++ b/po/gu.po
@@ -4310,8 +4310,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/hi.po b/po/hi.po
index 8bc9211..e380c48 100644
--- a/po/hi.po
+++ b/po/hi.po
@@ -4328,8 +4328,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/it.po b/po/it.po
index f764980..b7fe05e 100644
--- a/po/it.po
+++ b/po/it.po
@@ -3978,8 +3978,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"I plugin yum / dnf: %s sono stati abilitati automaticamente a vantaggio di "
diff --git a/po/ja.po b/po/ja.po
index 5eed3b8..37b58bb 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -3881,8 +3881,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"yum/dnf プラグイン: Red Hat サブスクリプション管理に対して %s が自動的に有効"
diff --git a/po/ka.po b/po/ka.po
index 4124bbb..a9533d8 100644
--- a/po/ka.po
+++ b/po/ka.po
@@ -3241,8 +3241,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/kn.po b/po/kn.po
index ccf94eb..b7cb83e 100644
--- a/po/kn.po
+++ b/po/kn.po
@@ -4475,8 +4475,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/ko.po b/po/ko.po
index d9a8875..65ffcdb 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -3827,8 +3827,8 @@ msgstr "오류: 출시 제품 인증서가 두 개 이상 설치되어 있습니
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"yum 플러그인: %s이 Red Hat 서브스크립션 관리를 통해 자동으로 활성화되었습니"
diff --git a/po/ml.po b/po/ml.po
index f78ca75..0b804c1 100644
--- a/po/ml.po
+++ b/po/ml.po
@@ -4426,8 +4426,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/mr.po b/po/mr.po
index 75a2457..d9e2a5a 100644
--- a/po/mr.po
+++ b/po/mr.po
@@ -4411,8 +4411,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/or.po b/po/or.po
index 0302ffa..5a96c13 100644
--- a/po/or.po
+++ b/po/or.po
@@ -4415,8 +4415,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/pa.po b/po/pa.po
index 0bdec5c..80730a4 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -4350,8 +4350,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 54cd731..b141332 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -4119,8 +4119,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"Os plugins do yum / dnf: %s foram ativados automaticamente para o benefício "
diff --git a/po/ru.po b/po/ru.po
index 10eedae..4bbb479 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -4065,8 +4065,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"Плагины yum / dnf: %s были автоматически включены в интересах управления "
diff --git a/po/si.po b/po/si.po
index 41b4686..cb42c49 100644
--- a/po/si.po
+++ b/po/si.po
@@ -3241,8 +3241,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/ta_IN.po b/po/ta_IN.po
index d9123be..09528f9 100644
--- a/po/ta_IN.po
+++ b/po/ta_IN.po
@@ -4467,8 +4467,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/te.po b/po/te.po
index 69bf2ac..af59781 100644
--- a/po/te.po
+++ b/po/te.po
@@ -4381,8 +4381,8 @@ msgstr ""
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 2e76242..f06a2b5 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -3737,8 +3737,8 @@ msgstr "错误:安装了多个发行产品证书。证书路径:%s"
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"yum/dnf plugins: %s 会为 Red Hat Subscription Management 自动启用。如果不需"
diff --git a/po/zh_TW.po b/po/zh_TW.po
index 30eae88..0cb78fd 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -3955,8 +3955,8 @@ msgstr "錯誤:安裝了超過一個發行產品憑證。憑證路徑:%s"
#: src/subscription_manager/repolib.py:94
#, python-format
msgid ""
-"The yum/dnf plugins: %s were automatically enabled for the benefit of Red "
-"Hat Subscription Management. If not desired, use \"subscription-manager "
+"The yum/dnf plugins: %s were automatically enabled for the benefit of "
+"Subscription Management. If not desired, use \"subscription-manager "
"config --rhsm.auto_enable_yum_plugins=0\" to block this behavior."
msgstr ""
"yum / dnf插件%s自動啟用以獲得Red Hat訂閱管理。 如果不需要,請使"
diff --git a/src/subscription_manager/repolib.py b/src/subscription_manager/repolib.py
index 4e7c016..f5c0d13 100644
--- a/src/subscription_manager/repolib.py
+++ b/src/subscription_manager/repolib.py
@@ -92,7 +92,7 @@ class YumPluginManager:
def warning_message(enabled_yum_plugins: List[str]) -> str:
message = _(
"The yum/dnf plugins: %s were automatically enabled for the benefit of "
- "Red Hat Subscription Management. If not desired, use "
+ "Subscription Management. If not desired, use "
'"subscription-manager config --rhsm.auto_enable_yum_plugins=0" to '
"block this behavior."
) % ", ".join(enabled_yum_plugins)
--
2.44.0

@ -0,0 +1,28 @@
From 56b3d1ffa69fe78beeabeb682cd96ef643d39594 Mon Sep 17 00:00:00 2001
From: Eugene Zamriy <eugene@zamriy.info>
Date: Sun, 2 Apr 2023 19:02:34 +0300
Subject: [PATCH 2/3] Set MSVSphere syspurposes
---
etc-conf/syspurpose/valid_fields.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/etc-conf/syspurpose/valid_fields.json b/etc-conf/syspurpose/valid_fields.json
index 1ac7ea0..0cf3787 100644
--- a/etc-conf/syspurpose/valid_fields.json
+++ b/etc-conf/syspurpose/valid_fields.json
@@ -1,8 +1,8 @@
{
"role": [
- "Red Hat Enterprise Linux Server",
- "Red Hat Enterprise Linux Workstation",
- "Red Hat Enterprise Linux Compute Node"
+ "MSVSphere Server",
+ "MSVSphere Workstation",
+ "MSVSphere Compute Node"
],
"service_level_agreement": [
"Premium",
--
2.39.2

@ -0,0 +1,29 @@
From 75078e90d2fb7ab6ef68c8232f7e695acff92e44 Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Tue, 2 Apr 2024 19:06:58 +0300
Subject: [PATCH] Disable repo file creation
---
src/subscription_manager/repofile.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/subscription_manager/repofile.py b/src/subscription_manager/repofile.py
index cc98803..78c7ce2 100644
--- a/src/subscription_manager/repofile.py
+++ b/src/subscription_manager/repofile.py
@@ -375,11 +375,7 @@ class RepoFileBase:
"""
Try to create new repo file.
"""
- self.create_dir_path()
- if self.path_exists(self.path) or not self.manage_repos:
- return
- with open(self.path, "w") as f:
- f.write(self.REPOFILE_HEADER)
+ pass
def fix_content(self, content: str) -> str:
return content
--
2.44.0

@ -0,0 +1,23 @@
From 334cd94ab1579653e76a9962b748fd11460badab Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Tue, 2 Apr 2024 19:07:46 +0300
Subject: [PATCH] Disable subscription manager plugin
---
etc-conf/plugin/subscription-manager.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc-conf/plugin/subscription-manager.conf b/etc-conf/plugin/subscription-manager.conf
index 9050582..2392f67 100644
--- a/etc-conf/plugin/subscription-manager.conf
+++ b/etc-conf/plugin/subscription-manager.conf
@@ -1,5 +1,5 @@
[main]
-enabled=1
+enabled=0
# When following option is set to 1, then all repositories defined outside redhat.repo will be disabled
# every time subscription-manager plugin is triggered by dnf or yum
--
2.44.0

@ -95,8 +95,8 @@
%global exclude_packages %{exclude_packages}"
Name: subscription-manager
Version: 1.29.38
Release: 1%{?dist}
Version: 1.29.42
Release: 1%{?dist}.inferit
Summary: Tools and libraries for subscription and repository management
%if 0%{?suse_version}
Group: Productivity/Networking/System
@ -113,6 +113,12 @@ URL: http://www.candlepinproject.org/
# tito build --tag subscription-manager-$VERSION-$RELEASE --tgz
Source0: %{name}-%{version}.tar.gz
# MSVSphere patches
Patch1001: 0001-Debrand-for-MSVSphere.patch
Patch1002: 0002-Set-MSVSphere-syspurposes.patch
Patch1003: 0003-Disable-repo-file-creation.patch
Patch1004: 0004-Disable-subscription-manager-plugin.patch
# Especially for the OpenSuse Build Service we need to have another lint config
%if 0%{?suse_version}
Source2: subscription-manager-rpmlintrc
@ -156,10 +162,9 @@ Requires: python3-gobject-base
%endif
# rhel 8 has different naming for setuptools going forward
# on newer rhels and Fedora setuptools is not needed on runtime at all
%if (0%{?rhel} && 0%{?rhel} == 8)
Requires: platform-python-setuptools
%else
Requires: %{py_package_prefix}-setuptools
%endif
%if %{use_dnf}
@ -187,6 +192,7 @@ BuildRequires: openssl-devel
BuildRequires: gcc
BuildRequires: %{py_package_prefix}-setuptools
BuildRequires: gettext
BuildRequires: glib2-devel
%if 0%{?suse_version}
BuildRequires: distribution-release
@ -211,6 +217,12 @@ Obsoletes: rhsm-gtk <= %{version}-%{release}
Obsoletes: subscription-manager-plugin-container <= %{version}
%endif
# MSVSphere doesn't provide those packages
Obsoletes: subscription-manager-cockpit
Obsoletes: subscription-manager-initial-setup-addon
Obsoletes: rhsm-gtk
Obsoletes: rhsm-icons
%if %{use_dnf}
%if %{create_libdnf_rpm}
# The libdnf plugin is in separate RPM, but shubscription-manager should be dependent
@ -226,7 +238,7 @@ Obsoletes: %{py_package_prefix}-syspurpose <= %{version}
%description
The Subscription Manager package provides programs and libraries to allow users
to manage subscriptions and yum repositories from the Red Hat entitlement
to manage subscriptions and yum repositories from the EL entitlement
platform.
@ -254,7 +266,7 @@ BuildRequires: libdnf-devel >= 0.22.5
Obsoletes: dnf-plugin-subscription-manager < 1.29.0
%description -n libdnf-plugin-subscription-manager
This package provides a plugin to interact with repositories from the Red Hat
This package provides a plugin to interact with repositories from an
entitlement platform; contains only one product-id binary plugin used by
e.g. microdnf.
@ -279,7 +291,7 @@ Requires: python3-librepo
Requires: dnf >= 1.0.0
%description -n dnf-plugin-subscription-manager
This package provides plugins to interact with repositories and subscriptions
from the Red Hat entitlement platform; contains subscription-manager and
from an entitlement platform; contains subscription-manager and
product-id plugins.
%endif
@ -315,7 +327,7 @@ the remote in the currently deployed .origin file.
%package -n %{rhsm_package_name}
Summary: A Python library to communicate with a Red Hat Unified Entitlement Platform
Summary: A Python library to communicate with a Unified Entitlement Platform
%if 0%{?suse_version}
Group: Development/Libraries/Python
%endif
@ -338,7 +350,7 @@ Provides: python-rhsm = %{version}-%{release}
Obsoletes: python-rhsm <= 1.20.3-1
%description -n %{rhsm_package_name}
A small library for communicating with the REST interface of a Red Hat Unified
A small library for communicating with the REST interface of a Unified
Entitlement Platform. This interface is used for the management of system
entitlements, certificates, and access to content.
@ -361,6 +373,11 @@ cloud metadata and signatures.
%prep
%setup -q
%patch1001 -p1
%patch1002 -p1
%patch1003 -p1
%patch1004 -p1
%build
make -f Makefile VERSION=%{version}-%{release} CFLAGS="%{optflags}" \
@ -407,7 +424,9 @@ popd
# fake out the redhat.repo file
%if %{use_dnf}
mkdir %{buildroot}%{_sysconfdir}/yum.repos.d
%if %{undefined msvsphere_ver}
touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo
%endif
%endif
# fake out the certificate directories
@ -417,9 +436,11 @@ mkdir -p %{buildroot}%{_sysconfdir}/pki/entitlement
%if %{use_container_plugin}
# Setup cert directories for the container plugin:
mkdir -p %{buildroot}%{_sysconfdir}/docker/certs.d/
%if %{undefined msvsphere_ver}
mkdir %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com
install -m 644 %{_builddir}/%{buildsubdir}/src/content_plugins/redhat-entitlement-authority.pem %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt
%endif
%endif
# fix timestamps on our byte compiled files so they match across arches
find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \;
@ -615,10 +636,12 @@ find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \;
%{python_sitearch}/subscription_manager/plugin/container/__pycache__
%{python_sitearch}/subscription_manager/plugin/container/*.py*
%if %{undefined msvsphere_ver}
# Copying Red Hat CA cert into each directory:
%attr(755,root,root) %dir %{_sysconfdir}/docker/certs.d/cdn.redhat.com
%attr(644,root,root) %{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt
%endif
%endif
%if %has_ostree
%files -n subscription-manager-plugin-ostree
@ -735,6 +758,124 @@ rmdir %{python_sitearch}/subscription_manager-*-*.egg-info --ignore-fail-on-non-
rm -f /var/lib/rhsm/cache/rhsm_icon.json
%changelog
* Thu Aug 22 2024 Pino Toscano <ptoscano@redhat.com> 1.29.42-1
- feat: forcefully switch automatic cloud registration to v1
(ptoscano@redhat.com)
* Thu Aug 15 2024 Pino Toscano <ptoscano@redhat.com> 1.29.41-1
- feat: update man page with deprecation notices (jajerome@redhat.com)
- feat: Disable anonymous cloud registration temporarily (mhorky@redhat.com)
- feat: Deprecate 'syspurpose addons' (mhorky@redhat.com)
- fix: make SyspurposeComplianceStatusCache.get_overall_status() always usable
(ptoscano@redhat.com)
- fix: Change order of checks (jhnidek@redhat.com)
- fix: Cache shouldn't try to get data from server without UUID
(jhnidek@redhat.com)
- feat: Deprecate import command (zpetrace@redhat.com)
- fix: 1.29 modify section about remove command in man page
(jhnidek@redhat.com)
- feat: 1.29 Deprecate redeem sub-command (jhnidek@redhat.com)
- fix: Reformated man page of subscription-manager (jhnidek@redhat.com)
- fix: [1.29] Remove command should not be primary command (jhnidek@redhat.com)
- feat: deprecate autosubscribe/auto-attach register options
(jajerome@redhat.com)
- feat: deprecate attach/auto-attach modules (jajerome@redhat.com)
- docs: deprecate attach/auto-attach in man page (jajerome@redhat.com)
- fix: Hide subscription management "errors" in container mode
(mhorky@redhat.com)
- feat: 1.29 Deprecate remove sub-command (jhnidek@redhat.com)
- fix: 1.29 Do not try to test this branch for Fedora latest
(jhnidek@redhat.com)
- fix: 1.29 Do not try to test this branch for Fedora rawhide
(jhnidek@redhat.com)
- fix(test): Properly stop method mock (mhorky@redhat.com)
- feat: Azure: added extended location and type of location fact
(jhnidek@redhat.com)
- fix: Update version of Azure metadata (jhnidek@redhat.com)
- feat: Added Azure location to facts (jhnidek@redhat.com)
- feat: Added zone GCP fact (jhnidek@redhat.com)
- feat: Added more AWS cloud facts (jhnidek@redhat.com)
- fix: Change type hint according returned value. (jhnidek@redhat.com)
- feat: Add warning message about release version to dnf plugin
(jhnidek@redhat.com)
- Bump black from 23.3.0 to 24.3.0
(49699333+dependabot[bot]@users.noreply.github.com)
- Format code with black==24.3.0 (ptoscano@redhat.com)
- Fix memory leaks in test-productdb.c (jhnidek@redhat.com)
- Fix memory leaks in productdb.c (jhnidek@redhat.com)
- fix: Function prototype without declaration is deprecated
(jhnidek@redhat.com)
- Removed unused includes of .h files (jhnidek@redhat.com)
- libdnf: switch from g_error_free() to g_clear_error() in tests
(ptoscano@redhat.com)
- libdnf: do not build test code in plugin (ptoscano@redhat.com)
- Change handling of deprecated `datetime.datetime.utcnow()`
(mhorky@redhat.com)
- CCT-66: Update identity reporting in DNF plugin during autoregistration
(mhorky@redhat.com)
- Remove automatic registration delay for rhsmcertd (mhorky@redhat.com)
- Remove API endpoint for automatic cloud registration v1 (mhorky@redhat.com)
- CCT-67: Use automatic registration v2 (mhorky@redhat.com)
- IdentityUpdateAction: Improve logging for updating identity certificates
(mhorky@redhat.com)
- Identity: Add method to extract current owner (mhorky@redhat.com)
- rhsmcertd: Define exit codes (mhorky@redhat.com)
- rhsmcertd: Use module-level logger (mhorky@redhat.com)
- Add AnonymousCertificateManager (mhorky@redhat.com)
- Add CloudTokenCache for Candlepin JWT (mhorky@redhat.com)
- Implement API endpoints for Automatic registration v2 (mhorky@redhat.com)
- Update documentation for one API call in connection.py (mhorky@redhat.com)
- Fix type hint of RegisterService.register() (mhorky@redhat.com)
- rhsmcertd: Drop D-Bus loop code (mhorky@redhat.com)
- rhsmcertd: Add type hints (mhorky@redhat.com)
- rhsmcertd: Remove forgotten old comment (mhorky@redhat.com)
- Stop logging full lscpu output (mhorky@redhat.com)
- Prevent double-logging of syspurpose cache log statement (mhorky@redhat.com)
- Update the log message containing response time statistics
(mhorky@redhat.com)
- CCT-266: Update TLS flags (mhorky@redhat.com)
* Thu Jan 18 2024 Pino Toscano <ptoscano@redhat.com> 1.29.40-1
- Translated using Weblate (Korean) (simmon@nplob.com)
- Translated using Weblate (Chinese (Simplified) (zh_CN))
(mariocanfly@hotmail.com)
- spec: Add missing GLib dependency when building without DNF
(debarshir@gnome.org)
- Remove deprecated `locale.*()` functions (mhorky@redhat.com)
- Remove version constraint of pytest (mhorky@redhat.com)
- RHEL-15110: RegisterServer is stopped, when not needed (jhnidek@redhat.com)
- RHEL-15110: Fix issue with registration using gsd-subman (jhnidek@redhat.com)
- Fix an error in debug logging of cloud-what (mhorky@redhat.com)
- ci: bump actions/upload-artifact from 3 to 4
(49699333+dependabot[bot]@users.noreply.github.com)
- Improve debug logging to make it faster to understand (mhorky@redhat.com)
* Thu Nov 23 2023 Pino Toscano <ptoscano@redhat.com> 1.29.39-1
- tito: drop bz requirement (ptoscano@redhat.com)
- Translated using Weblate (Chinese (Simplified) (zh_CN)) (jsefler@redhat.com)
- RHEL-7206: Small change of message printed by dnf plugin (jhnidek@redhat.com)
- CCT-118: Fix flake8 error E721 (mhorky@redhat.com)
- Fix type hint in rhsm (mhorky@redhat.com)
- Simplify autoregistration test setup (mhorky@redhat.com)
- RHEL-9435: Get AWS metadata via IMDSv2 (mhorky@redhat.com)
- Fixed inappropriate logical expression (ataf@openrefactory.com)
- CCT-71: Try to ping server, when --proxy is used (jhnidek@redhat.com)
- CCT-10: Ensure IPv6-based URLs are properly formatted (mhorky@redhat.com)
- RPM: Avoid needless runtime requirement on python3-setuptools
(miro@hroncok.cz)
- cli: normalize hostname in error message (ptoscano@redhat.com)
- connection: normalize hostname in ConnectionOSErrorException
(ptoscano@redhat.com)
- Improved printing of addresses and URLs (jhnidek@redhat.com)
- Use username and password from --proxy=URL (jhnidek@redhat.com)
- Use parse_url() from utils.py for parsing URL, when --proxy is used.
(jhnidek@redhat.com)
- 2225403: Parse URL properly (jhnidek@redhat.com)
* Wed Nov 8 2023 Arkady L. Shane <tigro@msvsphere-os.ru> 1.29.38-1.inferit
- De-branded for MSVSphere
- Disable the DNF plugin by default
* Thu Sep 14 2023 Pino Toscano <ptoscano@redhat.com> 1.29.38-1
- Translated using Weblate (Chinese (Simplified) (zh_CN)) (ptoscano@redhat.com)
- ci: bump actions/checkout from 3 to 4
@ -834,6 +975,9 @@ rm -f /var/lib/rhsm/cache/rhsm_icon.json
- 2169251: connection: restore UEPConnection.getJob() (ptoscano@redhat.com)
- ENT-5106: Type-hint subscription_manager/ files (mhorky@redhat.com)
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.29.33-1
- Rebuilt for MSVSphere 9.1.
* Thu Feb 16 2023 Pino Toscano <ptoscano@redhat.com> 1.29.33-1
- Translated using Weblate (French) (ljanda@redhat.com)
- Translated using Weblate (Chinese (Simplified) (zh_CN)) (suanand@redhat.com)

Loading…
Cancel
Save