I need to change the name "Build Host" to another actual host name, fqdn (selected from / etc / hosts)
During rpm generation, we set the rpm properties through the .spec file, but I understand that the values of the “Build Host” cannot be set through the .spec file.
Is there a way to change the "Build Host" value in rpm without actually changing the hostname of the Linux machine.
i.e. No change to / etc / sysconfig / network or
https://www.onyxpoint.com/spoofing-the-build-hostname-in-mock/
source
share