title: what does the rpmbuild warning "File listed twice" ACTUALLY MEAN?
body: <p>I need to specify common attributes for one of the major directories in the package, and special permission for some of it subdirs. e.g.</p>
  
  <pre><code>%files
  %attr(-, myuser, mygroup) /opt/myapp 
  %attr(750, myuser, mygroup) /opt/myapp/bin  # no exec permission to other
  /etc  # this is the reason I can't use %defattr(-, myuser, mygroup)
  </code></pre>
  
  <p>I get the "file listed twice" warning on every file under /opt/myapp/bin, naturally. My question is, what does it actually mean? What does rpmbuild do with it? I can't find an answer anywhere. Can I just ignore it? What takes precedence, the first or the last occurrence?</p>
  
  <p>I prefer not to list everything under <code>myapp</code> explicitly to solve this. is there any other way? Thanks</p>