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:
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
On 10/25/2010 06:36 PM, Malcolm wrote:I maintain 6 packages that use one or more desktop files and then I have
On Mon, 25 Oct 2010 18:18:56 +0200
Pavol Rusnak <prusnak@xxxxxxxxxxxx> wrote:
On 10/25/2010 06:06 PM, Malcolm wrote:Hi
On Mon, 25 Oct 2010 17:49:24 +0200I meant dropping the macro in newest release (upcoming 11.4) of
Pavol Rusnak <prusnak@xxxxxxxxxxxx> wrote:
Hi4. leave the rest in and make them optional if building againstI'm not sure if I understand. Why not removing macro completely?
openSUSE
I imagine deprecated, not dropped as this would break how many
packages (lots)?
course. We can't remove macro from old SUSE distributions.
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
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 > |