<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33925</bug_id>
          
          <creation_ts>2017-09-26 19:32:19 +0300</creation_ts>
          <short_desc>add a useful macro with a suffix for lib-reqs</short_desc>
          <delta_ts>2020-10-18 09:53:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>lav</cc>
    
    <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>165921</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-09-26 19:32:19 +0300</bug_when>
    <thetext>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&apos;ll have
# a weird suffix here, not coinciding with another existing one:
#
# if &quot;%_lib&quot; == &quot;lib&quot;, then empty string;
# otherwise, for example,
# if &quot;%_lib&quot; == &quot;lib64&quot;, then &quot;(64bit)&quot; (without the quotation marks).
%ABI_suffix %(s=&quot;%_lib&quot;; s=${s#lib}; echo &quot;${s:+(${s}bit)}&quot;)

Let&apos;s move it from rpm-build-python3 to rpm-build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180898</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-04-17 04:26:56 +0300</bug_when>
    <thetext>* Fri Jun 08 2018 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 4.0.4-alt112
- Introduced %_libsuff and %_is_libsuff macros.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193319</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-18 09:53:16 +0300</bug_when>
    <thetext>(Ответ для Dmitry V. Levin на комментарий #1)
&gt; * Fri Jun 08 2018 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 4.0.4-alt112
&gt; - Introduced %_libsuff and %_is_libsuff macros.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>