Fix broken RPATH in spec file
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 8 Feb 2013 00:33:06 +0000 (16:33 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Feb 2013 21:59:09 +0000 (13:59 -0800)
commit73a046cc8c863fd2ae5bcff3461005c4ecdcaec7
tree8e48f3b79c736327a011c43b782ce6ca9e12ec83
parent8dca0a9a386a7e435889e7d621e5029a15dad612
Fix broken RPATH in spec file

Rather then setting _prefix=/ and having to override all the
default install locations.  It's cleaner, and more understandable,
to leave prefix=/usr and only override _sbindir and _libdir.  This
fixes three issues:

* The commands no longer get built with an incorrect rpath for
  the libraries.   This is good because fixing this sort of
  thing is required by the Fedora packaging guidelines.

    http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

* The various AUTHORS, COPYRIGHT, etc files are now correctly
  installed under /usr/share/doc instead of /share/doc.

* _libexecdir is now handled properly for each distribution.
  Fedora/RHEL=/usr/libexec, OpenSUSE/SLES=/usr/lib, Debian=/usr/lib/rpm

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1058
zfs.spec.in