On 10/25/2010 06:36 PM, Malcolm wrote:
On Mon, 25 Oct 2010 18:18:56 +0200 Pavol Rusnak
wrote: On 10/25/2010 06:06 PM, Malcolm wrote:
On Mon, 25 Oct 2010 17:49:24 +0200 Pavol Rusnak
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 -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Boosters Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9 prusnak[at]opensuse.org Czech Republic -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org