On 27/11/2019 10:32, Richard W.M. Jones wrote:
I have several projects that include bash-completions, and am trying to get a new one through package review. The reviewer has raised a question about whether the package should own:
%dir %{_datadir}/bash-completion/completions
My existing projects have basically cargo-culted the bash-completion packaging, so I thought I would see if there are official guidelines, but I'm not finding anything. Do we have guidelines?
Certainly:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directo...
But the short answer is that you either have to co-own it or you to require a package (presumably bash-completion in this case) which owns it. This case would appear to fall into :
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_the_directory_is...
Because you don't need bash, you're just providing an extension for it for people that do use it.
In that case co-ownership is recommended unless there is a filesystem package you can require to get the directory, which there isn't in this case.
Tom