Bug 33925 - add a useful macro with a suffix for lib-reqs
: add a useful macro with a suffix for lib-reqs
Status: NEW
: Sisyphus
(All bugs in Sisyphus/rpm-build)
: unstable
: all Linux
: P3 enhancement
Assigned To:
  Show dependency tree
Reported: 2017-09-26 19:32 by
Modified: 2019-04-17 04:26 (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2017-09-26 19:32:19
Maybe, two macros can be useful for everyone:

* the path suffix
* the suffix used in lib-Requires (in parentheses).

This code only defines the latter one --

# What follows next is a computation of the suffix, which is
# new-arch-ABI-proof and which can be generally useful in all RPM specs
# (not python-specific).
# If a new weird arch-ABI arises, at least, we'll have
# a weird suffix here, not coinciding with another existing one:
# if "%_lib" == "lib", then empty string;
# otherwise, for example,
# if "%_lib" == "lib64", then "(64bit)" (without the quotation marks).
%ABI_suffix %(s="%_lib"; s=${s#lib}; echo "${s:+(${s}bit)}")

Let's move it from rpm-build-python3 to rpm-build.
------- Comment #1 From 2019-04-17 04:26:56 -------
* Fri Jun 08 2018 Gleb F-Malinovskiy <glebfm@altlinux> 4.0.4-alt112
- Introduced %_libsuff and %_is_libsuff macros.