> > Note that the `%{gem_instdir}/config` is excluded form the main package, 
> > but then it is not obvious if it should not be included elsewhere. 
> > Therefore it is listed for the second time in the `%excludes` section to 
> > make it clear it is not forgotten and it should really be excluded.
> 
> This seems redundant, though. Why would you need an `%exclude` in the 
> `%files` section at all in this case?

Please note that in this specific case, the whole `%{gem_instdir}` is included 
in the package, except the `%{gem_instdir}/config` entry. However, it does not 
make clear in global context if `%{gem_instdir}/config` should be included 
elsewhere. To make it clear, it would need to be listed in other package or in 
`%excludes` section, otherwise it would be reported as an error (similarly if 
you miss some file).

IOW, this is to  prevent mistakes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1852#issuecomment-1787195946
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1852/1787195...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to