Mailinglist Archive: opensuse-packaging (214 mails)

< Previous Next >
Re: [opensuse-packaging] Re: drop %suse_update_desktop_files macro
  • From: Stephan Kulow <coolo@xxxxxxx>
  • Date: Tue, 26 Oct 2010 10:09:20 +0200
  • Message-id: <201010261009.20611.coolo@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups