Bug 1585589

Summary: RPM returns wrong version in changelog
Product: [Fedora] Fedora Reporter: Lubomír Sedlář <lsedlar>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: ignatenko, kevin, mjw, packaging-team-maint, pmatilai, pmoravco, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-05 06:03:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lubomír Sedlář 2018-06-04 07:32:16 UTC
Description of problem:
Getting changelog from source RPM sometimes returns something else than what is in spec file.

Version-Release number of selected component (if applicable):
rpm-4.14.1-1.fc27.x86_64

How reproducible:
On this particular SRPM always.

Steps to Reproduce:
1. Download SRPM from https://koji.fedoraproject.org/koji/buildinfo?buildID=1078095
2. Run rpm -qp Singular-4.1.0p3-9.fc29.src.rpm --changelogs | head -n1

Actual results:
* Tue May 01 2018 Jonathan Wakely <jwakely> - -9

Expected results:
* Tue May 01 2018 Jonathan Wakely <jwakely> - 4.1.0p3-9

Comment 1 Panu Matilainen 2018-06-05 06:03:18 UTC
Extract the spec from the src.rpm and you'll see that for that particular version, that's exactly what was in the spec. Which you can also see here:
https://src.fedoraproject.org/rpms/Singular/c/345216b6d220694fdca4a0bb219014aabdbee995?branch=master