pcp
[Top] [All Lists]

Re: kmchart rpmbuild fails with opensuse 11

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: kmchart rpmbuild fails with opensuse 11
From: "Nelson, Doug" <doug.nelson@xxxxxxxxx>
Date: Tue, 02 Sep 2008 17:52:01 -0700
Cc: "markgw@xxxxxxx" <markgw@xxxxxxx>, "pcp@xxxxxxxxxxx" <pcp@xxxxxxxxxxx>
In-reply-to: <1220401450.4714.63.camel@verge.scott.net.au>
References: <48BDB82E.5090901@intel.com> <1220396598.4714.24.camel@verge.scott.net.au> <48BDD869.5080108@sgi.com> <1220401450.4714.63.camel@verge.scott.net.au>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080421)
Mark/Nathan,

I tried Mark's suggestion, but it did not seem to hit the suse branch.

How can I determine what the %_vendor is set to?

rpm's build fine if I modify the kmchart.spec.in file to be:

Requires: pcp >= 2.0
Requires: libqt4 >= 4.2
Requires: libqt4-devel-doc >= 4.2
BuildRequires: pcp >= 2.0
BuildRequires: libqt4-devel >= 4.2

Seems like Mark's idea should work if we can match/set the vendor name.

thanks,

doug

Nathan Scott wrote:
On Wed, 2008-09-03 at 10:20 +1000, Mark Goodwin wrote:
...
Something like the following probably works (well, SLES sets %_vendor
but I'm not sure about OpenSuSE). Alternatively, use %_vendor to
define another macro for the base package name (i.e. libqt4 or qt4) :

Requires: pcp >= 2.0
BuildRequires: pcp >= 2.0
%if %_vendor == "suse"
Requires: libqt4 >= 4.2
Requires: libqt4-doc >= 4.2
BuildRequires: libqt-doc >= 4.2
BuildRequires: libqt4-devel >= 4.2
%else
Requires: qt4 >= 4.2
Requires: qt4-doc >= 4.2
BuildRequires: qt-doc >= 4.2
BuildRequires: qt4-devel >= 4.2
%endif

Nice and simple - does that work for your OpenSuse build Doug?

cheers.

--
Nathan


<Prev in Thread] Current Thread [Next in Thread>