How do I run a shell command in spec file? I want to execute something similar like:
uname -r | sed s/(...stuff...)/(...stuff...)
If you need it in something like a %define
or %global
or a macro, you can use "%(shell_command)
". Note ()
not {}
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With