title: how can I create an RPM from a subdir?
body: <p>I have a subdir my_sw that has an image of what I want to install:</p>
  
  <pre><code>my_sw/
    usr/
      bin/
         foo
      man/
         man1/
           foo.1
  </code></pre>
  
  <p>and so on.  I imagine there must be a simple way to create a spec file and use rpmbuild to package this up as an RPM so other users can install it.  I don't care about any of the fancy build stuff rpm can do, I just want it to install that dir tree.  (I suppose I'm misusing rpm a bit, but this way my users will have my files tracked in their rpm database, which they'd like.)</p>
  
  <p>I've tried various things, but rpm wants to do way more than I want it to, and most projects want rpm to do lots more as well (pre-building, building, testing things, stripping, etc.)  Is there a howto somewhere showing how to just put together a trivial rpm that just installs files?</p>
  
  <p>I'm doing this on CentOS 5 or 6 (or similar RedHat).</p>