From 246b0f5a1658de4a8caf75c2e0712633e97b25dc Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Fri, 10 Aug 2012 11:47:07 -0700 Subject: [PATCH] Fix man page installation path 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 Closes #353 --- zfs.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/zfs.spec.in b/zfs.spec.in index 07b16e8e7..ef682819e 100644 --- a/zfs.spec.in +++ b/zfs.spec.in @@ -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