I did take quick look into the code base: for `%doc` the `addSpecialFile()` is
used that just inserts file entries. That does not copy files into the
%{_docdir}. Rather, it is done from `processPackageFiles() ->
processSpecialDir()` at which point it already packages the RPM. The `%exclude`
is
I think it would be quite useful to implement this and should not be very hard,
in theory... Still, you should just wipe those files and not use %exclude for
that. I think that is on the roadmap that it will throw unpackaged files if you
%exclude files and do not put them anywhere.
--
You are
I would expect the following to work:
~~~
%files
%doc README.md CHANGELOG.md docs
%exclude %{_datadir}/doc/git-lfs/docs/mangen
%exclude %{_datadir}/doc/git-lfs/docs/man/*.{1,5}
%exclude %{_datadir}/doc/git-lfs/docs/man/mangen.go
~~~
Unfortunately, the `%doc` directive is unexpectedly processed af