- 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:
parent
92a3dbb83a
commit
fa1673e9ba
@ -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
|
Mon Jul 4 11:42:26 CEST 2011 - ro@suse.de
|
||||||
|
|
||||||
|
10
prepare_spec
10
prepare_spec
@ -391,14 +391,16 @@ sub read_and_parse_old_spec {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ($current_section eq "header") {
|
if ($current_section eq "header") {
|
||||||
|
my $c_pack = $current_package;
|
||||||
|
$c_pack .= "_disabled" if $ifhandler->{"disabled"};
|
||||||
if ( /^Summary\b\s*:\s*(.*)/i ) {
|
if ( /^Summary\b\s*:\s*(.*)/i ) {
|
||||||
$replace_hash{"XXXSUMMARY $current_package"} = sprintf("%-16s%s","Summary:", $1);
|
$replace_hash{"XXXSUMMARY $c_pack"} = sprintf("%-16s%s","Summary:", $1);
|
||||||
push @oldspec, "XXXSUMMARY $current_package";
|
push @oldspec, "XXXSUMMARY $c_pack";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ( /^Group\b\s*:\s*(.*)/i ) {
|
if ( /^Group\b\s*:\s*(.*)/i ) {
|
||||||
$replace_hash{"XXXGROUP $current_package"} = sprintf("%-16s%s", "Group:", $1);
|
$replace_hash{"XXXGROUP $c_pack"} = sprintf("%-16s%s", "Group:", $1);
|
||||||
push @oldspec, "XXXGROUP $current_package";
|
push @oldspec, "XXXGROUP $c_pack";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if ( /^Vendor:/ || /^Distribution:/ || /^Packager:/ ) {
|
if ( /^Vendor:/ || /^Distribution:/ || /^Packager:/ ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user