Re: [Rpm-maint] [rpm-software-management/rpm] Allow to eclude files from %doc (#1298)

2020-07-03 Thread Igor Raits
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

Re: [Rpm-maint] [rpm-software-management/rpm] Allow to eclude files from %doc (#1298)

2020-07-03 Thread Igor Raits
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

[Rpm-maint] [rpm-software-management/rpm] Allow to eclude files from %doc (#1298)

2020-07-03 Thread Vít Ondruch
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