How to run a shell command in RPM spec file?
rpm, rpm-spec
Solution
If you need it in something like a `%define` or `%global` or a macro, you can use "`%(shell_command)`". Note `()` not `{}`.
Problem
How do I run a shell command in spec file? I want to execute something similar like: ``` uname -r | sed s/(...stuff...)/(...stuff...) ```