Am Tuesday 25 April 2006 16:43 schrieb Marcus Schäfer:
Hi,
Hi,
On Tue, Apr 25, 2006 at 04:21:51PM +0200, Marcus Schäfer wrote:
the build server builds my package (sax2) for SuSE dists just fine but to build for RedHat (FC5) I'm using a different spec file. The main reason for this are the package name differences within the BuildRequires statement.
For example:
SuSE: ghostscript-fonts-std FC5: xorg-x11-server-sdk
The package structures on RedHat are very different from the SuSE ones. So it's in many cases not only the name which is different. How do I handle this within one spec file in the opensuse build service ?
This might work for you:
%if %{?suse_version:1}%{?!suse_version:0} BuildRequires: ghostscript-fonts-std %else BuildRequires: xorg-x11-server-sdk %endif
Thanks this should work for me. Ok one of the packages in BuildRequires is:
graphviz
this package normally exists on SuSE and RedHat with that name. The build server told me:
nothing provides graphviz
it is not part of FC . Many packages do need it, so it is maybe a good idea to start a project to build graphviz for FC. This one can be used by all others. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany email: adrian@suse.de