2006-02-14 21:06:55 +00:00
|
|
|
Name: environment-modules
|
2009-09-23 15:06:47 +00:00
|
|
|
Version: 3.2.7b
|
2009-10-23 18:21:24 +00:00
|
|
|
Release: 4%{?dist}
|
2006-02-14 21:06:55 +00:00
|
|
|
Summary: Provides dynamic modification of a user's environment
|
|
|
|
|
|
|
|
Group: System Environment/Base
|
2007-08-21 20:35:41 +00:00
|
|
|
License: GPLv2+
|
2006-02-14 21:06:55 +00:00
|
|
|
URL: http://modules.sourceforge.net/
|
2007-08-21 20:25:46 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
|
2009-10-19 16:34:46 +00:00
|
|
|
Source1: modules.sh
|
2009-09-23 19:55:43 +00:00
|
|
|
Patch0: environment-modules-3.2.7-bindir.patch
|
2006-02-14 21:06:55 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-03-14 15:07:31 +00:00
|
|
|
BuildRequires: tcl-devel, tclx-devel, libX11-devel
|
2006-02-14 21:06:55 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2009-08-20 17:40:33 +00:00
|
|
|
NOTE: You will need to get a new shell after installing this package to
|
|
|
|
have access to the module alias.
|
|
|
|
|
2006-02-14 21:06:55 +00:00
|
|
|
|
|
|
|
%prep
|
2009-09-23 15:06:47 +00:00
|
|
|
%setup -q -n modules-3.2.7
|
2009-09-23 19:55:43 +00:00
|
|
|
%patch0 -p1 -b .bindir
|
2006-02-14 21:06:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2009-09-23 19:55:43 +00:00
|
|
|
%configure --disable-versioning \
|
|
|
|
--prefix=%{_datadir} \
|
2006-12-20 15:32:27 +00:00
|
|
|
--exec-prefix=%{_datadir}/Modules \
|
2008-03-05 20:06:24 +00:00
|
|
|
--with-module-path=%{_sysconfdir}/modulefiles
|
2009-09-23 19:55:43 +00:00
|
|
|
|
2008-03-05 20:06:24 +00:00
|
|
|
# --with-debug=42 --with-log-facility-debug=stderr
|
2006-02-14 21:06:55 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
2009-10-19 16:34:46 +00:00
|
|
|
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.sh
|
2006-02-14 21:06:55 +00:00
|
|
|
ln -s %{_datadir}/Modules/init/csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/modules.csh
|
2008-03-05 20:06:24 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modulefiles
|
2006-02-14 21:06:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.GPL README TODO
|
2008-03-05 20:06:24 +00:00
|
|
|
%{_sysconfdir}/modulefiles
|
2006-02-14 21:06:55 +00:00
|
|
|
%{_sysconfdir}/profile.d/*
|
|
|
|
%{_bindir}/modulecmd
|
|
|
|
%{_datadir}/Modules/
|
|
|
|
%{_mandir}/man1/module.1.gz
|
|
|
|
%{_mandir}/man4/modulefile.4.gz
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-10-23 18:21:24 +00:00
|
|
|
* Fri Oct 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-4
|
|
|
|
- Don't load bash init script when bash is running as "sh" (bug #529745)
|
|
|
|
|
2009-10-19 16:34:46 +00:00
|
|
|
* Mon Oct 19 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-3
|
|
|
|
- Support different flavors of "sh" (bug #529493)
|
|
|
|
|
2009-09-23 19:55:43 +00:00
|
|
|
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-2
|
|
|
|
- Add patch to fix modulecmd path in init files
|
|
|
|
|
2009-09-23 15:06:47 +00:00
|
|
|
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-1
|
|
|
|
- Update to 3.2.7b
|
|
|
|
|
2009-09-21 16:06:49 +00:00
|
|
|
* Mon Sep 21 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7-1
|
|
|
|
- Update to 3.2.7, fixes bug #524475
|
|
|
|
- Drop versioning patch fixed upstream
|
|
|
|
|
2009-07-24 22:11:57 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-24 15:09:11 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-09-03 17:40:13 +00:00
|
|
|
* Wed Sep 3 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-6
|
|
|
|
- Change %%patch -> %%patch0
|
|
|
|
|
2008-03-14 15:07:31 +00:00
|
|
|
* Fri Mar 14 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-5
|
|
|
|
- Add BR libX11-devel so modulecmd can handle X resources
|
|
|
|
|
2008-03-05 20:06:24 +00:00
|
|
|
* Wed Mar 5 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-4
|
|
|
|
- Add patch to fix extraneous version path entry properly
|
|
|
|
- Use --with-module-path to point to /etc/modulefiles for local modules,
|
|
|
|
this also fixes bug #436041
|
|
|
|
|
|
|
|
* Sat Feb 9 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-3
|
2008-02-09 17:35:21 +00:00
|
|
|
- Rebuild for gcc 3.4
|
|
|
|
|
2008-01-04 02:20:14 +00:00
|
|
|
* Thu Jan 03 2008 - Alex Lancaster <alexlan at fedoraproject.org> - 3.2.6-2
|
|
|
|
- Rebuild for new Tcl (8.5).
|
|
|
|
|
2007-11-02 18:06:34 +00:00
|
|
|
* Fri Nov 2 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.6-1
|
|
|
|
- Update to 3.2.6
|
|
|
|
|
2007-08-21 20:25:46 +00:00
|
|
|
* Tue Aug 21 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.5-2
|
|
|
|
- Update license tag to GPLv2
|
|
|
|
|
2007-02-16 18:58:44 +00:00
|
|
|
* Fri Feb 16 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.5-1
|
|
|
|
- Update to 3.2.5
|
|
|
|
|
2007-02-14 16:35:45 +00:00
|
|
|
* Wed Feb 14 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-2
|
|
|
|
- Rebuild for Tcl downgrade
|
|
|
|
|
2007-02-09 18:26:20 +00:00
|
|
|
* Fri Feb 09 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.4-1
|
|
|
|
- Update to 3.2.4
|
|
|
|
|
2006-12-20 15:32:27 +00:00
|
|
|
* Wed Dec 20 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-3
|
|
|
|
- Add --with-version-path to set VERSIONPATH (bug 220260)
|
|
|
|
|
2006-08-30 02:29:13 +00:00
|
|
|
* Tue Aug 28 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-2
|
|
|
|
- Rebuild for FC6
|
|
|
|
|
2006-06-02 21:59:04 +00:00
|
|
|
* Fri Jun 2 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.3-1
|
|
|
|
- Update to 3.2.3
|
|
|
|
|
2006-05-05 17:17:40 +00:00
|
|
|
* Fri May 5 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.2-1
|
|
|
|
- Update to 3.2.2
|
|
|
|
|
2006-03-24 16:46:26 +00:00
|
|
|
* Fri Mar 24 2006 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-1
|
|
|
|
- Update to 3.2.1
|
|
|
|
|
2006-02-14 21:06:55 +00:00
|
|
|
* 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
|