LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-10-20 12:48:03


On Thu, 2005-10-20 at 10:17 -0400, Yonggon Lee (Korea, Republic of)
wrote:
> Hi, I'm Yonggon
>
> I am trying to make LAM RPM so that it is installed at
>
> /home/[some user]/lam
>
> with the options
>
> --enable-shared --disable-static
>
> I put the lam-7.7.1.tar.gz2 in the SOURCES dir and lam-7.1.1.spec in SPECS dir.

I assume you mean lam-7.1.1.tar.gz, right?

> What do need to change in the file 'lam-7.1.1.spec' to reflect the custom install directory and options?

First off, let me give the disclaimer that I am not an RPM expert. This
advice may or may not be correct.

What we did in the OSCAR-ized LAM RPM was the following:

%define oscar_prefix /opt/lam

%define _prefix %{oscar_prefix}-%{version}
%define _libdir %{oscar_prefix}-%{version}/lib
%define _sysconfdir %{oscar_prefix}-%{version}/etc
%define _datadir %{oscar_prefix}-%{version}/share
%define _pkgdatadir %{oscar_prefix}-%{version}/share/lam
%define _localstatedir %{oscar_prefix}-%{version}/var/lib
%define _mandir %{oscar_prefix}-%{version}/man
%define _infodir %{oscar_prefix}-%{version}/info

We did this because the %configure macro in the %build scriptlet gets
replaced by a complex set of values, of which they draw upon the above
macros for various directories. Hence, if you just add a --prefix to
the %configure statement in the specfile, I believe it will not work
(or, more specifically, not do what you want it to do).

-- 
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/