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
|