Skip to content

Commit

Permalink
Fix broken RPATH in spec file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes openzfs#1058
  • Loading branch information
behlendorf authored and unya committed Dec 13, 2013
1 parent b7b5851 commit dd649e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
%define version @VERSION@
%define release @ZFS_META_RELEASE@
%define debug_package %{nil}
%define _prefix /
%define _libexecdir /usr/libexec
%define _datadir /usr/share
%define _mandir %{_datadir}/man
%define _includedir /usr/include
%define _sbindir /sbin
%define _libdir /%{_lib}
%define _udevdir /lib/udev

Summary: ZFS Library and Utils
Expand Down

0 comments on commit dd649e4

Please sign in to comment.