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
--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list