rpms/lam/F-11 lam.spec,1.50,1.51

Doug Ledford dledford at fedoraproject.org
Wed May 20 17:01:10 UTC 2009


Author: dledford

Update of /cvs/extras/rpms/lam/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14034

Modified Files:
	lam.spec 
Log Message:
* Wed May 20 2009 Doug Ledford <dledford at redhat.com> - 2:7.1.4-5
- Fix an rpmlint issue (tabs versus spaces)
- Correct a missing Requires(post) chkconfig (for /usr/sbin/alternatives)



Index: lam.spec
===================================================================
RCS file: /cvs/extras/rpms/lam/F-11/lam.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -p -r1.50 -r1.51
--- lam.spec	21 Mar 2009 14:19:05 -0000	1.50
+++ lam.spec	20 May 2009 17:00:40 -0000	1.51
@@ -1,10 +1,10 @@
-Summary: The LAM (Local Area Multicomputer) programming environment.
+Summary: The Local Area Multicomputer programming environment
 Name: lam
 Version: 7.1.4
-Release: 3%{?dist}
+Release: 5%{?dist}
 License: BSD
 Epoch: 2
-Group: Development/Libraries
+Group: System/Base
 Source: lam-%{version}-rh1.tar.bz2
 Source1: lam.pc.in
 Source2: lam.module.in
