<p></p>
<p>rubygem- packages exclude cached versions of the .gem package itself (I don't want people to redistribute these, because they differ from the canonical packages available on rubygems.org), so every package contains <code>%exclude %{gem_cache}</code>. I don't think this one will be big deal to hide in <code>%gem_install</code> macro.</p>
<p>But I was thinking about this again working on Ruby. For example these files [[1]] should belong to the package. They are excluded just because there is external rubygem-racc and there is possible collision. If I remove such files in <code>%install</code> section, their exclusion will be less visible. You can note that I keep the files section quite explicit to have control what really goes into the packages. I work with the <code>%files</code> section all the time, while I touch the <code>%install</code> section quite rarely.</p>
<p>Sometimes I wish there was more control about files in <code>%{buildroot}</code> and RPM provided more insights, like "These are all files/directories which are in <code>%{buildroot}</code> and should be packaged. From this list, these files were already processed and there are sill few remaining". I know I could use filelists, but they on the other side hides a lot of stuff from the .spec file.</p>
<p>[1]: This package is  not the simplest one. I could scatter <code>rm</code> around, but still, some files logically belongs somewhere and they are not there just because of coll</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/1448#issuecomment-732748376">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYWIDJTCDVCEPPNRHLSRNXKHANCNFSM4T7X3OLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU2VZNZNZAHN6IWTJKLSRNXKHA5CNFSM4T7X3OL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFOWNUWA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/1448#issuecomment-732748376",
"url": "https://github.com/rpm-software-management/rpm/issues/1448#issuecomment-732748376",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>