Mailinglist Archive: opensuse-packaging (214 mails)

< Previous Next >
Re: [opensuse-packaging] Re: drop %suse_update_desktop_files macro
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Mon, 25 Oct 2010 23:20:01 +0200
  • Message-id: <4CC5F481.6000907@xxxxxxxxx>
On 10/25/2010 06:45 PM, Pavol Rusnak wrote:
On 10/25/2010 06:36 PM, Malcolm wrote:

On Mon, 25 Oct 2010 18:18:56 +0200
Pavol Rusnak <prusnak@xxxxxxxxxxxx> wrote:


On 10/25/2010 06:06 PM, Malcolm wrote:

On Mon, 25 Oct 2010 17:49:24 +0200
Pavol Rusnak <prusnak@xxxxxxxxxxxx> wrote:

4. leave the rest in and make them optional if building against
openSUSE

I'm not sure if I understand. Why not removing macro completely?


Hi
I imagine deprecated, not dropped as this would break how many
packages (lots)?


I meant dropping the macro in newest release (upcoming 11.4) of
course. We can't remove macro from old SUSE distributions.


Hi
But if it's present in a spec file to build 11.1, 11.2, 11.3 and
Factory (aka 11.4) as well as SLE, then it should still work, or are
you saying I need to modify all my spec files just to build for factory?


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



I maintain 6 packages that use one or more desktop files and then I have
a few more in my home project and sub projects not to mention
multimedia:apps that aren't in my home. It looks like a couple of hours
of unnecessary, mundane work for somebody who donates their time and is
also in the middle of a couple of major updates which will most probably
take another couple of weeks.
Dave P
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups