title: rpmbuild: how to build the package without %install?
body: <p>I am trying to build a rpm but unfortunately in my build machine I only have limted permission, which means the operation in %install can't be done inside the build machine. How to build the package(.rpm file) without running %install section? It looks like that no options are available for this purpose:</p>
  
  <p><a href="http://www.rpm.org/max-rpm-snapshot/ch-rpm-b-command.html" rel="nofollow">http://www.rpm.org/max-rpm-snapshot/ch-rpm-b-command.html</a></p>
  
  <p>My bu.spec file:</p>
  
  <pre><code>Summary: xxxx
  Name: xx
  Version: 1.0
  Release: 1
  Group: Applications/Sound
  License: Share
  
  %description
  
  %prep
  echo "prep"
  
  %build
  
  %install
  echo "install"
  mkdir -p /opt/xcp_src/
  cp scripts.tgz /opt/xcp_src/
  
  %files
  /tmp/xcp_src/scripts.tgz
  
  %post
  cd /opt/xcp_src/
  tar zxvf scripts.tgz
  </code></pre>