Need help for open Requests
Matthias Saou
thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Wed Aug 3 16:06:43 UTC 2005
Tom 'spot' Callaway wrote :
> One point of note:
>
> If your application creates a directory structure like this:
>
> /usr/share/foo-1.1/bar/baz/qux
>
> And you want to own all of the files and directories in that structure,
> all you need to do in %files is:
>
> %{_datadir}/foo-1.1
>
> This will cause all of the files and directories within that package to
> be owned by that package.
Just a small cosmetic preference : It increases readability and decreases
possible confusion to add a trailing slash to the lines in %files that
reference directories.
So in this case, I'd recommend :
%{_datadir}/foo-1.1/
Which is simply more "explicit" (e.g. for reviewers), although producing
the exact same result in the package.
Matthias
--
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 4 (Stentz) - Linux kernel 2.6.12-1.1398_FC4
Load : 2.01 1.72 1.45
More information about the fedora-extras-list
mailing list