Hello, On Nov 4 13:22 Jean Delvare wrote (excerpt):
I've documented it at: https://en.opensuse.org/openSUSE:Specfile_guidelines#Recommends
According to "Detect a distribution flavor for special code" at https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto %if 0%{?suse_version} should be sufficient. Furthermore I enhanced https://en.opensuse.org/openSUSE:Specfile_guidelines#Recommends with %if 0%{?suse_version} Recommends: foo %else Requires: foo %endif Of course that results a merciless Requires for all non-SUSE build targets regardless of the distribution version (meta condition) and regardless if RPM supports Recommends (actual condition). Something like %if 0%{?rpm_supports_recommends} Recommends: foo %else Requires: foo %endif would be nice and additionally such code would be self-explanatory. Kind Regards Johannes Meixner -- SUSE LINUX GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 21284 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org