]>
Commit | Line | Data |
---|---|---|
54ce58d4 KK |
1 | Summary: Provides dynamic modification of a user's environment |
2 | Name: environment-modules | |
2f48b4ef KK |
3 | Version: 3.2.8 |
4 | Release: 1 | |
54ce58d4 KK |
5 | License: GPL v2 |
6 | Group: Applications/System | |
2f48b4ef KK |
7 | Source0: http://downloads.sourceforge.net/modules/modules-%{version}a.tar.bz2 |
8 | # Source0-md5: fcac3bea0d88fde4c4d7838bc8c4ddbe | |
54ce58d4 | 9 | Source1: modules.sh |
7d142cb0 | 10 | Patch0: %{name}-bindir.patch |
54ce58d4 KK |
11 | URL: http://modules.sourceforge.net/ |
12 | BuildRequires: tcl-devel | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | The Environment Modules package provides for the dynamic modification | |
17 | of a user's environment via modulefiles. | |
18 | ||
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. | |
27 | ||
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. | |
31 | ||
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. | |
35 | ||
54ce58d4 | 36 | %prep |
6ffcbd3e | 37 | %setup -q -n modules-%{version} |
7d142cb0 | 38 | %patch0 -p1 |
54ce58d4 KK |
39 | |
40 | %build | |
41 | %configure \ | |
42 | --disable-versioning \ | |
43 | --prefix=%{_datadir} \ | |
44 | --exec-prefix=%{_datadir}/Modules \ | |
45 | --with-module-path=%{_sysconfdir}/modulefiles | |
54ce58d4 KK |
46 | %{__make} |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
6ffcbd3e ER |
52 | |
53 | install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.sh | |
54ce58d4 KK |
54 | ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.csh |
55 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
54ce58d4 KK |
60 | %files |
61 | %defattr(644,root,root,755) | |
6ffcbd3e | 62 | %doc ChangeLog INSTALL NEWS README TODO |
54ce58d4 KK |
63 | %dir %{_sysconfdir}/modulefiles |
64 | %{_sysconfdir}/shrc.d/modules.* | |
6ffcbd3e | 65 | %attr(755,root,root) %{_bindir}/modulecmd |
54ce58d4 | 66 | %{_datadir}/Modules |
6ffcbd3e ER |
67 | %{_mandir}/man1/module.1* |
68 | %{_mandir}/man4/modulefile.4* |