[Fedora-packaging] RPM macro to match build arch

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


Hi,

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:
build/lib.%{_os}-%{_target_cpu}-%{python3_version}

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

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.

Regards,
-- 
Julien Enselme aka Jujens
http://www.jujens.eu/


More information about the packaging mailing list