Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce convenient %gsub macro to wrap Lua's string.gsub()
Examples: %{gsub 3.1~~dev1 ~} -> 3.1dev1 %{gsub 2.3^post5 ^ -} -> 2.3-post5 %{gsub foo_bar [^%%w]+ -} -> foo-bar %{gsub aaa a b 2} -> bba %{gsub dummy} -> dummy %{gsub} -> (empty string) Related to rpm-software-management#1219 Related to https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/101
- Loading branch information