title: How To make relocatable rpm?
body: <p>I have java application with pom.xml. I am making rpm package with prefixes tags . </p>
  
  <p>When I am querying on prefix tags of rpm :</p>
  
  <pre><code>sudo rpm -qp --queryformat "%{prefixes}\n" java-hbase-processor-1.0-SNAPSHOT20160330060627.noarch.rpm 
  </code></pre>
  
  <p>I got  ==> /var</p>
  
  <p>IF I run following command :</p>
  
  <pre><code>rpm -qi java-hbase-processor | grep Relocations
  </code></pre>
  
  <p>I got :
  Relocations : /opt /tmp 
  Relocations : /var /tmp</p>
  
  <p>All above shows that rpm is relocatable . But if run install command </p>
  
  <pre><code>sudo rpm -i --prefix=/home/sohanvir/ java-hbase-processor-1.0-SNAPSHOT20160330060627.noarch.rpm
  </code></pre>
  
  <p>It will give error with message:</p>
  
  <p><strong>error: package java-hbase-processor is not relocatable</strong></p>
  
  <p>Thanks in advance .</p>