How to run shell command in RPM specification file?

How to run shell command in spec file? I want to do something like this:

uname -r | sed s/(...stuff...)/(...stuff...) 
+6
source share
1 answer

If you need it like something like %define or %global or a macro, you can use " %(shell_command) ". Note () not {} .

+9
source

Source: https://habr.com/ru/post/916229/


All Articles