!33 No man page provided via alternatives
From: @zhoupengcheng11 Reviewed-by: @gaoruoshu Signed-off-by: @gaoruoshu
This commit is contained in:
commit
052818b9e8
@ -2,7 +2,7 @@
|
||||
|
||||
Name: environment-modules
|
||||
Version: 4.2.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Provides dynamic modification of a user's environment
|
||||
License: GPLv2+
|
||||
URL: http://modules.sourceforge.net/
|
||||
@ -62,8 +62,6 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.{csh,sh}
|
||||
touch $RPM_BUILD_ROOT%{_bindir}/modulecmd
|
||||
rm -f $RPM_BUILD_ROOT%{_datadir}/Modules/bin/modulecmd
|
||||
mv $RPM_BUILD_ROOT%{_datadir}/Modules/bin/envml $RPM_BUILD_ROOT%{_bindir}/
|
||||
mv $RPM_BUILD_ROOT%{_mandir}/man1/module{,-c}.1
|
||||
mv $RPM_BUILD_ROOT%{_mandir}/man4/modulefile{,-c}.4
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/*
|
||||
|
||||
@ -75,8 +73,6 @@ sed -i -e 1s,/usr/bin/python,/usr/bin/python3, $RPM_BUILD_ROOT%{_datadir}/Modul
|
||||
make test
|
||||
|
||||
%post
|
||||
[ ! -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
|
||||
[ ! -L %{_sysconfdir}/profile.d/modules.sh ] && rm -f %{_sysconfdir}/profile.d/modules.sh
|
||||
[ ! -L %{_sysconfdir}/profile.d/modules.csh ] && rm -f %{_sysconfdir}/profile.d/modules.csh
|
||||
[ ! -L $RPM_BUILD_ROOT%{_bindir}/modulecmd ] && rm -f %{_bindir}/modulecmd
|
||||
@ -88,9 +84,7 @@ fi
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_sysconfdir}/profile.d/modules.sh modules.sh %{_datadir}/Modules/init/profile.sh 40 \
|
||||
--slave %{_sysconfdir}/profile.d/modules.csh modules.csh %{_datadir}/Modules/init/profile.csh \
|
||||
--slave %{_bindir}/modulecmd modulecmd %{_datadir}/Modules/libexec/modulecmd.tcl \
|
||||
--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
|
||||
--slave %{_bindir}/modulecmd modulecmd %{_datadir}/Modules/libexec/modulecmd.tcl
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
@ -117,12 +111,13 @@ fi
|
||||
|
||||
%files help
|
||||
%doc ChangeLog README doc/build/{NEWS.txt,MIGRATING.txt,diff_v3_v4.txt} doc/example.txt
|
||||
%ghost %{_mandir}/man1/module.1.gz
|
||||
%ghost %{_mandir}/man4/modulefile.4.gz
|
||||
%{_mandir}/man1/module-c.1.gz
|
||||
%{_mandir}/man4/modulefile-c.4.gz
|
||||
%{_mandir}/man1/module.1.gz
|
||||
%{_mandir}/man4/modulefile.4.gz
|
||||
|
||||
%changelog
|
||||
* Mon Sep 25 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 4.2.5-3
|
||||
- DESC:No man page provided via alternatives
|
||||
|
||||
* Mon Nov 08 2021 chenchen <chen_aka_jan@163.com> - 4.2.5-2
|
||||
- fix build test error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user