|
|
|
@ -2,11 +2,11 @@
|
|
|
|
|
%global vimdatadir %{_datadir}/vim/vimfiles
|
|
|
|
|
|
|
|
|
|
Name: environment-modules
|
|
|
|
|
Version: 5.3.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 5.3.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Provides dynamic modification of a user's environment
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
URL: http://modules.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
@ -32,6 +32,9 @@ Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
Provides: environment(modules)
|
|
|
|
|
Obsoletes: environment-modules-compat <= 4.8.99
|
|
|
|
|
|
|
|
|
|
# Tcl linter is useful for module lint command
|
|
|
|
|
Recommends: nagelfar
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Environment Modules package provides for the dynamic modification of
|
|
|
|
|
a user's environment via modulefiles.
|
|
|
|
@ -56,21 +59,25 @@ suite of different applications.
|
|
|
|
|
NOTE: You will need to get a new shell after installing this package to
|
|
|
|
|
have access to the module alias.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n modules-%{version}
|
|
|
|
|
%setup -q -n modules-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --prefix=%{_datadir}/Modules \
|
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
|
--libdir=%{_libdir}/%{name} \
|
|
|
|
|
--etcdir=%{_sysconfdir}/%{name} \
|
|
|
|
|
--bindir=%{_datadir}/Modules/bin \
|
|
|
|
|
--libexecdir=%{_datadir}/Modules/libexec \
|
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
|
--vimdatadir=%{vimdatadir} \
|
|
|
|
|
--nagelfardatadir=%{_datadir}/Modules/nagelfar \
|
|
|
|
|
--with-bashcompletiondir=%{_datadir}/bash-completion/completions \
|
|
|
|
|
--with-fishcompletiondir=%{_datadir}/fish/vendor_completions.d \
|
|
|
|
|
--with-zshcompletiondir=%{_datadir}/zsh/site-functions \
|
|
|
|
|
--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 \
|
|
|
|
@ -85,10 +92,12 @@ have access to the module alias.
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/modulefiles
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/modulefiles
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/fish/vendor_conf.d
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
# setup for alternatives
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/profile.d/modules.{csh,sh}
|
|
|
|
|
touch %{buildroot}%{_datadir}/fish/vendor_conf.d/modules.fish
|
|
|
|
|
touch %{buildroot}%{_bindir}/modulecmd
|
|
|
|
|
# remove modulecmd wrapper as it will be handled by alternatives
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/Modules/bin/modulecmd
|
|
|
|
@ -114,6 +123,7 @@ make test QUICKTEST=1
|
|
|
|
|
# Cleanup from pre-alternatives
|
|
|
|
|
[ ! -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 %{_datadir}/fish/vendor_conf.d/modules.fish ] && rm -f %{_datadir}/fish/vendor_conf.d/modules.fish
|
|
|
|
|
[ ! -L %{_bindir}/modulecmd ] && rm -f %{_bindir}/modulecmd
|
|
|
|
|
|
|
|
|
|
# Migration from version 3.x to 4
|
|
|
|
@ -124,6 +134,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 %{_datadir}/fish/vendor_conf.d/modules.fish modules.fish %{_datadir}/Modules/init/fish \
|
|
|
|
|
--slave %{_bindir}/modulecmd modulecmd %{_datadir}/Modules/libexec/modulecmd.tcl
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
@ -131,21 +142,33 @@ if [ $1 -eq 0 ] ; then
|
|
|
|
|
%{_sbindir}/update-alternatives --remove modules.sh %{_datadir}/Modules/init/profile.sh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING.GPLv2
|
|
|
|
|
%doc ChangeLog README NEWS.txt MIGRATING.txt INSTALL.txt CONTRIBUTING.txt changes.txt
|
|
|
|
|
%doc ChangeLog.gz README NEWS.txt MIGRATING.txt INSTALL.txt CONTRIBUTING.txt changes.txt
|
|
|
|
|
%{_sysconfdir}/modulefiles
|
|
|
|
|
%dir %{_datadir}/fish/vendor_conf.d
|
|
|
|
|
%ghost %{_sysconfdir}/profile.d/modules.csh
|
|
|
|
|
%ghost %{_sysconfdir}/profile.d/modules.sh
|
|
|
|
|
%ghost %{_datadir}/fish/vendor_conf.d/modules.fish
|
|
|
|
|
%ghost %{_bindir}/modulecmd
|
|
|
|
|
%{_bindir}/envml
|
|
|
|
|
%{_libdir}/libtclenvmodules.so
|
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
|
%{_libdir}/%{name}/libtclenvmodules.so
|
|
|
|
|
%dir %{_datadir}/Modules
|
|
|
|
|
%{_datadir}/Modules/bin
|
|
|
|
|
%dir %{_datadir}/Modules/libexec
|
|
|
|
|
%{_datadir}/Modules/libexec/modulecmd.tcl
|
|
|
|
|
%dir %{_datadir}/Modules/init
|
|
|
|
|
%{_datadir}/Modules/init/*
|
|
|
|
|
# do not need to require shell package as we "own" completion dir
|
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
|
%{_datadir}/bash-completion/completions/module
|
|
|
|
|
%{_datadir}/bash-completion/completions/ml
|
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
|
%{_datadir}/zsh/site-functions/_module
|
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
|
|
%{_datadir}/fish/vendor_completions.d/module.fish
|
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/initrc
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/modulespath
|
|
|
|
@ -159,44 +182,83 @@ fi
|
|
|
|
|
%{vimdatadir}/ftdetect/modulefile.vim
|
|
|
|
|
%{vimdatadir}/ftplugin/modulefile.vim
|
|
|
|
|
%{vimdatadir}/syntax/modulefile.vim
|
|
|
|
|
%dir %{_datadir}/Modules/nagelfar
|
|
|
|
|
%{_datadir}/Modules/nagelfar/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 17 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.3.0-1
|
|
|
|
|
- Rebase to environment-modules 5.3.0 (rhbz#2207885)
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.3.1-5
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Sep 22 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-2
|
|
|
|
|
- Fix profile.sh login shell misdetection (#2128975)
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 6 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-1
|
|
|
|
|
- Update to 5.0.1 (#2004402)
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Sep 15 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.0-1
|
|
|
|
|
- Update to 5.0.0 (#2004402)
|
|
|
|
|
+ Based on spec by Xavier Delaruelle in Fedora Rawhide. Thanks a lot!
|
|
|
|
|
- Configuration guide example.txt is replaced by more up to date INSTALL.txt
|
|
|
|
|
document
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2023 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.3.1-1
|
|
|
|
|
- Update to 5.3.1 (#2217986)
|
|
|
|
|
- Distribute ChangeLog as a zipped file to reduce installation size
|
|
|
|
|
|
|
|
|
|
* Sat May 27 2023 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.3.0-2
|
|
|
|
|
- Install module initialization script for fish as configuration snippet for
|
|
|
|
|
this shell via alternatives (#2196379)
|
|
|
|
|
|
|
|
|
|
* Mon May 15 2023 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.3.0-1
|
|
|
|
|
- Update to 5.3.0 (#2203629)
|
|
|
|
|
|
|
|
|
|
* Tue Apr 11 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.2.0-3
|
|
|
|
|
- migrate to SPDX license format
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.0.0-0.3.alpha
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Aug 3 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.0-0.2.alpha
|
|
|
|
|
- Rebuilt for added gating.yaml. Related rhbz#1989523
|
|
|
|
|
* Tue Nov 08 2022 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.2.0-1
|
|
|
|
|
- Update to 5.2.0 (#2140892)
|
|
|
|
|
- Recommends Nagelfar Tcl syntax linter
|
|
|
|
|
- Add Nagelfar linter addons
|
|
|
|
|
|
|
|
|
|
* Tue Aug 3 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.0-0.1.alpha
|
|
|
|
|
- Update to 5.0.0-alpha (#1989523)
|
|
|
|
|
+ Based on spec by Xavier Delaruelle in Fedora Rawhide. Thanks a lot!
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.1.1-1
|
|
|
|
|
- Update to 5.1.1 (#2092100)
|
|
|
|
|
- Move libtclenvmodules in an environment-modules directory under libdir
|
|
|
|
|
|
|
|
|
|
* Sat Apr 30 2022 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.1.0-1
|
|
|
|
|
- Update to 5.1.0 (#2080577)
|
|
|
|
|
- Install shell completion scripts in system-wide shell-specific locations
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Oct 16 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.0.1-1
|
|
|
|
|
- Update to 5.0.1 (#2014796)
|
|
|
|
|
|
|
|
|
|
* Sun Sep 12 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.0.0-1
|
|
|
|
|
- Update to 5.0.0
|
|
|
|
|
- Configuration guide example.txt is replaced by more up to date INSTALL.txt
|
|
|
|
|
document
|
|
|
|
|
|
|
|
|
|
* Sun Jul 25 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 5.0.0-0.1.alpha
|
|
|
|
|
- Update to 5.0.0-alpha
|
|
|
|
|
- Remove createmodule.sh and createmodule.py utilities ('module sh-to-mod'
|
|
|
|
|
should be used instead)
|
|
|
|
|
- Remove configure options that have been made default starting version 5.0
|
|
|
|
|
- Remove compat subpackage
|
|
|
|
|
- Run non-regression tests in quick mode
|
|
|
|
|
|
|
|
|
|
* Wed May 19 2021 Joe Orton <jorton@redhat.com> - 4.7.0-3
|
|
|
|
|
- add bcond for compat subpackage (#1940568)
|
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 14 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 4.8.0-1
|
|
|
|
|
- Update to 4.8.0 (#1982175)
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 4.7.0-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Tue Apr 6 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 4.7.1-1
|
|
|
|
|
- Update to 4.7.1 (#1946442)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 19 2021 Xavier Delaruelle <xavier.delaruelle@cea.fr> - 4.7.0-1
|
|
|
|
|
- Update to 4.7.0 (#1930632)
|
|
|
|
|