[Rpm-maint] [rpm-software-management/rpm] [RFE] Provide install time alternative to `%{?_isa}` (#1344)

Vít Ondruch notifications at github.com
Mon Sep 14 15:39:16 UTC 2020

So would be macro like this acceptable for upstream RPM?

# %%Requires - Require library with right bitness.
# Usage: %%Requires [options] <library>
# There is no way to know the installation architecture of noarch package 
# during buildtime. Therefore this macro allows to require the specified
# <library> with the right bitness of the target platform. By default,
# the bitness is derived from glic.
# -r <reference_library>   Reference library used to determine bitness.
%global Requires(r:) \
%%{?2:%%{error:%%%%Requires macro requires one argument}} \
Requires: (%%{1}()(64bit) if %%{!?-r:libc.so.6}%%{-r*}()(64bit)) \
Requires: (%%{1} if %%{!?-r:libc.so.6}%%{-r*}) \

Or should I propose it for Fedora?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200914/a1098a66/attachment.html>

More information about the Rpm-maint mailing list