diff --git a/.gitignore b/.gitignore index 5d53bec..4d1f0ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/subscription-manager-1.28.36.tar.gz -SOURCES/subscription-manager-cockpit-1.28.36.tar.gz +SOURCES/subscription-manager-1.28.40.tar.gz +SOURCES/subscription-manager-cockpit-1.28.40.tar.gz diff --git a/.subscription-manager.metadata b/.subscription-manager.metadata index 8707af4..63f373a 100644 --- a/.subscription-manager.metadata +++ b/.subscription-manager.metadata @@ -1,2 +1,2 @@ -6f4343d358f15c4a62d6c9e99bcd0cef4666a415 SOURCES/subscription-manager-1.28.36.tar.gz -563cd7a7b586d72f5e9b4032593ba5befad64dff SOURCES/subscription-manager-cockpit-1.28.36.tar.gz +5326ac57a950e727a7c88b703bbc16b5b1cbe108 SOURCES/subscription-manager-1.28.40.tar.gz +79fd54731e17471f43d144a9c8e24d2fcd722d7b SOURCES/subscription-manager-cockpit-1.28.40.tar.gz diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index c5058a3..7b4276d 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -1,4 +1,4 @@ -%global dist %{?dist}.alma +%global dist %{?dist}.alma.1 # Prefer systemd over sysv on Fedora and RHEL 7+ %global use_systemd 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} && 0%{?suse_version} >= 1315) # For optional building of ostree-plugin sub package. Unrelated to systemd @@ -16,9 +16,7 @@ %global use_container_plugin 1 %endif -%if (0%{?rhel} >= 7 || 0%{?fedora}) -%global dmidecode_version >= 3.12.2-2 -%endif +%global dmidecode_arches %{ix86} x86_64 aarch64 # We use the tmpfiles_create macro from systemd-rpm-macros rpm. # Because of an incorrect version labelling of that rpm in SLES 12 which @@ -52,13 +50,6 @@ %global use_subman_gui 1 %endif -# Install subscription-manager-migration only for rhel8 and lower -%if 0%{?rhel} && 0%{?rhel} <= 8 -%global use_subscription_manager_migration 1 -%else -%global use_subscription_manager_migration 0 -%endif - %if 0%{?suse_version} && 0%{?suse_version} < 1200 %global completion_dir %{_sysconfdir}/bash_completion.d %else @@ -189,12 +180,6 @@ %global with_subman_gui WITH_SUBMAN_GUI=false %endif -%if %{use_subscription_manager_migration} -%global with_subman_migration WITH_SUBMAN_MIGRATION=true -%else -%global with_subman_migration WITH_SUBMAN_MIGRATION=false -%endif - %if %{use_cockpit} && !0%{use_subman_gui} %global with_cockpit WITH_COCKPIT=true %else @@ -231,10 +216,6 @@ %global exclude_packages %{exclude_packages}*.plugin.container, %endif -%if !%{use_subscription_manager_migration} -%global exclude_packages %{exclude_packages}subscription_manager.migrate, -%endif - # add new exclude_packages items before me %global exclude_packages %{exclude_packages}" @@ -245,8 +226,8 @@ %global use_rhsm_icons 0%{use_cockpit} || 0%{use_rhsm_gtk} Name: subscription-manager -Version: 1.28.36 -Release: 2%{?dist} +Version: 1.28.40 +Release: 1%{?dist} Summary: Tools and libraries for subscription and repository management %if 0%{?suse_version} Group: Productivity/Networking/System @@ -295,6 +276,10 @@ Requires: %{py_package_prefix}-ethtool Requires: %{py_package_prefix}-iniparse Requires: %{py_package_prefix}-decorator Requires: virt-what +%ifarch %{dmidecode_arches} +Requires: dmidecode +%endif + %if 0%{?suse_version} Requires: logrotate Requires: cron @@ -341,11 +326,6 @@ Requires: python3-gobject-base %else Requires: %{?gtk3:gobject-introspection, pygobject3-base} %{!?gtk3:pygobject2} %endif -# There's no dmi to read on these arches, so don't pull in this dep. -# Additionally, dmidecode isn't packaged at all on SUSE -%ifnarch aarch64 ppc ppc64 ppc64le s390 s390x -Requires: %{py_package_prefix}-dmidecode %{?dmidecode_version} -%endif %endif %if %use_inotify @@ -370,7 +350,6 @@ BuildRequires: gcc BuildRequires: %{py_package_prefix}-setuptools BuildRequires: gettext BuildRequires: intltool -BuildRequires: libnotify-devel BuildRequires: %{py_package_prefix}-six %if %{use_subman_gui} || %{use_cockpit} @@ -388,10 +367,7 @@ BuildRequires: libzypp %endif %if %{use_subman_gui} -BuildRequires: %{?suse_version:gconf2-devel} %{!?suse_version:GConf2-devel} BuildRequires: %{?suse_version:update-desktop-files} %{!?suse_version:scrollkeeper} -BuildRequires: %{?suse_version:dbus-1-glib-devel} %{!?suse_version:dbus-glib-devel} -BuildRequires: %{?gtk3:gtk3-devel} %{!?gtk3:gtk2-devel} %endif %if %use_systemd @@ -402,6 +378,8 @@ BuildRequires: systemd-rpm-macros BuildRequires: systemd %endif +Obsoletes: subscription-manager-migration <= %{version}-%{release} + %if !%{use_container_plugin} Obsoletes: subscription-manager-plugin-container %endif @@ -482,7 +460,6 @@ Group: System Environment/Base Requires: %{name} = %{version}-%{release} Requires: gnome-icon-theme -# We need pygtk3 and gtk2 until rhsm-icon is ported to gtk3 Requires: rhsm-gtk = %{version}-%{release} # Renamed from -gnome, so obsolete it properly @@ -502,29 +479,6 @@ subscriptions. %endif -%if %{use_subscription_manager_migration} -%package -n subscription-manager-migration -Summary: Migration scripts for moving to certificate based subscriptions -%if 0%{?suse_version} -Group: Productivity/Networking/System -%else -Group: System Environment/Base -%endif -Requires: %{name} = %{version}-%{release} -Requires: rhnlib - -# Since the migration data package is not in Fedora, we can only require it -# on RHEL. -%if 0%{?rhel} -Requires: subscription-manager-migration-data -%endif - -%description -n subscription-manager-migration -This package contains scripts that aid in moving to certificate based -subscriptions -%endif - - %if %use_dnf %package -n dnf-plugin-subscription-manager Summary: Subscription Manager plugins for DNF @@ -699,21 +653,6 @@ Entitlement Platform. This interface is used for the management of system entitlements, certificates, and access to content. %endif -%package -n subscription-manager-rhsm-certificates -Summary: Certificates required to communicate with a Unified Entitlement Platform -%if 0%{?suse_version} -Group: Development/Libraries/Python -%else -Group: Development/Libraries -%endif -Provides: python-rhsm-certificates = %{version}-%{release} -Obsoletes: python-rhsm-certificates <= 1.20.3-1 - -%description -n subscription-manager-rhsm-certificates -This package contains certificates required for communicating with the REST interface -of a Unified Entitlement Platform, used for the management of system entitlements -and to receive access to content. - %if %use_cockpit %package -n subscription-manager-cockpit Summary: Subscription Manager Cockpit UI @@ -757,8 +696,8 @@ subscription-manager-initial-setup-addon, and subscription-manager-cockpit-plugi Summary: Python package for detection of public cloud provider License: GPLv2 Requires: python3-requests -%ifnarch aarch64 ppc ppc64 ppc64le s390 s390x -Requires: %{py_package_prefix}-dmidecode %{?dmidecode_version} +%ifarch %{dmidecode_arches} +Requires: dmidecode %endif %description -n python3-cloud-what @@ -776,7 +715,7 @@ cloud metadata and signatures. make -f Makefile VERSION=%{version}-%{release} CFLAGS="%{optflags}" \ LDFLAGS="%{__global_ldflags}" OS_DIST="%{dist}" PYTHON="%{__python}" \ %{?gtk_version} \ - %{exclude_packages} %{?with_subman_gui} %{?with_subman_migration} + %{exclude_packages} %{?with_subman_gui} %if %{with python2_rhsm} python2 ./setup.py build --quiet --gtk-version=%{?gtk3:3}%{?!gtk3:2} --rpm-version=%{version}-%{release} @@ -805,7 +744,6 @@ make -f Makefile install VERSION=%{version}-%{release} \ %{?install_zypper_plugins} \ %{?with_systemd} \ %{?with_subman_gui} \ - %{?with_subman_migration} \ %{?with_cockpit} \ %{?exclude_packages} @@ -835,7 +773,6 @@ cp %{buildroot}%{python_sitearch}/rhsm/*.py %{buildroot}%{python2_sitearch}/rhsm %endif %if %use_subman_gui -desktop-file-validate %{buildroot}/etc/xdg/autostart/rhsm-icon.desktop desktop-file-validate %{buildroot}/usr/share/applications/subscription-manager-gui.desktop %else @@ -865,18 +802,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/pki/entitlement mkdir -p %{buildroot}%{_sysconfdir}/docker/certs.d/ %if %{undefined almalinux_ver} mkdir %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com -install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt +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 -%if %{undefined almalinux_ver} -mkdir -p %{buildroot}%{_sysconfdir}/etc/rhsm/ca -install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem -install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-uep.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-uep.pem -%else -rm %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem -%endif - %if %use_cockpit # install cockpit dist targz tar --strip-components=1 -xzf %{SOURCE1} -C %{buildroot} @@ -964,6 +893,7 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %attr(755,root,root) %{_bindir}/rhsmcertd %attr(755,root,root) %{_libexecdir}/rhsmcertd-worker +%attr(755,root,root) %{_libexecdir}/rhsm-package-profile-uploader # our config dirs and files @@ -1024,14 +954,6 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %{completion_dir}/rhsm-debug %{completion_dir}/rhsmcertd -%if %{use_subscription_manager_migration} -%{completion_dir}/rhn-migrate-classic-to-rhsm -%endif - -%if %use_subman_gui -%{completion_dir}/rhsm-icon -%endif - %dir %{python_sitearch}/subscription_manager # code, python modules and packages @@ -1186,7 +1108,6 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %{_bindir}/subscription-manager-gui %endif -%{_bindir}/rhsm-icon %doc %{_datadir}/gnome/help/subscription-manager/C/figures/*.png %doc %{_datadir}/gnome/help/subscription-manager/C/*.xml @@ -1195,8 +1116,7 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %{_datadir}/applications/subscription-manager-gui.desktop %{_datadir}/appdata/subscription-manager-gui.appdata.xml -# desktop config files -%{_sysconfdir}/xdg/autostart/rhsm-icon.desktop + %if !0%{?suse_version} %{_sysconfdir}/pam.d/subscription-manager-gui %{_sysconfdir}/security/console.apps/subscription-manager-gui @@ -1206,7 +1126,6 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %doc %{_mandir}/man8/subscription-manager-gui.8* -%{_mandir}/man8/rhsm-icon.8* %doc LICENSE %endif @@ -1232,24 +1151,6 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %endif -%if 0%{?use_subscription_manager_migration} -%files -n subscription-manager-migration -%defattr(-,root,root,-) -%dir %{python_sitearch}/subscription_manager/migrate -%{python_sitearch}/subscription_manager/migrate/*.py* -%if %{with python3} -%{python_sitearch}/subscription_manager/migrate/__pycache__ -%endif -%attr(755,root,root) %{_sbindir}/rhn-migrate-classic-to-rhsm - -%doc -%{_mandir}/man8/rhn-migrate-classic-to-rhsm.8* -%doc LICENSE -%if 0%{?fedora} -%doc README.Fedora -%endif -%endif - %files -n %{py_package_prefix}-syspurpose -f syspurpose.lang %defattr(-,root,root,-) %dir %{python_sitelib}/syspurpose*.egg-info @@ -1351,15 +1252,6 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti %{python_sitearch}/cloud_what/providers/__pycache__ %endif -%files -n subscription-manager-rhsm-certificates -%attr(755,root,root) %dir %{_sysconfdir}/rhsm -%attr(755,root,root) %dir %{_sysconfdir}/rhsm/ca - -%if %{undefined almalinux_ver} -%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem -%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-uep.pem -%endif - %if %use_cockpit %files -n subscription-manager-cockpit %defattr(-,root,root,-) @@ -1512,10 +1404,83 @@ gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || : %endif %changelog -* Wed Mar 29 2023 Eduard Abdullin - 1.28.36-2.alma +* Thu Oct 19 2023 Eduard Abdullin - 1.28.40-1.alma.1 - AlmaLinux changes -* Wed Feb 22 2023 Pino Toscano 1.28.36-2 +* Thu Sep 14 2023 Pino Toscano 1.28.40-1 +- Translated using Weblate (Chinese (Simplified) (zh_CN)) (ptoscano@redhat.com) + +* Wed Aug 23 2023 Pino Toscano 1.28.39-1 +- Translated using Weblate (Korean) (simmon@nplob.com) +- Update translation files (noreply@weblate.org) +- 2225443: [1.28] Hotfix of D-Bus policy (jhnidek@redhat.com) +- New extraction for translatable strings (ptoscano@redhat.com) +- Translated using Weblate (Punjabi) (jsefler@redhat.com) +- Translated using Weblate (Korean) (simmon@nplob.com) +- [1.28] Update messaging around the "container mode" (#3310) + (34436146+grunwmar@users.noreply.github.com) +- ENT-5624: Properly translate error strings (mhorky@redhat.com) +- ENT-5610: Explicitly check for provided entitlement certificates + (mhorky@redhat.com) +- Fix flake8 errors (mhorky@redhat.com) +- Run flake8 and rpmlint on CI (mhorky@redhat.com) +- Mock IOError for Insights fact collection tests (mhorky@redhat.com) +- Collect GCP Project information as cloud facts (chambrid@redhat.com) +- Collect Azure Subscription ID as a cloud fact (#3285) (chambrid@redhat.com) +- Update cockpit test lib for Chromium 113 fix (martin@piware.de) +- tests: repair attach cases in SCA mode (ptoscano@redhat.com) +- 2091269: Make locking more reliable (jhnidek@redhat.com) + +* Wed May 17 2023 Pino Toscano 1.28.38-1 +- Translated using Weblate (Italian) (toscano.pino@tiscali.it) +- Update translation files (noreply@weblate.org) +- Clean up tests using Cloud What detectors properly (mhorky@redhat.com) +- spec: Obsolete subscription-manager-migration (ptoscano@redhat.com) +- New extraction for translatable strings (ptoscano@redhat.com) +- Translated using Weblate (Italian) (toscano.pino@tiscali.it) +- 2150814: Drop RHN migration (ptoscano@redhat.com) +- ci: stop testing on Fedora Rawhide (ptoscano@redhat.com) +- Drop redhat-uep.pem (ptoscano@redhat.com) +- Move redhat-entitlement-authority.pem to container plugin + (ptoscano@redhat.com) +- Drop subscription-manager-rhsm-certificates package (ptoscano@redhat.com) +- utils: import pkg_resources only when needed (ptoscano@redhat.com) +- ENT-5532: Call rhsm-package-profile-uploader with --force-upload + (jhnidek@redhat.com) +- rhsmcertd reads default_log_level from rhsm.conf (jhnidek@redhat.com) +- Create log dir by rhsmcertd, when log dir does not exist (jhnidek@redhat.com) +- Fix issue with old glib not containing one macro (jhnidek@redhat.com) +- 2132242: [1.28] Outsource uploading DNF profile to rhsmcertd + (jhnidek@redhat.com) +- 1890080: Handle IOErrors and Exceptions when looking for process names + (csnyder@redhat.com) +- ci: install nodejs-npm on Fedora (ptoscano@redhat.com) +- tito: add centos-8-stream releaser (ptoscano@redhat.com) + +* Wed Apr 19 2023 Pino Toscano 1.28.37-1 +- 2174887: register: do a simple strip() on environment(s) input + (ptoscano@redhat.com) +- [1.28] Remove source code of rhsm-icon (jhnidek@redhat.com) +- Fix of unit tests of d-bus register: extended list of exceptions for + catching. (jhnidek@redhat.com) +- [1.28] Include D-Bus sender in User-Agent http header; Singleton + (jhnidek@redhat.com) +- Revert "Try to use --forked for all unit tests." (ptoscano@redhat.com) +- test: add simple test for 1982670 (ptoscano@redhat.com) +- 2076948: [1.28] Fix issue with race condition in rhsm.service + (jhnidek@redhat.com) +- 1982670: do not collect unentitled products in SCA mode (ptoscano@redhat.com) +- Use dmidecode on aarch64 (jhnidek@redhat.com) +- Fix possible parsing issues of dmidecode output (mhorky@redhat.com) +- zypper: drop dead python-dmidecode usage (ptoscano@redhat.com) +- facts: drop DmiFirmwareInfoCollector (ptoscano@redhat.com) +- facts: switch to DmidecodeFactCollector for DMI facts (ptoscano@redhat.com) +- facts: add dmidecode parser and facts collector (ptoscano@redhat.com) +- cloud-what: switch MiniHostCollector to dmidecode(1) (ptoscano@redhat.com) +- Remove pytest arguments for CentOS 9 Stream image (mhorky@redhat.com) +- tests: Install dnf-plugins-core every time (mhorky@redhat.com) + +* Wed Feb 22 2023 Pino Toscano 1.28.36-1 - Translated using Weblate (French) (ljanda@redhat.com) - Translated using Weblate (French) (suanand@redhat.com) - Translated using Weblate (Korean) (jsefler@redhat.com)