Bug 33925 - add a useful macro with a suffix for lib-reqs
Summary: add a useful macro with a suffix for lib-reqs
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-26 19:32 MSK by Ivan Zakharyaschev
Modified: 2020-10-18 09:53 MSK (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2017-09-26 19:32:19 MSK
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 -- http://git.altlinux.org/gears/r/rpm-build-python3.git?p=rpm-build-python3.git;a=blob;f=rpm-build-python3/python3;h=ff38c643b7f54414e8534424e067352b7fd0021a;hb=HEAD#l170 :

# 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 Dmitry V. Levin 2019-04-17 04:26:56 MSK
* Fri Jun 08 2018 Gleb F-Malinovskiy <glebfm@altlinux> 4.0.4-alt112
- Introduced %_libsuff and %_is_libsuff macros.
Comment 2 Vitaly Lipatov 2020-10-18 09:53:16 MSK
(Ответ для Dmitry V. Levin на комментарий #1)
> * Fri Jun 08 2018 Gleb F-Malinovskiy <glebfm@altlinux> 4.0.4-alt112
> - Introduced %_libsuff and %_is_libsuff macros.