Skip to content

Commit

Permalink
Fix man page installation path
Browse files Browse the repository at this point in the history
RPM versions 4.8 and 4.9 differ in the definition of macro %_mandir:

$ rpm --version ; rpm --showrc | grep ^-14:._mandir
RPM version 4.9.0
-14: _mandir	%{_prefix}/share/man

$ rpm --version ; rpm --showrc | grep ^-14:._mandir
RPM version 4.8.0
-14: _mandir	/usr/share/man

zfs.spec.in defines %_prefix as /, so man pages end up getting
installed in /share/man on RPM 4.9 systems.  To fix this, define
%_mandir relative to %_datadir in the spec file.

Signed-off-by: Brian Behlendorf <[email protected]>
Closes #353
  • Loading branch information
nedbass authored and behlendorf committed Aug 10, 2012
1 parent 8f576c2 commit 246b0f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
%define _prefix /
%define _libexecdir /usr/libexec
%define _datadir /usr/share
%define _mandir %{_datadir}/man
%define _includedir /usr/include
%define _udevdir /lib/udev

Expand Down

0 comments on commit 246b0f5

Please sign in to comment.