On Mon, 25 Oct 2010 18:45:00 +0200 Pavol Rusnak <prusnak@opensuse.org> wrote:
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
Hi <is confused> So I would have to modify my spec file with the above for it to build on >= Factory? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.23-0.3-default up 13:15, 2 users, load average: 0.04, 0.08, 0.08 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.12 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org