Question on Directory Ownership

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


I've been looking at the following example, but something is still unclear:
     http://fedoraproject.org/wiki/Packaging/Guidelines#File_and_Directory_Ownership

Let's say we have a single package Foo-Animal with Emu and Llama
subpackages (you know those snooty llama people... can't have anything emu
related on their systems).

If we have a files section for package Foo-Animal like this:

%files Emu
%defattr(-,root,root,-)
%{_datadir}/Foo/Animal/Emu

%files Llama
%defattr(-,root,root,-)
%{_datadir}/Foo/Animal/Llama

and, as in the example on the wiki neither Foo-Animal-Emu or
Foo-Animal-Llama has a dependency on the other, what does the files
section for each look like?

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/




More information about the fedora-devel-list mailing list