Akshat Sharma

Authored Comments

Hi,

I have a query regarding rebuilding rpm.

I am installing an rpm using "rpm --prefix=/home/cloud-user -ivh xyz.rpm" command.

I want to access this prefix(/home/cloud-user) inside the spec file when i rebuild this rpm.

which variable will have this value? how does the spec file access it from the command?

Note: I am working on relocatable directory and the rpm i am using, does not support relocatable directory. I am just trying to find a way to do it.