Debian Codegraph @

.spec.in

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