title: Error trying to sign RPM
body: <p>I am trying to build and sign an RPM.
  I created my .rpmmacro file in the location I am building /path/to/macrodir/
  Then I am using  --define with _topdir referring to /path/to/macrodir/</p>
  
  <p>If I build the RPM without giving --sign; its working fine.</p>
  
  <pre><code>rpmbuild --define "_topdir /path/to/macrodir" -bb spec
  </code></pre>
  
  <p>The .rpmmacro is in macrodir and contains</p>
  
  <pre><code>%_signature gpg
  %_gpg_name Name (Comment) &lt;emailid&gt;
  %_gpgpath pathtognupgfolder
  %_gpgbin locationofgpgexec
  </code></pre>
  
  <p>If I include --sign then its throwing the error</p>
  
  <pre><code>rpmbuild --define "_topdir /path/to/macrodir" -bb --sign spec
  </code></pre>
  
  <p>error: You must set "%_gpg_name" in your macro file</p>
  
  <p>I am not able to see what I am doing wrong. Any suggestions? </p>