Question on Directory Ownership

Rick L. Vinyard, Jr. rvinyard at cs.nmsu.edu
Wed Feb 4 23:43:02 UTC 2009


Tom \"spot\" Callaway wrote:
> On 2009-02-04 at 18:15:09 -0500, "Rick L. Vinyard, Jr."
> <rvinyard at cs.nmsu.edu> wrote:
>
>> Wouldn't this cause duplication of files?
>>
>> %files Emu
>> %defattr(-,root,root,-)
>> %{_datadir}/Foo/Animal/Emu
>> %{_datadir}/Foo/
>>
>> %files Llama
>> %defattr(-,root,root,-)
>> %{_datadir}/Foo/Animal/Llama
>> %{_datadir}/Foo/
>
> Yes, it would, but that's not quite right. The accurate example for the
> guideline case would be:
>
> %files Emu
> %defattr(-,root,root,-)
> %{_datadir}/Foo/Animal/Emu
> %dir %{_datadir}/Foo/Animal/
>
> %files Llama
> %defattr(-,root,root,-)
> %{_datadir}/Foo/Animal/Llama
> %dir %{_datadir}/Foo/Animal/
>
> In rpm macro speak, %dir means "own just this directory, and none of its
> contents".
>

Ahhh, thanks. %dir is what I was missing.




More information about the fedora-devel-list mailing list