Am Montag 25 Oktober 2010 schrieb Pavol Rusnak:
If we drop macro in Factory, then the following should work:
--- in preamble:
%if 0%{?suse_version} && 0%{?suse_version} < 1140 BuildRequires: update-desktop-files %endif
--- in %install phase:
%if 0%{?suse_version} && 0%{?suse_version} < 1140 %suse_update_desktop_file %{name} %endif
Usually you don't need to call anything. If you need to alter desktop file then you would use this:
--- in preamble:
BuildRequires: desktop-file-utils %if 0%{?suse_version} && 0%{?suse_version} < 1140 BuildRequires: update-desktop-files %endif
--- in %install phase:
%if 0%{?suse_version} && 0%{?suse_version} < 1140 %suse_update_desktop_file %{name} %else desktop-file-install .... %endif
Seriously you consider proposing this as an improvement to the current situation? Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org