On 10/18/19 10:23 PM, Hans-Peter Jansen wrote:
Am Freitag, 18. Oktober 2019, 10:29:13 CEST schrieb Dominique Leuenberger / DimStar:
On Fri, 2019-10-18 at 10:10 +0200, Jan Engelhardt wrote:
I remember there was something like %suse_update_desktop_files to take care of it locally, but that macro seems to have gone too.
It's %suse_update_desktop_file (singular) and still exists as part of the update-desktop-files (plural) package.
and requires yet another build dependency, just for categorization.
If it was used everywhere it could be added to the project configthat package really only depends on other things we already need for every build.
A more pragmatic approach would be * create a super-set of desktop file categories and other group tags * add a group line to the spec with spec-cleaner, if there's none already, and a desktop file is included in that package
This wouldn't work in many cases, spec-cleaner can only read .spec files which means in some cases it could get it from looking at the "%suse_update_desktop_file" but in many cases upstream use the same category as us or we source the whole spec file so its correct or sometimes we change the category in a patch in all of those cases spec-cleaner would have no idea of the category so it needs to be worked out post install phase to be really useful. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B