- Add patch to fix modulecmd path in init files
This commit is contained in:
parent
c73dfe2103
commit
8eef353b20
11
environment-modules-3.2.7-bindir.patch
Normal file
11
environment-modules-3.2.7-bindir.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- modules-3.2.7/init/Makefile.in.bindir 2009-09-22 12:13:52.000000000 -0600
|
||||||
|
+++ modules-3.2.7/init/Makefile.in 2009-09-23 12:19:50.797470155 -0600
|
||||||
|
@@ -404,7 +404,7 @@
|
||||||
|
sed -e "/@$(if $(subst 0,,$(WANTS_VERSIONING)),NOT,)VERSIONING\@/d; \
|
||||||
|
s,@$(if $(subst 0,,$(WANTS_VERSIONING)),,NOT)VERSIONING\@,,g; \
|
||||||
|
s,@prefix\@,${prefix},g; \
|
||||||
|
- s,@bindir\@,${exec_prefix}/bin,g; \
|
||||||
|
+ s,@bindir\@,${bindir},g; \
|
||||||
|
s,@VERSION\@,@VERSION@,g; \
|
||||||
|
s,@BASEPREFIX\@,@BASEPREFIX@,g;" < $< > $@
|
||||||
|
|
@ -1,12 +1,13 @@
|
|||||||
Name: environment-modules
|
Name: environment-modules
|
||||||
Version: 3.2.7b
|
Version: 3.2.7b
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Provides dynamic modification of a user's environment
|
Summary: Provides dynamic modification of a user's environment
|
||||||
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://modules.sourceforge.net/
|
URL: http://modules.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
|
||||||
|
Patch0: environment-modules-3.2.7-bindir.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: tcl-devel, tclx-devel, libX11-devel
|
BuildRequires: tcl-devel, tclx-devel, libX11-devel
|
||||||
@ -38,12 +39,15 @@ have access to the module alias.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n modules-3.2.7
|
%setup -q -n modules-3.2.7
|
||||||
|
%patch0 -p1 -b .bindir
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-versioning --prefix=%{_datadir} \
|
%configure --disable-versioning \
|
||||||
|
--prefix=%{_datadir} \
|
||||||
--exec-prefix=%{_datadir}/Modules \
|
--exec-prefix=%{_datadir}/Modules \
|
||||||
--with-module-path=%{_sysconfdir}/modulefiles
|
--with-module-path=%{_sysconfdir}/modulefiles
|
||||||
|
|
||||||
# --with-debug=42 --with-log-facility-debug=stderr
|
# --with-debug=42 --with-log-facility-debug=stderr
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -73,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-2
|
||||||
|
- Add patch to fix modulecmd path in init files
|
||||||
|
|
||||||
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-1
|
* Wed Sep 23 2009 Orion Poplawski <orion@cora.nwra.com> - 3.2.7b-1
|
||||||
- Update to 3.2.7b
|
- Update to 3.2.7b
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user