[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

relocatable rpm .spec question



I'm trying to make an rpm relocatable.

I've added "Prefix: /usr" to my .spec file and by using "rpm -ivh --prefix=/home/ellson/usr foobar.*.rpm"
the package installs binaries correctly in new location.

But I have a %post containing "%{_bindir}/foo" that isn't getting relocated properly.
Its still looking for /usr/bin/foo instead of /home/ellson/usr/bin/foo.

I tried "%{prefix}/bin/foo" but it still resolves to /usr/bin/foo

Is there a variable set by the --prefix option that I can use in %post ?

I couldn't find a solution in:
   http://fedora.redhat.com/docs/drafts/rpm-guide-en/ch10s05.html

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]