title: Need help understanding how to build multiple RPMs
body: <p>I've been trying to understand how to build a simple RPM.</p>
  
  <p>I have the following repository <a href="https://github.com/integralist/simple-rpm" rel="nofollow">https://github.com/integralist/simple-rpm</a> which includes the relevant SPEC file and it works fine in generating an RPM from within a Docker container.</p>
  
  <p>But the issue I have is understanding how to build multiple RPMs considering I was pretty much forced to use a single <code>~/rpmbuild</code> directory to house the files.</p>
  
  <p>Originally I created a test RPM directory structure within <code>~/testing-rpmbuild</code> and when I ran the <code>rpmbuild</code> command it automatically created <code>~/rpmbuild</code> for me and then started to fail as my spec file (which was in <code>~/testing-rpmbuild</code>) had referenced other files which couldn't be found because the OS seemed to expect it to be inside <code>~/rpmbuild</code> instead (which was empty because at that point I didn't realise the OS had automatically created the <code>~/rpmbuild</code> directory). </p>
  
  <p>So in the end I just moved all my files from <code>~/testing-rpmbuild</code> to <code>~/rpmbuild</code> and everything worked fine. But I'm not sure how you're expected to build multiple different RPMs when you're restricted to a single <code>~/rpmbuild</code> directory?</p>