1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
Name: modules
Version: @VERSION@
Release: 1
Summary: Environment Modules
Distribution: Berkeley Laboratory Distribution
Vendor: Lawrence Berkeley National Laboratory
Packager: Eric Roman <eroman@lbl.gov> (modified by R.K.Owen <rk@owen.sj.ca.us>
Group: Utilities/Shell
Copyright: GPL
Source: ftp://modules.sourceforge.net/pub/modules/modules-@VERSION@.tar.gz
%description
The Modules package provides for the dynamic modification of a user's
environment via modulefiles. Each modulefile contains the information
needed to configure the shell for an application. Once the Modules
package is initialized, the environment can be modified dynamically
on a per-module basis using the module command which interprets
modulefiles. Typically modulefiles instruct the module command to alter or
set shell environment variables such as PATH, MANPATH, etc. modulefiles
may be shared by many users on a system and users may have their own
collection to supplement or replace the shared modulefiles. The modules
environment is common on SGI/Crays and many workstation farms.
# prep section. Tell RPM how to untar.
%prep
%setup -n modules-@VERSION@
%patch
# build section. Tell RPM how to run make
%buildroot /usr/local/Modules/test
%build
./configure \
--prefix=/usr \
--with-version-path=/usr/local/Modules/versions \
--with-module-path=/usr/local/Modules/modulefiles \
--with-etc-path=/etc \
--with-skel-path=/etc/skel \
--x-include=/usr/include/X11 \
--x-libraries=/usr/X11R6/lib
--with-tcl-include=/usr/include \
--with-tcl-libraries=/usr/lib
make
%install
make install
%clean
rm -rf /usr/local/Modules/@VERSION@
%files
# Tell RPM where to find the files that just spewed all over the disk...
/usr/bin/modulecmd
/etc/Modules/init/bash
/etc/Modules/init/csh
/etc/Modules/init/perl
/etc/Modules/init/sh
/etc/Modules/init/tcsh
/etc/Modules/init/zsh
/etc/Modules/init/ksh
/etc/Modules/init/.modulespath
/usr/man/man1/module.1
/usr/man/man4/modulefile.4
/etc/Modules/modulefiles/modules
/etc/Modules/modulefiles/module-info
/etc/Modules/modulefiles/module-cvs
/etc/Modules/modulefiles/null
/etc/Modules/modulefiles/use.own
/etc/Modules/modulefiles/dot
|