RPM and display rpm variables
by thx113 from LinuxQuestions.org on (#4RJT3)
Hi
I am currently building an RPM file from a spec file
I would like to display some information when executing the package
I used the %define command to set some variables such as a path for instance : %define _path XXXXX
Of course if I use an echo "XXXX" it will work
but Is is possible to display from the %{_path} variable ?
The echo %{_path} display "%{_path}" and not the data XXXX
I assume there is a trick somewhere
Cheers


I am currently building an RPM file from a spec file
I would like to display some information when executing the package
I used the %define command to set some variables such as a path for instance : %define _path XXXXX
Of course if I use an echo "XXXX" it will work
but Is is possible to display from the %{_path} variable ?
The echo %{_path} display "%{_path}" and not the data XXXX
I assume there is a trick somewhere
Cheers