rpm-software-management / mock

Mock is a tool for a reproducible build of RPM packages.
GNU General Public License v2.0
384 stars 234 forks source link

Documentation for the rpmautospec plugin #1510

Open praiskup opened 4 days ago

praiskup commented 4 days ago

The rpmautospec.py is missing the documentation page, in the section "Plugins": https://rpm-software-management.github.io/mock/

praiskup commented 4 days ago

I tried today to build a package with autospec, and it doesn't seem to work:

$ fedpkg clone jello
$ cd jello
$ mock -r fedora-rawhide-x86_64 --enable-plugin rpmautospec --spec jello.spec --sources .

Build succeeds, but the changelog is not generated:

$ rpm -qp --changelog /var/lib/mock/fedora-rawhide-x86_64/result/jello-1.6.0-1.fc42.noarch.rpm 
* pá lis 22 2024 John Doe <packager@example.com> - 1.6.0-1.fc42
- local build

I am probably missing something - the documentation would help.

@nphilipp shouldn't mock fail in this case (rpmautospec clearly wasn't able to expand %autochangelog).