This bug was initially created as a copy of Bug #2043092 Description of problem: Version/Release of last subpackage is used instead of Version/Release from the main package. From the ruby-3.0.3-158.fc36 build [1]: ~~~ + '[' -f /builddir/build/BUILD/.package_note-ruby-0.15.2-158.fc36.x86_64.ld ']' + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh ruby 0.15.2-158.fc36 x86_64 ~~~ Version-Release number of selected component (if applicable): package-notes-0.4-3.fc36 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Notes are using wrong Version/Release Expected results: The correct Version/Release is used (or not used at all) Additional info: [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=81534724
I admit I no idea how to approach this. I assumed that %name and %version are a pair that can be relied on. I think we want the original srpm name and version to be used in the notes. Is there some rpm macro that stores the original %version?
https://src.fedoraproject.org/rpms/package-notes/pull-request/1