1
0

- try to keep summary and group for cases like openldap2

(bnc#624980)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=19
This commit is contained in:
Ruediger Oertel 2011-08-01 15:30:16 +00:00 committed by Git OBS Bridge
parent 92a3dbb83a
commit fa1673e9ba
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 1 17:29:28 CEST 2011 - ro@suse.de
- try to keep summary and group for cases like openldap2
(bnc#624980)
-------------------------------------------------------------------
Mon Jul 4 11:42:26 CEST 2011 - ro@suse.de

View File

@ -391,14 +391,16 @@ sub read_and_parse_old_spec {
next;
}
if ($current_section eq "header") {
my $c_pack = $current_package;
$c_pack .= "_disabled" if $ifhandler->{"disabled"};
if ( /^Summary\b\s*:\s*(.*)/i ) {
$replace_hash{"XXXSUMMARY $current_package"} = sprintf("%-16s%s","Summary:", $1);
push @oldspec, "XXXSUMMARY $current_package";
$replace_hash{"XXXSUMMARY $c_pack"} = sprintf("%-16s%s","Summary:", $1);
push @oldspec, "XXXSUMMARY $c_pack";
next;
}
if ( /^Group\b\s*:\s*(.*)/i ) {
$replace_hash{"XXXGROUP $current_package"} = sprintf("%-16s%s", "Group:", $1);
push @oldspec, "XXXGROUP $current_package";
$replace_hash{"XXXGROUP $c_pack"} = sprintf("%-16s%s", "Group:", $1);
push @oldspec, "XXXGROUP $c_pack";
next;
}
if ( /^Vendor:/ || /^Distribution:/ || /^Packager:/ ) {