title: Cannot make rpm from spec file: File not found errors
body: <p>I have a pre-made directory structure that I want to make an rpm from.
  In my spec file I specify all files from that directory structure that I want to include in the rpm, and when executing rpmbuild I set the buildroot to the (from what I can tell) correct directory:</p>
  
  <pre><code>%files
  /usr/local/bin/test/Test
  /usr/local/bin/test/something.awk
  /usr/share/snmp/mibs
  /etc/init.d/test
  </code></pre>
  
  <p>My rpmbuild command looks like this:</p>
  
  <pre><code>rpmbuild --rmspec --buildroot=bin/&lt;files dir&gt; -bb bin/tmp.spec
  </code></pre>
  
  <p>Both the buildroot directory &amp; location of my spec file are relative.
  The directory structure looks like this:</p>
  
  <pre><code>/home/&lt;me&gt;/Projects/&lt;project&gt;/ &lt;-- I execute rpmbuild from here
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/tmp.spec
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/&lt;files dir&gt;/ &lt;-- All files/directories mentioned in spec file reside here
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/&lt;files dir&gt;/usr/local/bin/test/Test
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/&lt;files dir&gt;/usr/local/bin/test/something.awk
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/&lt;files dir&gt;/usr/share/snmp/mibs/ &lt;-- directory with a few MIB files, which I all want to include
  /home/&lt;me&gt;/Projects/&lt;project&gt;/bin/&lt;files dir&gt;/etc/init.d/test
  </code></pre>
  
  <p>However, when executing the rpmbuild command I get the following errors:</p>
  
  <pre><code>Processing files: &lt;rpm&gt;
  error: File not found: /bin/&lt;files dir&gt;/usr/local/bin/test/Test
  error: File not found: /bin/&lt;files dir&gt;/usr/local/bin/test/something.awk
  error: File not found: /bin/&lt;files dir&gt;/usr/share/snmp/mibs
  error: File not found: /bin/&lt;files dir&gt;/etc/init.d/test
  
  
  RPM build errors:
      File not found: /bin/&lt;files dir&gt;/usr/local/bin/test/Test
      File not found: /bin/&lt;files dir&gt;/usr/local/bin/test/something.awk
      File not found: /bin/&lt;files dir&gt;/usr/share/snmp/mibs
      File not found: /bin/&lt;files dir&gt;/etc/init.d/test
  </code></pre>
  
  <p>The spec file does not contain any %prep, %build or %install directives, as the complete file structure is pre-made before building the rpm file.
  I am convinced it is some small thing that I am missing, and I suspect that it is a case of rpmbuild using a different directory than I am specifying.
  I've been toying around with the buildroot &amp; _topdir directives, both with relative &amp; absolute paths, but to no avail...</p>