RPM macro to match build arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux