]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
adapter: isa, mpl
authorElan Ruusamäe <glen@delfi.ee>
Fri, 8 May 2015 18:36:00 +0000 (21:36 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 8 May 2015 18:36:06 +0000 (21:36 +0300)
adapter.awk

index e71edefd4dbb0a9c68ec67a42e6e8a8832e5bc22..33144830e08b33d0063705457aba6610c4106de0 100644 (file)
@@ -830,6 +830,9 @@ preamble == 1 {
                if (l == "MPLv1.1") {
                        l = "MPL v1.1"
                }
+               if (l == "Mozilla Public License, version 2.0") {
+                       l = "MPL v2.0"
+               }
                $0 = "License:\t" l
        }
 
@@ -2168,6 +2171,11 @@ function replace_pythonegg(pkg,    cmd, line) {
 # }}}
 
 function replace_requires(field,   pkg) {
+       # strip %{?_isa}
+       if ($2 ~ /_isa/) {
+               $2 = fixedsub("%{?_isa}", "", $2);
+       }
+
        # pkg-config -> package names
        if (match($2, /pkgconfig\(([^)]+)\)/)) {
                pkg = substr($2, RSTART + 10, RLENGTH - 11)
This page took 0.059391 seconds and 4 git commands to generate.