Notification time stamped 2023-03-31 22:51:25 UTC
From e664348c62a504c5cb69e914660b4332176d7ccb Mon Sep 17 00:00:00 2001
From: Kim van der Riet <kvanderr(a)redhat.com>
Date: Mar 31 2023 22:51:06 +0000
Subject: Attempt fix for whl file _arch issue
---
diff --git a/qpid-proton.spec b/qpid-proton.spec
index f649fc3..6c2111d 100644
--- a/qpid-proton.spec
+++ b/qpid-proton.spec
@@ -239,8 +239,15 @@ rm -rf build
# library to be installed so we don't duplicate it inside the extension
# That is also why we have to point pkg-config at the installed library
PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig %py3_build_wheel
-ls -la dist/
-%py3_install_wheel python_qpid_proton-%{version}-cp310-cp310-linux_%{_arch}.whl
+# Fix wheel arch name mismatch for some arches
+%ifarch i386
+%define whl_arch i686
+%elifarch arm
+%define whl_arch armv7l
+%else
+%define whl_arch %{_arch}
+%endif
+%py3_install_wheel python_qpid_proton-%{version}-cp310-cp310-linux_%{whl_arch}.whl
# We seem to need to strip the build extension otherwise it seems to embed a reference
to
# the buildroot in the debug info which fails the rpmbuild - probably because we
massaged
# the pkgconfig path above
https://src.fedoraproject.org/rpms/qpid-proton/c/e664348c62a504c5cb69e914...