Skip to content

Commit

Permalink
Enable arch conditionals in azurelinux-repos.spec (#11621)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjswalling authored Dec 21, 2024
1 parent 49cf4ca commit 757476a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions SPECS/azurelinux-repos/azurelinux-repos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ Source15: azurelinux-amd-preview.repo

Requires: %{name}-shared = %{version}-%{release}

# Capture the built architecture before setting noarch in order to install the
# appropriate repos for x86_64 later in this spec
%ifarch x86_64
%define buildx86 1
%endif
BuildArch: noarch

%description
Azure Linux repo files and gpg keys

%ifarch x86_64
%if %{defined buildx86}
%package amd
Summary: Azure Linux AMD GPU repo file.
Group: System Environment/Base
Expand Down Expand Up @@ -162,7 +167,7 @@ install -m 644 %{SOURCE10} $REPO_DIRECTORY
install -m 644 %{SOURCE11} $REPO_DIRECTORY
install -m 644 %{SOURCE12} $REPO_DIRECTORY
install -m 644 %{SOURCE13} $REPO_DIRECTORY
%ifarch x86_64
%if %{defined buildx86}
install -m 644 %{SOURCE14} $REPO_DIRECTORY
install -m 644 %{SOURCE15} $REPO_DIRECTORY
%endif
Expand All @@ -183,7 +188,7 @@ gpg --batch --yes --delete-keys 2BC94FFF7015A5F28F1537AD0CD9FED33135CE90
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/yum.repos.d/azurelinux-official-base.repo

%ifarch x86_64
%if %{defined buildx86}
%files amd
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/yum.repos.d/azurelinux-amd.repo
Expand Down Expand Up @@ -242,7 +247,7 @@ gpg --batch --yes --delete-keys 2BC94FFF7015A5F28F1537AD0CD9FED33135CE90
%{_sysconfdir}/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY

%changelog
* Thu Dec 19 2024 Gary Swalling <[email protected]> - 3.0-4
* Fri Dec 20 2024 Gary Swalling <[email protected]> - 3.0-4
- Add amd .repo files.

* Thu May 30 2024 Andrew Phelps <[email protected]> - 3.0-3
Expand Down

0 comments on commit 757476a

Please sign in to comment.