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
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 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
This change better reflects the behavior of setuptools in situations that are
processed successfully, but not covered in the specification.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1299
-- Commit Summary --
* Sync py