rpms/mpich2/devel mpich2.spec,1.6,1.7

Deji Akingunola deji at fedoraproject.org
Thu May 21 01:35:50 UTC 2009


Author: deji

Update of /cvs/pkgs/rpms/mpich2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7769

Modified Files:
	mpich2.spec 
Log Message:
* Wed May 20 2009 Deji Akingunola <dakingun at gmail.com> - 1.1-0.4.rc1
- Install the libdir under /etc/ld.so.conf.d



Index: mpich2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mpich2/devel/mpich2.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- mpich2.spec	19 May 2009 05:14:39 -0000	1.6
+++ mpich2.spec	21 May 2009 01:35:49 -0000	1.7
@@ -1,7 +1,7 @@
 Summary:	A high-performance implementation of MPI
 Name:		mpich2
 Version:	1.1
-Release:	0.3.rc1%{?dist}
+Release:	0.4.rc1%{?dist}
 License:	MIT
 Group:		Development/Libraries
 URL:		http://www.mcs.anl.gov/research/projects/mpich2
@@ -136,6 +136,11 @@ done
 mv %{buildroot}%{_libdir}/%{name}/pkgconfig %{buildroot}%{_libdir}/
 chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc
 
+#Install the libdir under /etc/ld.so.conf.d
+mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
+echo "%{_libdir}/%{name}"	\
+	> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
+
 # Adjust the default 'environment module' PATH for our changes
 sed -i 's#bin#bin'%{mode}'#' %{buildroot}%{_datadir}/%{name}/%{name}.module
 
@@ -226,6 +231,10 @@ if [ $1 -eq 0 ] ; then
 /usr/sbin/alternatives --remove mpicc %{_bindir}/mp%{mode}-mpicc
 fi
 
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root,-)
 %{_bindir}/*
@@ -256,6 +265,7 @@ fi
 %{_libdir}/%{name}/*.jar
 %{_libdir}/%{name}/mpe*.o
 %{_libdir}/%{name}/*.so.*
+%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
 %config %{_sysconfdir}/%{name}-%{mode}/
 
 %files devel
@@ -281,6 +291,9 @@ fi
 %doc README.testing README.romio README.developer
 
 %changelog
+* Wed May 20 2009 Deji Akingunola <dakingun at gmail.com> - 1.1-0.4.rc1
+- Install the libdir under /etc/ld.so.conf.d
+
 * Mon May 18 2009 Deji Akingunola <dakingun at gmail.com> - 1.1-0.3.rc1
 - Update to 1.1rc1
 - Update spec to follow the proposed packaging guildelines wrt using alternatives




More information about the scm-commits mailing list