[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 af

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

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

[Rpm-maint] [rpm-software-management/rpm] Sync python dependency conversion with pyreq2rpm. (#1299)

2020-07-03 Thread Gordon Messmer
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