It can be built either way (because some users want an all-in-one RPM and others and separate RPMs). Check out the comments at the top of the spec file:
https://svn.open-mpi.org/trac/ompi/browser/branches/v1.7/contrib/dist/linux/openmpi.spec I think the option you want is build_all_in_one_rpm (0 or 1). On Aug 9, 2013, at 6:37 PM, RoboBeans <robobe...@gmail.com> wrote: > will this rpm include both openmpi and openmpi-devel or do i have to create > separate rpms? Thanks for your time! > > On 8/9/13 3:14 PM, Jeff Squyres (jsquyres) wrote: >> The specfile we provide is quite flexible -- read through the comments at >> the top to see what CLI options it allows. The short version is that you >> want something like: >> >> rpmbuild --rebuild --define 'configure_options --enable-event-thread-support >> --enable-opal-multi-threads ...etc.' openmpi-1.7.2-1.src.rpm >> >> >> On Aug 9, 2013, at 6:10 PM, RoboBeans <robobe...@gmail.com> wrote: >> >>> Thanks Jeff. I was able to produce rpm using "rpmbuild --rebuild >>> openmpi-1.7.2-1.src.rpm". What is the correct way of passing additional >>> config parameters if a user wish to. For example >>> -enable-event-thread-support --enable-opal-multi-threads >>> --enable-orte-progress-threads --enable-mpi-thread-multiple >>> >>> Once rpm is ready, I will get rid of older version of MPI completely and >>> then install 1.7.2 version using this rpm. >>> >>> 1) yum remove openmpi >>> >>> 2) rpm -ivh openmpi-1.7.2-1.src.rpm >>> >>> On 8/8/13 7:44 AM, Jeff Squyres (jsquyres) wrote: >>>> The issue is that the buildrpm.sh script is not really intended for users. >>>> It's for the OMPI developers who make the official Open MPI SRPM. That >>>> usually ends up being me, so that script is somewhat tailored to my >>>> environment. >>>> >>>> You should be able to rpmbuild --rebuild the Open MPI SRPM if you want an >>>> RPM. >>>> >>>> >>>> On Aug 7, 2013, at 9:54 PM, RoboBeans <robobe...@gmail.com> wrote: >>>> >>>>> Hello everyone, I am trying to create rpm from openmpi source code but >>>>> getting following error. Could someone please point what I am doing >>>>> wrong? I have attached buildrpm.sh and openmpi.spec for your reference. >>>>> Thanks for your time! >>>>> >>>>> # ./buildrpm.sh openmpi-1.7.2.tar.gz >>>>> >>>>> >>>>> --> Found tarball: openmpi-1.7.2.tar.gz >>>>> --> Found Open MPI version: 1.7.2 >>>>> --> Found specfile: openmpi.spec >>>>> grep: /root/.rpmmacros: No such file or directory >>>>> --> Found RPM top dir: /usr/src/redhat >>>>> Problem creating rpms: You do not have a /usr/src/redhat directory >>>>> tree or you do not have write access to the /usr/src/redhat directory >>>>> tree. Please remedy and try again. >>>>> >>>>> >>>>> <1_Warning.txt><openmpi.spec>_______________________________________________ >>>>> users mailing list >>>>> us...@open-mpi.org >>>>> http://www.open-mpi.org/mailman/listinfo.cgi/users >>> _______________________________________________ >>> users mailing list >>> us...@open-mpi.org >>> http://www.open-mpi.org/mailman/listinfo.cgi/users >> > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/