]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- BR, R: shortcuts for faster typing
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 31 Aug 2007 20:28:46 +0000 (20:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.362

adapter.awk

index a6ad07859dc70befc7f88ca33451dd5f5bfd5d86..80433e125287f5c9c894fc6d65e65191ea814511 100644 (file)
@@ -29,7 +29,7 @@ BEGIN {
        RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun|verifyscript|check"
        SECTIONS = "^%(" RPM_SECTIONS ")"
 
-       PREAMBLE_TAGS = "(Summary|Name|Version|Release|Epoch|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires)"
+       PREAMBLE_TAGS = "(R|BR|Summary|Name|Version|Release|Epoch|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires)"
 
        preamble = 1    # Is it part of preamble? Default - yes
        boc = 4                 # Beginning of %changelog
@@ -962,6 +962,12 @@ ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && $0 ~ PREAMBLE_TAGS, $0 ~ PREAMBL
        if ($1 ~ /Pre[Rr]eq:/) {
                sub(/Pre[Rr]eq:/, "Requires:", $1);
        }
+       if ($1 == "BR:" ) {
+               $1 = "BuildRequires:"
+       }
+       if ($1 == "R:" ) {
+               $1 = "Requires:"
+       }
        format_preamble()
 #      kill_preamble_macros(); # breaks tabbing
 
This page took 0.067381 seconds and 4 git commands to generate.