Dne 27. 06. 22 v 17:55 Vít Ondruch napsal(a):
Dne 24. 06. 22 v 21:26 Maxwell G napsal(a):Hi everyone, Currently, packaging shell completions is a bit of a hassle. You have to memorize a bunch of long directory names (`%{_datadir}/bash-completion/completions`, `%{_datadir}/fish/vendor_completions.d`, and `%{_datadir}/zsh/ site-functions`), and repeat them multiple times in the specfile. For some reason, the bash completion directories are owned by filesystem, but zsh and fish's shell completions directories are not. Therefore, every package needsto copy ``` %files [...] %{_datadir}/bash-completion/completions/%{name} %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/%{name}.fishI think that in practice, owning just `%{_datadir}/fish` would be enough, because the package one prepares probably won't have any additional content in this directory apart from the `%{_datadir}/fish/vendor_completions.d/%{name}.fish` file. But of course, the more verbose version you used provides more control.Vít
BTW why not have package such as bash-completion-filesystem, etc? I wish the filesystem package was smaller.
Vít
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure