I have a spec file. I need to %define a spec variable that gets its value from a one line file on the system.
For example
%define path `cat /home/user/path_file`
and in path_file is one line
/var/www/html/hosts
This partially works. I say that begins in the RPM BUILD output sometimes the value of ${path}
is literally my command cat /home/user/path_file
and sometimes the value is the line in the path_file (/var/www/html/hosts) as it should be?