Subject: | Provides not added to specfile |
Items that are to be added to the Provides: section of the generated spec file via the push_provides() method are not actually written into the spec file. Simple patch follows:
--- RPM-Specfile-1.17.orig/lib/RPM/Specfile.pm Thu Apr 8 19:13:26 2004
+++ RPM-Specfile-1.17/lib/RPM/Specfile.pm Fri Feb 4 15:35:15 2005
@@ -142,6 +142,11 @@
$output .= "Requires: $reqs[$i]\n";
}
+ my @provs = $self->provide;
+ for my $i (0 .. $#provs) {
+ $output .= "Provides: $provs[$i]\n";
+ }
+
my @sources = $self->source;
for my $i (0 .. $#sources) {
$output .= "Source$i: $sources[$i]\n";