[Rpm-maint] [rpm-software-management/rpm] Introduce convenient %gsub macro to wrap Lua's string.gsub() (#1764)

mkoncek notifications at github.com
Thu Jul 7 14:02:11 UTC 2022


I will add in a real-life scenario for which I could imagine a better way:
```spec
%global upstream_version 1.5.2-3
%global short_version %(echo %{upstream_version} | sed 's/-.*//')
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1764#issuecomment-1177664832
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1764/c1177664832 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220707/604f97a8/attachment.html>


More information about the Rpm-maint mailing list