title: Several groups in RPM package
body: <p><strong>Is it possible for single rpm package to belong to several groups?</strong> </p>
  
  <p>In spec file you can set package group:</p>
  
  <blockquote>
    <p>Group: System Environment/Base</p>
  </blockquote>
  
  <p>What I need is to be able to set several groups for this package (like <code>System|Util|MyCompanyName</code>) - they would be like tags assigned to the package. </p>
  
  <p>When the package is installed I want to query it like  </p>
  
  <pre><code>rpm -q --group System
  </code></pre>
  
  <p>or  </p>
  
  <pre><code>rpm -q --group MyCompanyName
  </code></pre>
  
  <p>and in both cases I should see my package (and others belonging to this group)</p>
  
  <p><hr>
  <strong>Edit:</strong></p>
  
  <p><strong>Many packages may belong to MyCompanyName group, but only few may be installed. I need a way to differentiate our packages from linux system packages - I was planning to do it using the group name</strong></p>
  
  <hr>
  
  <p>I tried putting several <code>Group:</code> lines, but it only uses the last one. Everything after <code>Group:</code> seems to be taken as one string and I couldn't find a way to split them.</p>
  
  <p>Another solution that I could think of is putting this stuff as <code>PROVIDES</code> and then to query </p>
  
  <pre><code>rpm -q --whatprovides System
  </code></pre>
  
  <p>but I don't like it this way.</p>
  
  <p><strong>Is there other way to accomplish the requested functionality?</strong></p>