Hide Forgot
Description of problem: mercurial places a file in %{_datadir}/zsh/site-functions/ but does not own %{_datadir}/zsh/ or requires something that owns it. Version-Release number of selected component (if applicable): mercurial-1.9.2-1.fc15 Additional info: https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Ownership
so are you saying %dir %{_datadir}/zsh/site-functions/ should be replaced by %dir %{_datadir}/zsh/ ??
Yes, you either need a dependency on zsh or you need to own that dir. The latter makes more sense. You can also use %dir %{_datadir}/zsh/ %{_datadir}/zsh/site-functions/ to make it more obvious in the spec, but the result is the same.
Since both are directories, is it not %dir %{_datadir}/zsh/ %dir %{_datadir}/zsh/site-functions/ ??
Yes, but then you have to list the file explicitly. %dir %{_datadir}/zsh/ %dir %{_datadir}/zsh/site-functions/ %{_datadir}/zsh/site-functions/_mercurial %dir only describes the directory, no files in there. For rpm a simple %{_datadir}/zsh/ is the same, it's just about legibility: If you look at the spec, %{_datadir}/zsh/ can mean anything, a thousand files and subfolders or just a single one.