Question on Directory Ownership
Tom "spot" Callaway
tcallawa at redhat.com
Wed Feb 4 23:39:55 UTC 2009
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".
~spot
More information about the devel
mailing list