Bug 705970

Summary: RFE: make rpmdev-diff also diff requires and provides lists
Product: [Fedora] Fedora Reporter: Jose Pedro Oliveira <jose.p.oliveira.oss>
Component: rpmdevtoolsAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: a.badger, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 19:29:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jose Pedro Oliveira 2011-05-19 03:37:02 UTC
Description of problem:
Please add options and code to rpmdev-diff for diffing the requires and provides list of packages.


Version-Release number of selected component (if applicable):
rpmdevtools-7.5


Additional info:

Some quick examples of bash code:

$ diff <(rpm -qp --provides perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm) <(rpm -qp --provides perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm)
3c3
< perl-HTTP-Server-Simple-PSGI = 0.14-2.fc14
---
> perl-HTTP-Server-Simple-PSGI = 0.14-2.fc15



diff <(rpm -qp --requires perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm) <(rpm -qp --requires perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm)
2a3
> perl(HTTP::Server::Simple::CGI)  
9d9
< rpmlib(VersionedDependencies) <= 3.0.3-1

Comment 1 Ville Skyttä 2011-05-19 19:29:38 UTC
rpmdiff from the rpmlint package already does that, I don't see a reason to duplicate the functionality in rpmdev-diff.

$ rpmdiff perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm
removed     REQUIRES rpmlib(VersionedDependencies) <= 3.0.3-1
added       REQUIRES perl(HTTP::Server::Simple::CGI)  
..........T /usr/share/doc/perl-HTTP-Server-Simple-PSGI-0.14
..........T /usr/share/man/man3/HTTP::Server::Simple::PSGI.3pm.gz
removed     /usr/share/perl5/HTTP
removed     /usr/share/perl5/HTTP/Server
removed     /usr/share/perl5/HTTP/Server/Simple
removed     /usr/share/perl5/HTTP/Server/Simple/PSGI.pm
added       /usr/share/perl5/vendor_perl/HTTP
added       /usr/share/perl5/vendor_perl/HTTP/Server
added       /usr/share/perl5/vendor_perl/HTTP/Server/Simple
added       /usr/share/perl5/vendor_perl/HTTP/Server/Simple/PSGI.pm