99 lines
3.1 KiB
RPMSpec
99 lines
3.1 KiB
RPMSpec
Name: environment-modules
|
|
Version: 3.2.4
|
|
Release: 2%{?dist}
|
|
Summary: Provides dynamic modification of a user's environment
|
|
|
|
Group: System Environment/Base
|
|
License: GPL
|
|
URL: http://modules.sourceforge.net/
|
|
Source0: http://dl.sf.net/modules/modules-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: tcl-devel, tclx-devel
|
|
|
|
%description
|
|
The Environment 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 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.
|
|
|
|
Modules can be loaded and unloaded dynamically and atomically, in an
|
|
clean fashion. All popular shells are supported, including bash, ksh,
|
|
zsh, sh, csh, tcsh, as well as some scripting languages such as perl.
|
|
|
|
Modules are useful in managing different versions of applications.
|
|
Modules can also be bundled into metamodules that will load an entire
|
|
suite of different applications.
|
|
|
|
|
|
%prep
|
|
%setup -q -n modules-%{version}
|
|
|
|
|
|
%build
|
|
%configure --disable-versioning --prefix=%{_datadir} \
|
|
--exec-prefix=%{_datadir}/Modules \
|
|
--with-version-path=%{_datadir}/Modules/modulefiles
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
ln -s %{_datadir}/Modules/init/bash $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.sh
|
|
ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.csh
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE.GPL README TODO
|
|
%{_sysconfdir}/profile.d/*
|
|
%{_bindir}/modulecmd
|
|
%{_datadir}/Modules/
|
|
%{_mandir}/man1/module.1.gz
|
|
%{_mandir}/man4/modulefile.4.gz
|
|
|
|
|
|
%changelog
|
|
* Wed Feb 14 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-2
|
|
- Rebuild for Tcl downgrade
|
|
|
|
* Fri Feb 09 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-1
|
|
- Update to 3.2.4
|
|
|
|
* Wed Dec 20 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-3
|
|
- Add --with-version-path to set VERSIONPATH (bug 220260)
|
|
|
|
* Tue Aug 28 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-2
|
|
- Rebuild for FC6
|
|
|
|
* Fri Jun 2 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-1
|
|
- Update to 3.2.3
|
|
|
|
* Fri May 5 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.2-1
|
|
- Update to 3.2.2
|
|
|
|
* Fri Mar 24 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-1
|
|
- Update to 3.2.1
|
|
|
|
* Thu Feb 9 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0p1-1
|
|
- Update to 3.2.0p1
|
|
|
|
* Fri Jan 27 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0-2
|
|
- Add profile.d links
|
|
|
|
* Tue Jan 24 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.0-1
|
|
- Fedora Extras packaging
|