|
|
d93c5f |
Name: environment-modules
|
|
|
d93c5f |
Version: 3.2.10
|
|
|
d93c5f |
Release: 10%{?dist}
|
|
|
d93c5f |
Summary: Provides dynamic modification of a user's environment
|
|
|
d93c5f |
|
|
|
d93c5f |
Group: System Environment/Base
|
|
|
d93c5f |
License: GPLv2+
|
|
|
d93c5f |
URL: http://modules.sourceforge.net/
|
|
|
d93c5f |
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
|
|
|
d93c5f |
Source1: modules.sh
|
|
|
d93c5f |
Source2: createmodule.sh
|
|
|
d93c5f |
Source3: createmodule.py
|
|
|
d93c5f |
Patch0: environment-modules-3.2.7-bindir.patch
|
|
|
d93c5f |
# Comment out stray module use in modules file when not using versioning
|
|
|
d93c5f |
# https://bugzilla.redhat.com/show_bug.cgi?id=895555
|
|
|
d93c5f |
Patch1: environment-modules-versioning.patch
|
|
|
d93c5f |
# Fix module clear command
|
|
|
d93c5f |
# https://bugzilla.redhat.com/show_bug.cgi?id=895551
|
|
|
d93c5f |
Patch2: environment-modules-clear.patch
|
|
|
d93c5f |
# Patch from modules list to add completion to avail command
|
|
|
d93c5f |
Patch3: environment-modules-avail.patch
|
|
|
d93c5f |
Patch4: environment-modules-3.2.9-call-test-by-full-path-in-csh.patch
|
|
|
d93c5f |
Patch5: environment-modules-3.2.10-ignore-nested-dirs.patch
|
|
|
d93c5f |
Patch6: environment-modules-3.2.10-unload-from-module.patch
|
|
|
d93c5f |
|
|
|
d93c5f |
BuildRequires: tcl-devel, tclx-devel, libX11-devel
|
|
|
d93c5f |
BuildRequires: dejagnu
|
|
|
d93c5f |
BuildRequires: man
|
|
|
d93c5f |
#For ps in startup script
|
|
|
d93c5f |
Requires: procps
|
|
|
d93c5f |
|
|
|
d93c5f |
%description
|
|
|
d93c5f |
The Environment Modules package provides for the dynamic modification of
|
|
|
d93c5f |
a user's environment via modulefiles.
|
|
|
d93c5f |
|
|
|
d93c5f |
Each modulefile contains the information needed to configure the shell
|
|
|
d93c5f |
for an application. Once the Modules package is initialized, the
|
|
|
d93c5f |
environment can be modified on a per-module basis using the module
|
|
|
d93c5f |
command which interprets modulefiles. Typically modulefiles instruct
|
|
|
d93c5f |
the module command to alter or set shell environment variables such as
|
|
|
d93c5f |
PATH, MANPATH, etc. modulefiles may be shared by many users on a system
|
|
|
d93c5f |
and users may have their own collection to supplement or replace the
|
|
|
d93c5f |
shared modulefiles.
|
|
|
d93c5f |
|
|
|
d93c5f |
Modules can be loaded and unloaded dynamically and atomically, in an
|
|
|
d93c5f |
clean fashion. All popular shells are supported, including bash, ksh,
|
|
|
d93c5f |
zsh, sh, csh, tcsh, as well as some scripting languages such as perl.
|
|
|
d93c5f |
|
|
|
d93c5f |
Modules are useful in managing different versions of applications.
|
|
|
d93c5f |
Modules can also be bundled into metamodules that will load an entire
|
|
|
d93c5f |
suite of different applications.
|
|
|
d93c5f |
|
|
|
d93c5f |
NOTE: You will need to get a new shell after installing this package to
|
|
|
d93c5f |
have access to the module alias.
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%prep
|
|
|
d93c5f |
%setup -q -n modules-%{version}
|
|
|
d93c5f |
%patch0 -p1 -b .bindir
|
|
|
d93c5f |
%patch1 -p1 -b .versioning
|
|
|
d93c5f |
%patch2 -p1 -b .clear
|
|
|
d93c5f |
%patch3 -p1 -b .avail
|
|
|
d93c5f |
%patch4 -p1 -b .call-test-by-full-path-in-csh
|
|
|
d93c5f |
%patch5 -p1 -b .ignore-nested-dirs
|
|
|
d93c5f |
%patch6 -p1 -b .unload-from-module
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%build
|
|
|
d93c5f |
%configure --disable-versioning \
|
|
|
d93c5f |
--prefix=%{_datadir} \
|
|
|
d93c5f |
--exec-prefix=%{_datadir}/Modules \
|
|
|
d93c5f |
--with-man-path=$(manpath) \
|
|
|
d93c5f |
--with-module-path=%{_sysconfdir}/modulefiles
|
|
|
d93c5f |
# --with-debug=42 --with-log-facility-debug=stderr
|
|
|
d93c5f |
make %{?_smp_mflags}
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%install
|
|
|
d93c5f |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
d93c5f |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
d93c5f |
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.sh
|
|
|
d93c5f |
cp -p %SOURCE2 %SOURCE3 $RPM_BUILD_ROOT%{_datadir}/Modules/bin
|
|
|
d93c5f |
ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.csh
|
|
|
d93c5f |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%check
|
|
|
d93c5f |
make test
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%files
|
|
|
d93c5f |
%doc LICENSE.GPL README TODO
|
|
|
d93c5f |
%{_sysconfdir}/modulefiles
|
|
|
d93c5f |
%config(noreplace) %{_sysconfdir}/profile.d/*
|
|
|
d93c5f |
%{_bindir}/modulecmd
|
|
|
d93c5f |
%dir %{_datadir}/Modules
|
|
|
d93c5f |
%{_datadir}/Modules/bin/
|
|
|
d93c5f |
%dir %{_datadir}/Modules/init
|
|
|
d93c5f |
%config(noreplace) %{_datadir}/Modules/init/*
|
|
|
d93c5f |
%config(noreplace) %{_datadir}/Modules/init/.modulespath
|
|
|
d93c5f |
%{_datadir}/Modules/modulefiles
|
|
|
d93c5f |
%{_mandir}/man1/module.1.gz
|
|
|
d93c5f |
%{_mandir}/man4/modulefile.4.gz
|
|
|
d93c5f |
|
|
|
d93c5f |
|
|
|
d93c5f |
%changelog
|
|
|
d93c5f |
* Mon Jun 22 2015 Jan Synáček <jsynacek@redhat.com> - 3.2.10-10
|
|
|
d93c5f |
- fix: createmodule scripts incorrectly handles env vars prefixed/suffixed without colon (#1233223)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Apr 29 2015 Jan Synáček <jsynacek@redhat.com> - 3.2.10-9
|
|
|
d93c5f |
- fix: SourceVers wrongly sets version in nested directory (#1180652)
|
|
|
d93c5f |
- fix: unload from loaded modulefile broken (#1117327)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.2.10-8
|
|
|
d93c5f |
- Mass rebuild 2014-01-24
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.2.10-7
|
|
|
d93c5f |
- Mass rebuild 2013-12-27
|
|
|
d93c5f |
|
|
|
d93c5f |
* Thu Aug 8 2013 Jan Synáček <jsynacek@redhat.com> - 3.2.10-6
|
|
|
d93c5f |
- Call test command in csh alias by its full path (bug #977331)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue May 14 2013 Orion Poplawski <orion@cora.nwra.com> - 3.2.10-5
|
|
|
d93c5f |
- Really do not replace modified profile.d scripts (bug #962762)
|
|
|
d93c5f |
- Specfile cleanup
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Apr 17 2013 Orion Poplawski <orion@cora.nwra.com> - 3.2.10-4
|
|
|
d93c5f |
- Do not replace modified profile.d scripts (bug #953199)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.10-3
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Jan 15 2013 Orion Poplawski <orion@cora.nwra.com> - 3.2.10-2
|
|
|
d93c5f |
- Add patch to comment out stray module use in modules file when not using
|
|
|
d93c5f |
versioning (bug #895555)
|
|
|
d93c5f |
- Add patch to fix module clear command (bug #895551)
|
|
|
d93c5f |
- Add patch from modules list to add completion to avail command
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Dec 21 2012 Orion Poplawski <orion@cora.nwra.com> - 3.2.10-1
|
|
|
d93c5f |
- Update to 3.2.10
|
|
|
d93c5f |
- Drop regex patch
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Oct 31 2012 Orion Poplawski <orion@cora.nwra.com> - 3.2.9c-5
|
|
|
d93c5f |
- Updated createmodule.sh, added createmodule.py, can handle path prefixes
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Aug 24 2012 Orion Poplawski <orion@cora.nwra.com> - 3.2.9c-4
|
|
|
d93c5f |
- Add patch to fix segfault from Tcl RexExp handling (bug 834580)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.9c-3
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.9c-2
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Nov 29 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.9c-1
|
|
|
d93c5f |
- Update to 3.2.9c (fixes bug 753760)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Nov 22 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.9b-2
|
|
|
d93c5f |
- Make .modulespath a config file
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Nov 15 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.9b-1
|
|
|
d93c5f |
- Update to 3.2.9b
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Nov 11 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.9a-2
|
|
|
d93c5f |
- Add %%check section
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Nov 11 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.9a-1
|
|
|
d93c5f |
- Update to 3.2.9a
|
|
|
d93c5f |
- Drop strcpy patch
|
|
|
d93c5f |
|
|
|
d93c5f |
* Thu Sep 22 2011 Orion Poplawski <orion@cora.nwra.com> - 3.2.8a-3
|
|
|
d93c5f |
- Add patch to fix overlapping strcpy() in Remove_Path, hopefully fixes
|
|
|
d93c5f |
bug 737043
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.8a-2
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Oct 4 2010 Orion Poplawski <orion@cora.nwra.com> - 3.2.8a-1
|
|
|
d93c5f |
- Update to 3.2.8a, changes --with-def-man-path to --with-man-path
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Oct 4 2010 Orion Poplawski <orion@cora.nwra.com> - 3.2.8-1
|
|
|
d93c5f |
- Update to 3.2.8
|
|
|
d93c5f |
- Drop mandir patch, use --with-def-man-path
|
|
|
d93c5f |
|
|
|
d93c5f |
* Thu Jan 7 2010 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-7
|
|
|
d93c5f |
- Add patch to set a sane default MANPATH
|
|
|
d93c5f |
- Add createmodule.sh utility script for creating modulefiles
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Nov 30 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-6
|
|
|
d93c5f |
- Add Requires: propcs (bug #54272)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Oct 26 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-5
|
|
|
d93c5f |
- Don't assume different shell init scripts exist (bug #530770)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Oct 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-4
|
|
|
d93c5f |
- Don't load bash init script when bash is running as "sh" (bug #529745)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Oct 19 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-3
|
|
|
d93c5f |
- Support different flavors of "sh" (bug #529493)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-2
|
|
|
d93c5f |
- Add patch to fix modulecmd path in init files
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-1
|
|
|
d93c5f |
- Update to 3.2.7b
|
|
|
d93c5f |
|
|
|
d93c5f |
* Mon Sep 21 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7-1
|
|
|
d93c5f |
- Update to 3.2.7, fixes bug #524475
|
|
|
d93c5f |
- Drop versioning patch fixed upstream
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-8
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-7
|
|
|
d93c5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Sep 3 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-6
|
|
|
d93c5f |
- Change %%patch -> %%patch0
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Mar 14 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-5
|
|
|
d93c5f |
- Add BR libX11-devel so modulecmd can handle X resources
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Mar 5 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-4
|
|
|
d93c5f |
- Add patch to fix extraneous version path entry properly
|
|
|
d93c5f |
- Use --with-module-path to point to /etc/modulefiles for local modules,
|
|
|
d93c5f |
this also fixes bug #436041
|
|
|
d93c5f |
|
|
|
d93c5f |
* Sat Feb 9 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-3
|
|
|
d93c5f |
- Rebuild for gcc 3.4
|
|
|
d93c5f |
|
|
|
d93c5f |
* Thu Jan 03 2008 - Alex Lancaster <alexlan at fedoraproject.org> - 3.2.6-2
|
|
|
d93c5f |
- Rebuild for new Tcl (8.5).
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Nov 2 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-1
|
|
|
d93c5f |
- Update to 3.2.6
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Aug 21 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.5-2
|
|
|
d93c5f |
- Update license tag to GPLv2
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Feb 16 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.5-1
|
|
|
d93c5f |
- Update to 3.2.5
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Feb 14 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-2
|
|
|
d93c5f |
- Rebuild for Tcl downgrade
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Feb 09 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-1
|
|
|
d93c5f |
- Update to 3.2.4
|
|
|
d93c5f |
|
|
|
d93c5f |
* Wed Dec 20 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-3
|
|
|
d93c5f |
- Add --with-version-path to set VERSIONPATH (bug 220260)
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Aug 29 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-2
|
|
|
d93c5f |
- Rebuild for FC6
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Jun 2 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-1
|
|
|
d93c5f |
- Update to 3.2.3
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri May 5 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.2-1
|
|
|
d93c5f |
- Update to 3.2.2
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Mar 24 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-1
|
|
|
d93c5f |
- Update to 3.2.1
|
|
|
d93c5f |
|
|
|
d93c5f |
* Thu Feb 9 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0p1-1
|
|
|
d93c5f |
- Update to 3.2.0p1
|
|
|
d93c5f |
|
|
|
d93c5f |
* Fri Jan 27 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0-2
|
|
|
d93c5f |
- Add profile.d links
|
|
|
d93c5f |
|
|
|
d93c5f |
* Tue Jan 24 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0-1
|
|
|
d93c5f |
- Fedora Extras packaging
|