@@ -16,49 +16,34 @@ BuildRoot: %{_tmppath}/%{name}-%{version
 BuildRequires: perl gcc gcc-c++ gcc-gfortran libaio-devel automake libtool
 Requires: openssh-server openssh-clients
 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: environment-modules, pkgconfig
 Requires(post): chkconfig
 
 %description 
-LAM (Local Area Multicomputer) is an Message-Passing Interface (MPI)
+LAM (Local Area Multicomputer) is a Message-Passing Interface (MPI)
 programming environment and development system for heterogeneous
-computers on a network. With LAM/MPI, a dedicated cluster or an
-existing network computing infrastructure can act as one parallel
-computer to solve one problem. LAM/MPI is considered to be "cluster
-friendly" because it offers daemon-based process startup/control as
-well as fast client-to-client message passing protocols. LAM/MPI can
-use TCP/IP and/or shared memory for message passing (different RPMs
-are supplied for this -- see the main LAM website at
-http://www.mpi.nd.edu/lam/ for details).<
-
-LAM features a full implementation of MPI version 1 (with the
-exception that LAM does not support cancelling of sends), and much of
-version 2. Compliant applications are source code portable between LAM
-and any other implementation of MPI. In addition to meeting the
-standard, LAM/MPI offers extensive monitoring capabilities to support
-debugging. Monitoring happens on two levels: On one level, LAM/MPI has
-the hooks to allow a snapshot of a process and message status to be
-taken at any time during an application run. The status includes all
-aspects of synchronization plus datatype map/signature, communicator
-group membership and message contents (see the XMPI application on the
-main LAM website). On the second level, the MPI library can produce a
-cumulative record of communication, which can be visualized either at
-runtime or post-mortem.
+computers on a network. LAM implements all of MPI version 1 with the
+exception of cancelling of sends, and most of MPI version 2.  However,
+LAM has been deprecated (for quite some time now) and most (if not all)
+of the original LAM developers are now part of the Open MPI project.
+Use of LAM in new programming is strongly discouraged as this package
+will go away soon.
 
 %package libs
-Summary:        Libraries for LAM
-Group:          System/Libraries
-Requires(post): /sbin/ldconfig chkconfig
-Requires:	environment-modules
+Summary: Libraries for LAM
+Group: System/Base
+Requires(post): chkconfig
 
 %description libs
 Runtime libraries for LAM
 
 %package devel
-Summary:        Development files for LAM
-Group:          Development/Libraries
-Requires:       %{name} = %{epoch}:%{version}-%{release}
-Requires:	libaio-devel gcc gcc-c++ gcc-gfortran
+Summary: Development files for LAM
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: libaio-devel gcc gcc-c++ gcc-gfortran
 Requires(post): chkconfig
+Provides: mpi-devel
 
 %description devel
 Contains development headers and libraries for LAM
@@ -77,9 +62,13 @@ autoreconf
 
 %build
 %ifarch x86_64
-CFLAGS="$RPM_OPT_FLAGS -fPIC"
-CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
-FFLAGS="$RPM_OPT_FLAGS -fPIC"
+export CFLAGS="$RPM_OPT_FLAGS -fPIC"
+export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
+export FFLAGS="$RPM_OPT_FLAGS -fPIC"
+%else
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+export FFLAGS="$RPM_OPT_FLAGS"
 %endif 
 
 %ifarch i386 ppc
@@ -97,12 +86,12 @@ export CPPFLAGS="-DLAM_MODE=\\\"%{mode}\
 %endif
 export FC=f95
 %ifarch i386 s390 ppc
-./configure --with-rsh="/usr/bin/ssh -x -a" --prefix=%{mpidir} --exec-prefix=%{mpidir} --datadir=%{mpidir} --mandir=%{mpidir}/man --with-trillium --enable-shared --disable-deprecated-executable-names
+./configure --with-rsh="/usr/bin/ssh -x -a" --prefix=%{mpidir} --exec-prefix=%{mpidir} --datadir=%{mpidir} --mandir=%{mpidir}/man --sysconfdir=%{_sysconfdir} --with-trillium --enable-shared --disable-deprecated-executable-names --disable-dependency-tracking
 %else
 #
 # Disable TotalView on non-32 bit architectures.
 #
-./configure --with-rsh="/usr/bin/ssh -x -a" --prefix=%{mpidir} --exec-prefix=%{mpidir} --datadir=%{mpidir} --mandir=%{mpidir}/man --disable-tv --disable-tv-dll --with-trillium --enable-shared --disable-deprecated-executable-names
+./configure --with-rsh="/usr/bin/ssh -x -a" --prefix=%{mpidir} --exec-prefix=%{mpidir} --datadir=%{mpidir} --mandir=%{mpidir}/man --sysconfdir=%{_sysconfdir} --disable-tv --disable-tv-dll --with-trillium --enable-shared --disable-deprecated-executable-names --disable-dependency-tracking
 %endif
 
 make %{?_smp_mflags} all
@@ -127,54 +116,63 @@ rm -rf ${RPM_BUILD_ROOT}%{mpidir}/lam
 # Create the lam.pc pkgconfig file:
 mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
 sed 's#@VERSION@#'%{version}'#g;s#@LAMDIR@#'%{mpidir}'#g' < %SOURCE1 > ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/%{name}.pc
-sed 's#@LAMDIR@#'%{mpidir}'#g' < %SOURCE2 > ${RPM_BUILD_ROOT}%{mpidir}/%{name}.module
+mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/Modules/modulefiles
+sed 's#@LAMDIR@#'%{mpidir}'#g' < %SOURCE2 > ${RPM_BUILD_ROOT}%{_datadir}/Modules/modulefiles/%{name}-%{_arch}.module
 
 for i in hcc hcp hf77
 do
     rm -f ${RPM_BUILD_ROOT}%{mpidir}/man/man1/$i.1*
 done
 
+# compress the man pages
+gzip -9 ${RPM_BUILD_ROOT}%{mpidir}/man/man*/*
+
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 
 %post
-alternatives --remove mpi-run %{_bindir}/lamrun >/dev/null 2>&1 ||:
+if [ $1 -gt 1 ]; then
+    alternatives --remove mpi-run %{_bindir}/lamrun >/dev/null 2>&1 ||:
+fi
 
 %post libs
+if [ $1 -gt 1 ]; then
 %ifarch ia64
-alternatives --remove mpilibs64 %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
+    alternatives --remove mpilibs64 %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
 %else
-alternatives --remove mpilibs%{mode} %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
+    alternatives --remove mpilibs%{mode} %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
 %endif
-alternatives --remove mpilibs %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
-/sbin/ldconfig
-
-%postun libs -p /sbin/ldconfig
+    alternatives --remove mpilibs %{_libdir}/lam/lam.ld.conf >/dev/null 2>&1
+    /sbin/ldconfig
+fi
 
 %post devel
-alternatives --remove mpicc %{_bindir}/lamcc-%{mode} >/dev/null 2>&1  ||:
+if [ $1 -gt 1 ]; then
+    alternatives --remove mpicc %{_bindir}/lamcc-%{mode} >/dev/null 2>&1  ||:
+fi
 
 %files
 %defattr(-,root,root,-)
 %doc LICENSE HISTORY INSTALL README AUTHORS
 %doc doc/user.pdf doc/install.pdf
 %doc share/memory/ptmalloc/ptmalloc-COPYRIGHT share/memory/ptmalloc2/ptmalloc2-COPYRIGHT
-%dir %{mpidir}/etc
 %dir %{mpidir}/bin
-%config(noreplace) %{mpidir}/etc/lam-bhost.def
-%config(noreplace) %{mpidir}/etc/lam-conf.lamd
-%config(noreplace) %{mpidir}/etc/lam-hostmap.txt
-%config() %{mpidir}/etc/lam*helpfile
+%dir %{mpidir}/man
+%dir %{mpidir}/man/man?
+%config(noreplace) %{_sysconfdir}/lam-bhost.def
+%config(noreplace) %{_sysconfdir}/lam-conf.lamd
+%config(noreplace) %{_sysconfdir}/lam-hostmap.txt
+%config() %{_sysconfdir}/lam*helpfile
 %{mpidir}/bin/*
 %exclude %{mpidir}/bin/mpic++
 %exclude %{mpidir}/bin/mpicc
 %exclude %{mpidir}/bin/mpif77
 %{mpidir}/man/man[157]/*
+%{_datadir}/Modules/modulefiles/*
 
 %files libs
 %defattr(-,root,root,-)
 %dir %{mpidir}
-%{mpidir}/lam.module
 %dir %{mpidir}/lib
 %{mpidir}/lib/*.so.*
 %ifarch i386 s390 ppc
@@ -193,14 +191,26 @@ alternatives --remove mpicc %{_bindir}/l
 %{mpidir}/include/*
 %{mpidir}/lib/*.a
 %{mpidir}/lib/*.so
-%config %{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/pkgconfig/%{name}.pc
 %ifarch i386 s390 ppc
 # TotalView modules
 %{mpidir}/lib/lam/*.so
 %endif
+%dir %{mpidir}/man
+%dir %{mpidir}/man/man?
 %{mpidir}/man/man[23]/*
 
 %changelog
+* Wed May 20 2009 Doug Ledford <dledford at redhat.com> - 2:7.1.4-5
+- Fix an rpmlint issue (tabs versus spaces)
+- Correct a missing Requires(post) chkconfig (for /usr/sbin/alternatives)
+
+* Wed May 20 2009 Doug Ledford <dledford at redhat.com> - 2:7.1.4-4
+- Update description text (bz478945)
+- Fix directory ownerships (bz473593)
+- Fix up build flags (bz499978)
+- Move module file to default module path (bz458390)
+
 * Sat Mar 21 2009 Robert Scheck <robert at fedoraproject.org> - 2:7.1.4-3
 - Rebuilt against libtool 2.2
 
@@ -251,7 +261,7 @@ alternatives --remove mpicc %{_bindir}/l
 - Fix up file conflicts for lam_build_info.h and lam_config.h (bz205218)
 
 * Sun Aug 27 2006 Doug Ledford <dledford at redhat.com> - 2:7.1.2-3.fc6
-- Make the %post and %preun only run at the right times (new install and
+- Make the post and preun only run at the right times (new install and
   final package removal)
 
 * Fri Aug 25 2006 Doug Ledford <dledford at redhat.com> - 2:7.1.2-2.fc6
@@ -293,7 +303,7 @@ alternatives --remove mpicc %{_bindir}/l
 
 * Mon Jun 27 2005 Tom "spot" Callaway <tcallawa at redhat.com> - 2:7.1.1-5
 - enable shared libraries
-- don't list %{_datadir}/* in files
+- don't list {_datadir}/* in files
 
 * Sun May 22 2005 Jeremy Katz <katzj at redhat.com> - 2:7.1.1-4
 - use -fPIC on x86_64 (reported by spot to get things building for Extras)
@@ -385,10 +395,10 @@ the moment.
 - Start tweaking for Hammer
 - Remove unpackaged files
 
-* Thu Jul 18 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-8
+* Thu Jul 18 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-8
 - Fix  #63548
 
-* Thu Jun 27 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-7
+* Thu Jun 27 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-7
 - Remove malplaced and malformatted manpage (#67955). 
 - Fix hpf77. A wrapper was a little to zealous in avoiding
  /usr for includes and libs (#67321)
@@ -399,23 +409,23 @@ the moment.
 * Thu May 23 2002 Tim Powers <timp at redhat.com>
 - automated rebuild
 
-* Thu Feb 21 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-4
+* Thu Feb 21 2002 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-4
 - Rebuild
 
 * Wed Jan 09 2002 Tim Powers <timp at redhat.com>
 - automated rebuild
 
-* Tue Dec  4 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-2
+* Tue Dec  4 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-2
 - use ssh (#56946)
 
-* Tue Nov 27 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-1
+* Tue Nov 27 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.6-1
 - 6.5.6
 
-* Fri Nov  2 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.5-1
+* Fri Nov  2 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.5-1
 - 6.5.5
 - License change - from a  BSDish license to BSD
 
-* Fri Aug 17 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.4-1
+* Fri Aug 17 2001 Trond Eivind Glomsrød <teg at redhat.com> 6.5.4-1
 - 6.5.4, from the stable branch. Minor bugfixes, more docs. This also
   made allmost all references to the buildroot go away.
 - fix the remaining reference
@@ -425,43 +435,43 @@ the moment.
   long time ago (rpm doesn't fail if something in the doc section is
   missing )
 
-* Mon Jul 16 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Mon Jul 16 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.5.3
 - remove now obsolete patches and workarounds during the build process
 
-* Fri May 25 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Fri May 25 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.5.2
 - No longer exclude IA64
 
-* Sat Apr  7 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Sat Apr  7 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - Fix from CVS so hpc and hf77 (C++ and FORTRAN compiler interfaces) 
   don't specify -I/usr/include - this breaks some compilations of MPI
   programs (#34796)
 
-* Wed Apr  4 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Wed Apr  4 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.5.1 final
 - update URL
 - add epoch, as rpm thought 6.5.1 newer than 6.5b7 newer 
   than  6.5.1 etc.
 
-* Tue Mar 27 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Tue Mar 27 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.5b7
 - fix lamhelpdir problems
 
-* Fri Mar  2 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Fri Mar  2 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.5b5 - this is just a renaming of the 6.3.3b series,
   and should hopefully be indentical to 6.5 final
 
-* Mon Feb 12 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Mon Feb 12 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - make a link from mpi++.h, not mpi++, to mpi2c++/mpi++.h
   (#27249)
 - 6.3.3b58, which should work better on SMP machines in
   a cluster
 
-* Tue Nov 28 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Tue Nov 28 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.3.3b47
 
-* Thu Aug 17 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Thu Aug 17 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - 6.3.3b28, which should match the release. One known
   problem on SCO, otherwise none. This includes 
   fixing some programs which didn't work in the 
@@ -472,22 +482,22 @@ the moment.
   right path set. make all;make DESTDIR install is 
   our friend.
 
-* Wed Jul 19 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Wed Jul 19 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - a new and better world without dirty tricks necesarry. 
   All hail the 6.3.3beta (beta 20 - all my requests and 
   patches seem to be in now :)
 
-* Fri Jun 16 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Fri Jun 16 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - substituted some old dirty tricks for new ones to make
   it build. More needed.
 - Removed C++ (won't build) and ROMIO (who cares) support
 
-* Thu Jun 15 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Thu Jun 15 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - ugly tricks to make it use %%{_mandir}
 - patch to make it build with current compiler and glibc
 - don't build on IA64
 
-* Tue Apr 25 2000 Trond Eivind Glomsrød <teg at redhat.com>
+* Tue Apr 25 2000 Trond Eivind Glomsrød <teg at redhat.com>
 - changed RPI to usysv - this should be good for
   (clusters of) SMPs.
 




More information about the scm-commits mailing list