Hi Adrian, Thanks for the quick reply. On Tue, 04 Nov 2014 11:57:30 +0100, Adrian Schröter wrote:
On Dienstag, 4. November 2014, 11:54:32 wrote Jean Delvare:
Hi all,
I have a package which builds fine for all SUSE targets in OBS, but fails for Redhat-like distributions with the following error:
error: line 68: Unknown tag: Recommends: procmail
I seem to understand that Redhat's rpm does not support the "Recommends" tag, is that right? I would like to know what is the
right. except you use latest upstream rpm on redhat.
proper way to deal with this. I could not find anything related to this topic in the packager's guidelines.
The first thing I would try is:
%if 0%{?suse_version} > 0 Recommends: procmail %endif
Is that the right approach? Or is there a different tag I should use for non-SUSE targets?
looks good to me.
Great, I'll do that then. I've documented it at: https://en.opensuse.org/openSUSE:Specfile_guidelines#Recommends
Either way, I am surprised that OBS does not handle this all by itself, as this seems to be a fairly generic problem.
but what should the build script do? Just drop the line? Others want to have it as Require instead, since the default is to install it...
Either drop the line or replace it with a Require, yes. Both are equally valid and I don't really care which option we pick: it'll be much better than failing the build as we do right now. -- Jean Delvare SUSE L3 Support -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org