import environment-modules-5.3.0-1.el9

i9c changed/i9c/environment-modules-5.3.0-1.el9
MSVSphere Packaging Team 1 year ago
parent b640460f32
commit 8caf8dd705

@ -1 +1 @@
57f66c1ccbcf10e6b583421ddc591db2663b3a18 SOURCES/modules-5.0.1.tar.bz2
cb1def0bb726097edb5d077d59cf9272380243db SOURCES/modules-5.3.0.tar.bz2

2
.gitignore vendored

@ -1 +1 @@
SOURCES/modules-5.0.1.tar.bz2
SOURCES/modules-5.3.0.tar.bz2

@ -1,18 +0,0 @@
diff --git a/init/profile.sh.in b/init/profile.sh.in
index faa468639..64d21dbcd 100644
--- a/init/profile.sh.in
+++ b/init/profile.sh.in
@@ -3,7 +3,11 @@
# get current shell name by querying shell variables or looking at parent
# process name
if [ -n "${BASH:-}" ]; then
- shell=${BASH##*/}
+ if [ "${BASH##*/}" = 'sh' ]; then
+ shell='sh'
+ else
+ shell='bash'
+ fi
elif [ -n "${ZSH_NAME:-}" ]; then
shell=$ZSH_NAME
else

@ -2,16 +2,14 @@
%global vimdatadir %{_datadir}/vim/vimfiles
Name: environment-modules
Version: 5.0.1
Release: 2%{?dist}
Version: 5.3.0
Release: 1%{?dist}
Summary: Provides dynamic modification of a user's environment
License: GPLv2+
URL: http://modules.sourceforge.net/
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
Patch1: environment-modules-profilesh-misdetects-login-shell.patch
BuildRequires: tcl
BuildRequires: dejagnu
BuildRequires: make
@ -72,6 +70,7 @@ have access to the module alias.
--vimdatadir=%{vimdatadir} \
--enable-multilib-support \
--disable-doc-install \
--disable-nagelfar-addons \
--enable-modulespath \
--with-python=/usr/bin/python3 \
--with-modulepath=%{_datadir}/Modules/modulefiles:%{_sysconfdir}/modulefiles:%{_datadir}/modulefiles \
@ -162,7 +161,10 @@ fi
%{vimdatadir}/syntax/modulefile.vim
%changelog
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.0.1-1
* Wed May 17 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.3.0-1
- Rebase to environment-modules 5.3.0 (rhbz#2207885)
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.0.1-2
- Rebuilt for MSVSphere 9.1.
* Thu Sep 22 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-2

Loading…
Cancel
Save