1 Summary: Provides dynamic modification of a user's environment
2 Name: environment-modules
6 Group: Applications/System
7 Source0: http://downloads.sourceforge.net/modules/modules-%{version}a.tar.bz2
8 # Source0-md5: fcac3bea0d88fde4c4d7838bc8c4ddbe
10 Patch0: %{name}-bindir.patch
11 URL: http://modules.sourceforge.net/
12 BuildRequires: tcl-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 The Environment Modules package provides for the dynamic modification
17 of a user's environment via modulefiles.
19 Each modulefile contains the information needed to configure the shell
20 for an application. Once the Modules package is initialized, the
21 environment can be modified on a per-module basis using the module
22 command which interprets modulefiles. Typically modulefiles instruct
23 the module command to alter or set shell environment variables such as
24 PATH, MANPATH, etc. modulefiles may be shared by many users on a
25 system and users may have their own collection to supplement or
26 replace the shared modulefiles.
28 Modules can be loaded and unloaded dynamically and atomically, in an
29 clean fashion. All popular shells are supported, including bash, ksh,
30 zsh, sh, csh, tcsh, as well as some scripting languages such as perl.
32 Modules are useful in managing different versions of applications.
33 Modules can also be bundled into metamodules that will load an entire
34 suite of different applications.
37 %setup -q -n modules-%{version}
42 --disable-versioning \
43 --prefix=%{_datadir} \
44 --exec-prefix=%{_datadir}/Modules \
45 --with-module-path=%{_sysconfdir}/modulefiles
49 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.sh
54 ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.csh
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc ChangeLog INSTALL NEWS README TODO
63 %dir %{_sysconfdir}/modulefiles
64 %{_sysconfdir}/shrc.d/modules.*
65 %attr(755,root,root) %{_bindir}/modulecmd
67 %{_mandir}/man1/module.1*
68 %{_mandir}/man4/modulefile.4*