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 ? Regards Marcus -- Public Key available ------------------------------------------------------- Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstrasse 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany -------------------------------------------------------