What about following:

%ifarch x86_64
%define PGLIBDIR lib64
%else
%define PGLIBDIR lib
%endif

In %install  use /usr/pgsql-9.1/%{LIBDIR}/
same in %files

pg_config impacted ?


Thanks,
Yogesh Sharma

Devrim GÜNDÜZ <dev...@gunduz.org> wrote on 07/12/2012 01:42:56 PM:

> 
> Hi,
> 
> On Thu, 2012-07-12 at 16:36 -0400, Tom Lane wrote:
> > Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <dev...@gunduz.org> writes:
> > > It is not a bug, but it might be a missing feature (and I'm not sure
> > how
> > > to fix it :-) )
> > 
> > It's fairly common for -devel packages of different architectures to
> > conflict.  If you were to try to fix it, you'd likely need the 64-bit
> > versions to install their stuff into .../lib64/ not .../lib/.
> 
> Well, there lies the problem. My packages push everything
> under /usr/pgsql-9.1 , and libs go to /usr/pgsql-9.1/lib. A
> 
> > Not sure how practical such a change is at this late date.
> 
> What if I build *9.2* with --libdir=/usr/pgsql-9.1/lib64 for x86_64, and
> then push 32-bit packages to /usr/pgsql-9.1/lib ?
> 

Reply via email to