Mailinglist Archive: opensuse-packaging (267 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Obsoleted %suse_update_desktop_file
- From: Ilya Chernykh <anixxsus@xxxxxxxxx>
- Date: Wed, 14 Dec 2011 22:17:05 +0400
- Message-id: <201112142217.05156.anixxsus@gmail.com>
On Wednesday 14 December 2011 20:18:22 Vincent Untz wrote:
Is it possible to make a wrapper/aliases for the abovementioned
correspondencies so not to rewrite all
the specs?
Actually I remember I removed calls to desktop-file-utils in many spec files
when porting them from Fedora,
and replaced them with calls to %suse_update_desktop_file as a suse-way of
doing things.
I do not want to reverse it all back now.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
Here's how to replace %suse_update_desktop_file options with it:
%suse_update_desktop_file -N <string> => desktop-file-edit --set-name
<string>
%suse_update_desktop_file -C <string> => desktop-file-edit --set-comment
<string>
%suse_update_desktop_file -G <string> => desktop-file-edit
--set-generic-name <string>
%suse_update_desktop_file <category> => desktop-file-edit
--add-category=<category>
%suse_update_desktop_file -r => desktop-file-edit --remove-key
Categories
%suse_update_desktop_file -u => desktop-file-edit --set-key
NoDisplay --set-value true
%suse_update_desktop_file -D <string> => desktop-file-edit --set-key
DocPath --set-value <string>
%suse_update_desktop_file -d <string> => desktop-file-edit --set-key
X-SuSE-DocTeamID --set-value <string>
%suse_update_desktop_file -i => desktop-file-install --dir
%{buildroot}%{_datadir}/applications
Of course, you can combine all the options. I don't believe that -u and
-D options are used often enough to be worth a specific
desktop-file-edit option.
If there are people caring deeply about --create, I can add such an
option too.
Is there anything else missing people would like to see before I do a
release?
Is it possible to make a wrapper/aliases for the abovementioned
correspondencies so not to rewrite all
the specs?
Actually I remember I removed calls to desktop-file-utils in many spec files
when porting them from Fedora,
and replaced them with calls to %suse_update_desktop_file as a suse-way of
doing things.
I do not want to reverse it all back now.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
| < Previous | Next > |