Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions leapp-rhui-azure.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: leapp-rhui-azure
Version: 1.0.0
Release: 16%{?dist}
Release: 17%{?dist}
Summary: Support package for in-place upgrades using Leapp

%global leappfilespath %{_datadir}/leapp-repository/repositories/system_upgrade/common/files/rhui
Expand Down Expand Up @@ -40,6 +40,10 @@ Requires: python3
Requires: python39
%endif

%if 0%{?rhel} == 9
Requires: python312
%endif

%description sap
Support files for in-place upgrade of pay-as-you-go RHEL SAP images using Leapp on Azure

Expand Down Expand Up @@ -82,13 +86,23 @@ cp src/8to9/sap/leapp-azure-sap-apps.repo %{buildroot}%{leappfilespath}/azure-sa
%endif

%if 0%{?rhel} == 9
mkdir -p %{buildroot}%{leappfilespath}/azure

mkdir -p %{buildroot}%{leappfilespath}/azure
cp src/9to10/base/leapp-azure.repo %{buildroot}/%{leappfilespath}/azure
cp src/9to10/base/RPM-GPG-KEY-microsoft-azure-release-new %{buildroot}/%{leappfilespath}/azure

mkdir -p %{buildroot}%{leappfilespath}/azure-sap-ha
cp src/9to10/sap/leapp-azure-sap-ha.repo %{buildroot}/%{leappfilespath}/azure-sap-ha

mkdir -p %{buildroot}%{leappfilespath}/azure-sap-apps
cp src/9to10/sap/leapp-azure-sap-apps.repo %{buildroot}/%{leappfilespath}/azure-sap-apps

# Same GPG key is used for all RHUI clients, take the one in /base
cp src/9to10/base/RPM-GPG-KEY-microsoft-azure-release-new %{buildroot}/%{leappfilespath}/azure-sap-ha
cp src/9to10/base/RPM-GPG-KEY-microsoft-azure-release-new %{buildroot}/%{leappfilespath}/azure-sap-apps
mkdir -p %{buildroot}/%{upgrade_gpg_keys_dir}
cp src/9to10/base/RPM-GPG-KEY-microsoft-azure-release-new %{buildroot}/%{upgrade_gpg_keys_dir}

%endif

exit 0
Expand Down Expand Up @@ -162,9 +176,31 @@ exit 0
/%{leappfilespath}/azure/leapp-azure.repo
/%{leappfilespath}/azure/RPM-GPG-KEY-microsoft-azure-release-new
/%{upgrade_gpg_keys_dir}/RPM-GPG-KEY-microsoft-azure-release-new

%files sap
%dir %{_datadir}/leapp-repository
%dir %{_datadir}/leapp-repository/repositories
%dir %{_datadir}/leapp-repository/repositories/system_upgrade
%dir %{_datadir}/leapp-repository/repositories/system_upgrade/common
%dir %{_datadir}/leapp-repository/repositories/system_upgrade/common/files
%dir %{_datadir}/leapp-repository/repositories/system_upgrade/common/files/rhui
%dir %{_datadir}/leapp-repository/repositories/system_upgrade/common/files/rhui/azure-sap-ha
%dir %{_datadir}/leapp-repository/repositories/system_upgrade/common/files/rhui/azure-sap-apps

/%{leappfilespath}/azure-sap-ha/leapp-azure-sap-ha.repo
/%{leappfilespath}/azure-sap-ha/RPM-GPG-KEY-microsoft-azure-release-new

/%{leappfilespath}/azure-sap-apps/leapp-azure-sap-apps.repo
/%{leappfilespath}/azure-sap-apps/RPM-GPG-KEY-microsoft-azure-release-new

/%{upgrade_gpg_keys_dir}/RPM-GPG-KEY-microsoft-azure-release-new

%endif

%changelog
* Tue Aug 26 2025 Michal Hecko <[email protected]> 1.0.0-17
- add RHEL 9 packages for SAP Apps and SAP HA

* Sun Jun 15 2025 Michal Hecko <[email protected]> 1.0.0-16
- add rhel9 package

Expand Down
8 changes: 8 additions & 0 deletions src/9to10/sap/leapp-azure-sap-apps.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[rhui-microsoft-azure-rhel10-sapapps]
name=Microsoft Azure RPMs for Red Hat Enterprise Linux 10 (rhel10-sapapps)
baseurl=https://rhui4-1.microsoft.com/pulp/repos/unprotected/microsoft-azure-rhel10-sapapps
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-microsoft-azure-release-new
sslverify=1

8 changes: 8 additions & 0 deletions src/9to10/sap/leapp-azure-sap-ha.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[rhui-microsoft-azure-rhel10-sap-ha]
name=Microsoft Azure RPMs for Red Hat Enterprise Linux 10 (rhel10-sap-ha)
baseurl=https://rhui4-1.microsoft.com/pulp/repos/unprotected/microsoft-azure-rhel10-sap-ha
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-microsoft-azure-release-new
sslverify=1