Mailinglist Archive: opensuse-buildservice (175 mails)

< Previous Next >
Re: [opensuse-buildservice] Installing on Mandriva via OBS repo
On Wednesday 19 October 2011, alexander barakin wrote:

i understand that rpm-devel package from sle11 does not contain
/usr/lib/pkgconfig/rpm.pc and therefore command "pkg-config --libs
rpm" failes·
in what package can be this file?
or how else can i get LDFLAGS for rpm in sle11?

jfyi: in opensuse.11.4 and opensuse.factory command "pkg-config
--libs rpm" returns "-lrpm -lrpmio"

Try something like this
if ! pkg-config --libs rpms &>/dev/null ;then
export rpm_LIBS="-lrpm -lrpmio";
fi
%configure ...

(in doubt see configure --help whether rpm_LIBS is supported)

or you could ship such rpm.pc with your rpm sources and set
PKG_CONFIG_PATH="." before configure.


cu,
Rudi
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >