relocatable rpm .spec question

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

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux