Re: File listed twice

Michael Jennings <[email protected]> Sun, 31 Aug 2008 21:59:35 -0700
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
On Monday, 01 September 2008, at 00:54:21 (-0400),
Jeffrey Sherwin wrote:

> Interesting. I think that's the answer. I have directories in the file
> list. So I need to pull them out. 
> 
> If I have a big tree (that the entire installation is contained within),
> with a 900 or so files, what is the easiest way to accomplish a
> comprehensive and proper file list?
> 
> Thanks again for all the help.

List only the top-level files and directories your package should
own.  For example, list %{_datadir}/yourapp/ as a directory, not all
its contents.  That way your package will own the directory *and* the
contents.  List files in system directories (e.g., %{_bindir}/yourapp)
individually.  This technique properly delegates file/directory
ownership.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[email protected]>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "I've been looking for a Savior in these dirty streets, 
  Looking for a Savior beneath these dirty sheets." 
                                               -- Tori Amos, "Crucify"