]> git.pld-linux.org Git - packages/environment-modules.git/blob - environment-modules.spec
- remove duplicated line
[packages/environment-modules.git] / environment-modules.spec
1 Summary:        Provides dynamic modification of a user's environment
2 Name:           environment-modules
3 Version:        3.2.8
4 Release:        1
5 License:        GPL v2
6 Group:          Applications/System
7 Source0:        http://downloads.sourceforge.net/modules/modules-%{version}a.tar.bz2
8 # Source0-md5:  fcac3bea0d88fde4c4d7838bc8c4ddbe
9 Source1:        modules.sh
10 Patch0:         %{name}-bindir.patch
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
36 %prep
37 %setup -q -n modules-%{version}
38 %patch0 -p1
39
40 %build
41 %configure \
42         --disable-versioning \
43         --prefix=%{_datadir} \
44         --exec-prefix=%{_datadir}/Modules \
45         --with-module-path=%{_sysconfdir}/modulefiles
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
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
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
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
66 %{_datadir}/Modules
67 %{_mandir}/man1/module.1*
68 %{_mandir}/man4/modulefile.4*
This page took 0.047762 seconds and 3 git commands to generate.