[Rpm-maint] [rpm-software-management/rpm] Add %{expr:...} macro for parsing expressions (#817)

Panu Matilainen notifications at github.com
Thu Aug 15 08:08:07 UTC 2019


Supports the same expressions as spec %if conditions because, only this returns the result as a string instead of a boolean.

This obviously *screams* to be wired into macro conditional syntax, but that's left as an exercise for later.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/817

-- Commit Summary --

  * Resurrect parseExpressionString()
  * Export the expression parsing functions and move to librpmio
  * Add %{expr:...} macro for parsing expressions

-- File Changes --

    M build/Makefile.am (2)
    M build/parseSpec.c (2)
    M build/rpmbuild_internal.h (8)
    M doc/manual/macros (1)
    M rpmio/Makefile.am (2)
    R rpmio/expression.c (48)
    M rpmio/macro.c (5)
    M rpmio/rpmmacro.h (15)
    M tests/rpmmacro.at (21)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/817.patch
https://github.com/rpm-software-management/rpm/pull/817.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/817
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190815/0fefde03/attachment-0001.html>


More information about the Rpm-maint mailing list