[Fedora-packaging] RPM macro to match build arch

Jujens jujens at jujens.eu
Fri Jul 31 14:52:31 UTC 2015


I am in the process of packaging python-wsaccel
(https://bugzilla.redhat.com/show_bug.cgi?id=1244517). This module
contains C extensions and in order to launch the tests, I need to modify
the python path so that the build module are found.

The build directory to add to the path is like:

This expression works fine with i686 and x64_84. However, on armv,
%{_target_cpu} resolves to armv7hl whereas the folder is named

Previously, I tried the %{_host} macro but it extends to i386 instead of
i686 for 32 bits build.

Is there a macro that would correctly extends in all cases (x86_64, i686
and armv7l)? If not, I will use grep to get the proper folder name.

Julien Enselme aka Jujens

More information about the packaging mailing list