|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
%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
|
|
|
|
|
# but the same versions apply at the moment.
|
|
|
|
|
%global has_ostree %use_systemd && 0%{?suse_version} == 0
|
|
|
|
|
%global use_initial_setup 0
|
|
|
|
|
%global use_initial_setup 1
|
|
|
|
|
%global use_firstboot 0
|
|
|
|
|
%global use_inotify 1
|
|
|
|
|
%global py2_package_prefix python2
|
|
|
|
@ -91,14 +90,14 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if (%{use_subman_gui} || %{use_initial_setup} || %{use_firstboot})
|
|
|
|
|
%global use_rhsm_gtk 0
|
|
|
|
|
%global use_rhsm_gtk 1
|
|
|
|
|
%else
|
|
|
|
|
%global use_rhsm_gtk 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global use_dnf (%{with python3} && (0%{?fedora} || (0%{?rhel}))) || (0%{?rhel} >= 7)
|
|
|
|
|
%global use_yum (0%{?rhel} && 0%{?rhel} <= 7)
|
|
|
|
|
%global use_cockpit 0
|
|
|
|
|
%global use_cockpit 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%global python_sitearch %python3_sitearch
|
|
|
|
@ -256,9 +255,6 @@ Source2: subscription-manager-rpmlintrc
|
|
|
|
|
%if (0%{?suse_version} && 0%{?suse_version} < 1200)
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
%endif
|
|
|
|
|
Patch100: use-almalinux-syspurposes.patch
|
|
|
|
|
Patch101: subscription-manager-remove-redhat.repo.patch
|
|
|
|
|
Patch102: subscription-manager-debrand.patch
|
|
|
|
|
|
|
|
|
|
# The following macro examples are preceeded by '%' to stop macro expansion
|
|
|
|
|
# in the comments. (See https://bugzilla.redhat.com/show_bug.cgi?id=1224660 for
|
|
|
|
@ -383,15 +379,10 @@ Obsoletes: subscription-manager-migration <= %{version}-%{release}
|
|
|
|
|
%if !%{use_container_plugin}
|
|
|
|
|
Obsoletes: subscription-manager-plugin-container
|
|
|
|
|
%endif
|
|
|
|
|
# AlmaLinux do not provide the following packages no more
|
|
|
|
|
Obsoletes: subscription-manager-cockpit
|
|
|
|
|
Obsoletes: subscription-manager-initial-setup-addon
|
|
|
|
|
Obsoletes: rhsm-gtk
|
|
|
|
|
Obsoletes: rhsm-icons
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Subscription Manager package provides programs and libraries to allow users
|
|
|
|
|
to manage subscriptions and yum repositories from the EL entitlement
|
|
|
|
|
to manage subscriptions and yum repositories from the Red Hat entitlement
|
|
|
|
|
platform.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -451,7 +442,7 @@ and RHSM initial_setup module for Anaconda.
|
|
|
|
|
|
|
|
|
|
%if %{use_subman_gui}
|
|
|
|
|
%package -n subscription-manager-gui
|
|
|
|
|
Summary: A GUI interface to manage product subscriptions
|
|
|
|
|
Summary: A GUI interface to manage Red Hat product subscriptions
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Group: Productivity/Networking/System
|
|
|
|
|
%else
|
|
|
|
@ -474,7 +465,7 @@ Requires(postun): scrollkeeper
|
|
|
|
|
|
|
|
|
|
%description -n subscription-manager-gui
|
|
|
|
|
This package contains a GTK+ graphical interface for configuring and
|
|
|
|
|
registering a system with a Entitlement platform and manage
|
|
|
|
|
registering a system with a Red Hat Entitlement platform and manage
|
|
|
|
|
subscriptions.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -514,7 +505,7 @@ Requires: dnf >= 1.0.0
|
|
|
|
|
|
|
|
|
|
%description -n dnf-plugin-subscription-manager
|
|
|
|
|
This package provides plugins to interact with repositories and subscriptions
|
|
|
|
|
from the entitlement platform; contains subscription-manager and
|
|
|
|
|
from the Red Hat entitlement platform; contains subscription-manager and
|
|
|
|
|
product-id plugins.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -549,11 +540,9 @@ 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 almalinux_ver}
|
|
|
|
|
%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.
|
|
|
|
@ -582,7 +571,7 @@ the remote in the currently deployed .origin file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{rhsm_package_name}
|
|
|
|
|
Summary: A Python library to communicate with a Unified Entitlement Platform
|
|
|
|
|
Summary: A Python library to communicate with a Red Hat Unified Entitlement Platform
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
%else
|
|
|
|
@ -617,14 +606,14 @@ Obsoletes: python-rhsm <= 1.20.3-1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n %{rhsm_package_name}
|
|
|
|
|
A small library for communicating with the REST interface of a Unified
|
|
|
|
|
A small library for communicating with the REST interface of a Red Hat Unified
|
|
|
|
|
Entitlement Platform. This interface is used for the management of system
|
|
|
|
|
entitlements, certificates, and access to content.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2_rhsm}
|
|
|
|
|
%package -n python2-subscription-manager-rhsm
|
|
|
|
|
Summary: A Python library to communicate with a Unified Entitlement Platform
|
|
|
|
|
Summary: A Python library to communicate with a Red Hat Unified Entitlement Platform
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
%else
|
|
|
|
@ -648,7 +637,7 @@ Provides: python-rhsm = %{version}-%{release}
|
|
|
|
|
Obsoletes: python-rhsm <= 1.20.3-1
|
|
|
|
|
|
|
|
|
|
%description -n python2-subscription-manager-rhsm
|
|
|
|
|
A small library for communicating with the REST interface of a Unified
|
|
|
|
|
A small library for communicating with the REST interface of a Red Hat Unified
|
|
|
|
|
Entitlement Platform. This interface is used for the management of system
|
|
|
|
|
entitlements, certificates, and access to content.
|
|
|
|
|
%endif
|
|
|
|
@ -672,7 +661,7 @@ Subscription Manager Cockpit UI
|
|
|
|
|
|
|
|
|
|
%if %{use_rhsm_icons}
|
|
|
|
|
%package -n rhsm-icons
|
|
|
|
|
Summary: Icons for Subscription Management client tools
|
|
|
|
|
Summary: Icons for Red Hat Subscription Management client tools
|
|
|
|
|
License: GPLv2
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
@ -687,7 +676,7 @@ Conflicts: subscription-manager-cockpit < 1.26.7
|
|
|
|
|
|
|
|
|
|
%description -n rhsm-icons
|
|
|
|
|
This package contains the desktop icons for the graphical interfaces provided for management
|
|
|
|
|
of subscriptions. There are many such interfaces, subscription-manager-gui,
|
|
|
|
|
of Red Hat subscriptions. There are many such interfaces, subscription-manager-gui,
|
|
|
|
|
subscription-manager-initial-setup-addon, and subscription-manager-cockpit-plugin primarily.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -707,9 +696,6 @@ cloud metadata and signatures.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch100 -p1
|
|
|
|
|
%patch101 -p1
|
|
|
|
|
%patch102 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make -f Makefile VERSION=%{version}-%{release} CFLAGS="%{optflags}" \
|
|
|
|
@ -788,9 +774,7 @@ desktop-file-validate %{buildroot}/usr/share/applications/subscription-manager-c
|
|
|
|
|
# fake out the redhat.repo file
|
|
|
|
|
%if %{use_yum} || %{use_dnf}
|
|
|
|
|
mkdir %{buildroot}%{_sysconfdir}/yum.repos.d
|
|
|
|
|
%if %{undefined almalinux_ver}
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# fake out the certificate directories
|
|
|
|
@ -800,11 +784,9 @@ 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 almalinux_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
|
|
|
|
|
|
|
|
|
|
%if %use_cockpit
|
|
|
|
|
# install cockpit dist targz
|
|
|
|
@ -829,9 +811,6 @@ find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \;
|
|
|
|
|
ln -s %{_initrddir}/rhsmcertd %{buildroot}%{_sbindir}/rcrhsmcertd
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if %{defined almalinux_ver}
|
|
|
|
|
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'
|
|
|
|
@ -1185,12 +1164,10 @@ sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscripti
|
|
|
|
|
%endif
|
|
|
|
|
%{python_sitearch}/subscription_manager/plugin/container/*.py*
|
|
|
|
|
|
|
|
|
|
%if %{undefined almalinux_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
|
|
|
|
@ -1404,9 +1381,6 @@ gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Mar 27 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.28.42-1.alma
|
|
|
|
|
- AlmaLinux changes
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Pino Toscano <ptoscano@redhat.com> 1.28.42-1
|
|
|
|
|
- Translated using Weblate (Korean) (simmon@nplob.com)
|
|
|
|
|
- Translated using Weblate (Chinese (Simplified) (zh_CN))
|
|
|
|
@ -1415,6 +1389,7 @@ gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
(jhnidek@redhat.com)
|
|
|
|
|
- RHEL-21049: [1.28] Fix issue with registration using gsd-subman
|
|
|
|
|
(jhnidek@redhat.com)
|
|
|
|
|
|
|
|
|
|
* Tue Dec 05 2023 Pino Toscano <ptoscano@redhat.com> 1.28.41-1
|
|
|
|
|
- tito: drop bz requirement (ptoscano@redhat.com)
|
|
|
|
|
- Translated using Weblate (Chinese (Simplified) (zh_CN)) (jsefler@redhat.com)
|
|
|
|
@ -1533,6 +1508,7 @@ gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
- Fix tests for Python 3.6 runner (mhorky@redhat.com)
|
|
|
|
|
- Stop calling pytest with --failed-first (mhorky@redhat.com)
|
|
|
|
|
- Handle tests in containers better (mhorky@redhat.com)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Pino Toscano <ptoscano@redhat.com> 1.28.35-1
|
|
|
|
|
- Translated using Weblate (Spanish) (ptoscano@redhat.com)
|
|
|
|
|
- Translated using Weblate (Georgian) (temuri.doghonadze@gmail.com)
|
|
|
|
@ -1628,6 +1604,7 @@ gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
(mhorky@redhat.com)
|
|
|
|
|
- ENT-5215: Handle errors raised in DNF plugin (mhorky@redhat.com)
|
|
|
|
|
- Translated using Weblate (Chinese (Simplified) (zh_CN)) (ljanda@redhat.com)
|
|
|
|
|
|
|
|
|
|
* Tue Jun 28 2022 Christopher Snyder <csnyder@redhat.com> 1.28.31-1
|
|
|
|
|
- Translated using Weblate (Korean) (simmon@nplob.com)
|
|
|
|
|
- Update translation files (noreply@weblate.org)
|
|
|
|
|