Use alternatives for man pages as well
This commit is contained in:
parent
8a0043263b
commit
ffb3fb5834
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: environment-modules
|
Name: environment-modules
|
||||||
Version: 3.2.10
|
Version: 3.2.10
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
Summary: Provides dynamic modification of a user's environment
|
Summary: Provides dynamic modification of a user's environment
|
||||||
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -110,6 +110,9 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles \
|
|||||||
$RPM_BUILD_ROOT%{_datadir}/modulefiles
|
$RPM_BUILD_ROOT%{_datadir}/modulefiles
|
||||||
# Install the rpm config file
|
# Install the rpm config file
|
||||||
install -Dpm 644 %{SOURCE4} %{buildroot}/%{macrosdir}/macros.%{name}
|
install -Dpm 644 %{SOURCE4} %{buildroot}/%{macrosdir}/macros.%{name}
|
||||||
|
# Prep for man alternatives
|
||||||
|
mv $RPM_BUILD_ROOT%{_mandir}/man1/module{,-c}.1
|
||||||
|
mv $RPM_BUILD_ROOT%{_mandir}/man4/modulefile{,-c}.4
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -119,8 +122,12 @@ make test
|
|||||||
%post
|
%post
|
||||||
# Cleanup from pre-alternatives
|
# Cleanup from pre-alternatives
|
||||||
[ ! -L %{_bindir}/modules.sh ] && rm -f %{_sysconfdir}/profile.d/modules.sh
|
[ ! -L %{_bindir}/modules.sh ] && rm -f %{_sysconfdir}/profile.d/modules.sh
|
||||||
|
[ ! -L %{_mandir}/man1/module.1.gz ] && rm -f %{_mandir}/man1/module.1.gz
|
||||||
|
[ ! -L %{_mandir}/man4/modulefile.4.gz ] && rm -f %{_mandir}/man4/modulefile.4.gz
|
||||||
%{_sbindir}/update-alternatives --install %{_sysconfdir}/profile.d/modules.sh modules.sh %{_datadir}/Modules/init/modules.sh 40 \
|
%{_sbindir}/update-alternatives --install %{_sysconfdir}/profile.d/modules.sh modules.sh %{_datadir}/Modules/init/modules.sh 40 \
|
||||||
--slave %{_sysconfdir}/profile.d/modules.csh modules.csh %{_datadir}/Modules/init/csh
|
--slave %{_sysconfdir}/profile.d/modules.csh modules.csh %{_datadir}/Modules/init/csh \
|
||||||
|
--slave %{_mandir}/man1/module.1.gz module.1.gz %{_mandir}/man1/module-c.1.gz \
|
||||||
|
--slave %{_mandir}/man4/modulefile.4.gz modulefile.4.gz %{_mandir}/man4/modulefile-c.4.gz
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
@ -142,12 +149,17 @@ fi
|
|||||||
%config(noreplace) %{_datadir}/Modules/init/.modulespath
|
%config(noreplace) %{_datadir}/Modules/init/.modulespath
|
||||||
%{_datadir}/Modules/modulefiles
|
%{_datadir}/Modules/modulefiles
|
||||||
%{_datadir}/modulefiles
|
%{_datadir}/modulefiles
|
||||||
%{_mandir}/man1/module.1.gz
|
%ghost %{_mandir}/man1/module.1.gz
|
||||||
%{_mandir}/man4/modulefile.4.gz
|
%ghost %{_mandir}/man4/modulefile.4.gz
|
||||||
|
%{_mandir}/man1/module-c.1.gz
|
||||||
|
%{_mandir}/man4/modulefile-c.4.gz
|
||||||
%{macrosdir}/macros.%{name}
|
%{macrosdir}/macros.%{name}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 16 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.10-21
|
||||||
|
- Use alternatives for man pages as well
|
||||||
|
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.10-20
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.10-20
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user