Description of problem: When building a perl src rpm from the Fedora 25 repo with mock, the resulting package does not have its Provides: perl(MODEULE::NAME) entries. Version-Release number of selected component (if applicable): How reproducible: Always in F25/26 when using mock, but NOT when rebuilding with rpmbuild. Never in EL6, EL7, F24 using mock or rpmbuild. Observed when building locally and on copr. Steps to Reproduce: 1.Download a perl src rpm from the Fedora repo. In my case, I chose perl-GD-Barcode-1.15-23.fc25.src.rpm 2. Rebuild with mock 3. Actual results: Provides: perl-GD-Barcode = 1.15-23.fc25 Expected results: Provides: perl(GD::Barcode) = 1.15 perl(GD::Barcode::COOP2of5) = 0.01 perl(GD::Barcode::Code39) = 1.10 perl(GD::Barcode::EAN13) = 1.10 perl(GD::Barcode::EAN8) = 1.10 perl(GD::Barcode::IATA2of5) = 0.01 perl(GD::Barcode::ITF) = 0.01 perl(GD::Barcode::Industrial2of5) = 0.01 perl(GD::Barcode::Matrix2of5) = 0.01 perl(GD::Barcode::NW7) = 1.10 perl(GD::Barcode::QRcode) = 0.01 perl(GD::Barcode::UPCA) = 1.10 perl(GD::Barcode::UPCE) = 1.10 perl-GD-Barcode = 1.15-23.fc25 Additional info: Noticed at the beginning of each mock build, it complains of missing perl: sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory sh: /usr/bin/perl: No such file or directory Don't know if that is related. This is the third package I've attempted to rebuild and have seen these results, only on F25/26. I don't know if mock is truly the cuplrit or if there is some other underlying cause.
UPDATE: Adding perl-generators as a buildrequires to the specfile resolves this issue, so this bug can more than likely be closed. I do not understand why this was missing from the Fedora authored specfile in the first place, but that is not a mock issue.
Closing per #1