From 8ea9098760ad042be9f049dcb4d17bf250335948 Mon Sep 17 00:00:00 2001 From: Petr Kovar Date: Jul 24 2013 13:55:21 +0000 Subject: Bug 966467 - man path --- diff --git a/en-US/Packaging_Software_Collections.xml b/en-US/Packaging_Software_Collections.xml index 9ebc61d..2dfc397 100644 --- a/en-US/Packaging_Software_Collections.xml +++ b/en-US/Packaging_Software_Collections.xml @@ -637,7 +637,7 @@ install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{?scl:%_root_sysconfdir}%{!?scl: &DSCL; manpath Support To allow the man command on the system to display manual pages from the enabled &DSCL;, update the MANPATH environment variable with the paths to the manual pages that are associated with the &DSCL;. To update the MANPATH environment variable, add the following line to the spec file: - export MANPATH=${MANPATH:+${MANPATH}:}%{_mandir} + export MANPATH=%{_mandir}:\${MANPATH} This update relocates the %{_mandir} macro to the &DSCL; path. So that the manual pages associated with the &DSCL; are not visible as long as the &DSCL; is not enabled. The &DSCL; can provide a wrapper script that is visible to the system to enable the &DSCL;, for example in the /usr/bin/ directory. In this case, ensure that the manual pages are visible to the system even if the &DSCL; is disabled. To allow the man command on the system to display manual pages from the disabled &DSCL;, update the MANPATH environment variable with the paths to the manual pages associated with the &DSCL;. @@ -647,7 +647,7 @@ install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{?scl:%_root_sysconfdir}%{!?scl: %{?scl_prefix}manpage.sh Use the manpage.sh short script that modifies the MANPATH variable to refer to your man path directory: - export MANPATH=${MANPATH:+${MANPATH}:}/&OPT;/&RH;/software_collection/path/to/your/man_pages + export MANPATH=/&OPT;/&RH;/software_collection/path/to/your/man_pages:${MANPATH} Add the file to your &DSCL; package's spec file: SOURCE2: %{?scl_prefix}manpage.sh