No man page provided via alternatives
This commit is contained in:
parent
5260d03986
commit
7814577f70
@ -2,7 +2,7 @@
|
||||
|
||||
Name: environment-modules
|
||||
Version: 5.1.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Provides dynamic modification of a user's environment
|
||||
License: GPLv2+
|
||||
URL: http://modules.sourceforge.net/
|
||||
@ -67,8 +67,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}/*
|
||||
|
||||
@ -79,8 +77,6 @@ install -D -p -m 644 contrib/rpm/macros.%{name} $RPM_BUILD_ROOT/%{_rpmconfigdir}
|
||||
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
|
||||
@ -92,9 +88,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
|
||||
@ -128,13 +122,14 @@ fi
|
||||
|
||||
%files help
|
||||
%doc ChangeLog README doc/build/{NEWS.txt,MIGRATING.txt,diff_v3_v4.txt}
|
||||
%ghost %{_mandir}/man1/module.1.gz
|
||||
%ghost %{_mandir}/man4/modulefile.4.gz
|
||||
%{_mandir}/man1/module.1.gz
|
||||
%{_mandir}/man4/modulefile.4.gz
|
||||
%{_mandir}/man1/ml.1.gz
|
||||
%{_mandir}/man1/module-c.1.gz
|
||||
%{_mandir}/man4/modulefile-c.4.gz
|
||||
|
||||
%changelog
|
||||
* Mon Sep 25 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 5.1.1-3
|
||||
- DESC:No man page provided via alternatives
|
||||
|
||||
* Thu Dec 1 2022 zhoupengcheng <zhoupengcheng11@huawei.com> - 5.1.1-2
|
||||
- delete unnecessary patch
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user