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=DCND=DCZ <devrim@gunduz.org> wrote on 07/12/2012 01:42:56 PM:
>=20
> Hi,
>=20
> On Thu, 2012-07-12 at 16:36 -0400, Tom Lane wrote:
> > Devrim =3D?ISO-8859-1?Q?G=3DDCND=3DDCZ?=3D <devrim@gunduz.org> writes:
> > > It is not a bug, but it might be a missing feature (and I'm not sure
> > how
> > > to fix it :-) )
> >=20
> > 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/.
>=20
> Well, there lies the problem. My packages push everything
> under /usr/pgsql-9.1 , and libs go to /usr/pgsql-9.1/lib. A
>=20
> > Not sure how practical such a change is at this late date.
>=20
> What if I build *9.2* with --libdir=3D/usr/pgsql-9.1/lib64 for x86_64, and
> then push 32-bit packages to /usr/pgsql-9.1/lib ?
>=20=