Jan Engelhardt wrote:
On Monday 2012-12-03 20:33, Stanislav Brabec wrote:
Example:
Source2. %{name}.keyring +%if 0%{?suse_version} > 1220 BuildRequires: gpg-offline +%endif
... %prep +%if 0%{?suse_version} > 1220 %gpg_verify %{S:1} +%endif %setup -q
%prep %if 0%{?gpg_verify:1} %gpg_verify %{S:whateverthesigfile} %endif ...
I already updated it in the documentation: https://build.opensuse.org/package/view_file?expand=1&file=gpg-offline.PACKAGING.HOWTO&package=gpg-offline&project=Base%3ASystem Section "Use %if in spec file"
And I prefer >= ("starting from") over > ("newer than"), since - remember - 1221 can come after 1220.
Current Factory contains: %suse_version 1230 Use of >1220 would work for 1221, >=1230 would not. But both will work equally. We have 1230, so we will probably not downgrade to 1221. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +49 911 7405384547 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org