rpms/lam/devel lam.spec,1.36,1.37

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Aug 27 16:37:13 UTC 2006


Author: dledford

Update of /cvs/dist/rpms/lam/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv28124

Modified Files:
	lam.spec 
Log Message:
Various tweaks related to existing alongside OpenMPI


Index: lam.spec
===================================================================
RCS file: /cvs/dist/rpms/lam/devel/lam.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- lam.spec	26 Aug 2006 03:32:49 -0000	1.36
+++ lam.spec	27 Aug 2006 16:37:06 -0000	1.37
@@ -122,7 +122,7 @@
 [ ! -z "${RPM_BUILD_ROOT}" ] && rm -rf ${RPM_BUILD_ROOT}
 
 %post
-if [ "$1" -ge 1 ]; then
+if [ "$1" -eq 1 ]; then
 	alternatives --install %{_sysconfdir}/ld.so.conf.d/mpi.conf mpi \
 				%{_libdir}/lam/lam.ld.conf 5 \
 		--slave %{_bindir}/mpirun mpi-run %{_bindir}/lamrun \
@@ -135,14 +135,14 @@
 /sbin/ldconfig
 
 %preun
-if [ "$1" -ge 1 ]; then
+if [ "$1" -eq 0 ]; then
 	alternatives --remove mpi %{_libdir}/lam/lam.ld.conf
 fi
 
 %postun -p /sbin/ldconfig
 
 %post devel
-if [ "$1" -ge 1 ]; then
+if [ "$1" -eq 1 ]; then
 	alternatives --install  %{_bindir}/mpicc mpicc \
 				%{_bindir}/lamcc 5 \
 		--slave %{_bindir}/mpic++ mpic++ %{_bindir}/lamc++ \
@@ -152,7 +152,7 @@
 /sbin/ldconfig
 
 %preun devel
-if [ "$1" -ge 1 ]; then
+if [ "$1" -eq 0 ]; then
 	alternatives --remove mpicc %{_bindir}/lamcc
 fi
 




More information about the fedora-cvs-commits mailing list