title: How to set owner for directory in the %files?
body: <p>If I have this line in the %files:</p>
  
  <pre><code>%attr(0555, myuser, myuser) /opt/myapp/lib/my.jar
  </code></pre>
  
  <p>Then my.jar will have myuser as owner, but directory /opt/myapp/lib will be owner by root.
  I don't want to write </p>
  
  <pre><code>%attr(0555, myuser, myuser) /opt/myapp/lib/
  </code></pre>
  
  <p>as I don't want all files in /opt/myapp/lib/ to be included.</p>
  
  <p>How can I set owner for /opt/myapp/lib/ directory?</p>
  
  <p>Thanks.</p>