]> git.pld-linux.org Git - packages/environment-modules.git/blame - environment-modules.spec
- remove duplicated line
[packages/environment-modules.git] / environment-modules.spec
CommitLineData
54ce58d4
KK
1Summary: Provides dynamic modification of a user's environment
2Name: environment-modules
2f48b4ef
KK
3Version: 3.2.8
4Release: 1
54ce58d4
KK
5License: GPL v2
6Group: Applications/System
2f48b4ef
KK
7Source0: http://downloads.sourceforge.net/modules/modules-%{version}a.tar.bz2
8# Source0-md5: fcac3bea0d88fde4c4d7838bc8c4ddbe
54ce58d4 9Source1: modules.sh
7d142cb0 10Patch0: %{name}-bindir.patch
54ce58d4
KK
11URL: http://modules.sourceforge.net/
12BuildRequires: tcl-devel
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16The Environment Modules package provides for the dynamic modification
17of a user's environment via modulefiles.
18
19Each modulefile contains the information needed to configure the shell
20for an application. Once the Modules package is initialized, the
21environment can be modified on a per-module basis using the module
22command which interprets modulefiles. Typically modulefiles instruct
23the module command to alter or set shell environment variables such as
24PATH, MANPATH, etc. modulefiles may be shared by many users on a
25system and users may have their own collection to supplement or
26replace the shared modulefiles.
27
28Modules can be loaded and unloaded dynamically and atomically, in an
29clean fashion. All popular shells are supported, including bash, ksh,
30zsh, sh, csh, tcsh, as well as some scripting languages such as perl.
31
32Modules are useful in managing different versions of applications.
33Modules can also be bundled into metamodules that will load an entire
34suite 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
49rm -rf $RPM_BUILD_ROOT
50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
6ffcbd3e
ER
52
53install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.sh
54ce58d4
KK
54ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d/modules.csh
55install -d $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles
56
57%clean
58rm -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*
This page took 0.06177 seconds and 4 git commands to generate.