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 Regards, Peter -- SUSE LINUX Products GmbH Thought is limitation. Research & Development Free your mind.