]> git.pld-linux.org Git - packages/adapter.git/commitdiff
Handle meson BR.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 21 Oct 2017 08:31:16 +0000 (10:31 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 21 Oct 2017 08:31:16 +0000 (10:31 +0200)
adapter.awk

index a09532d6603b7a453dcc3db80994581da106706c..ebd1ee458c0063803e2809ce32a599995f804e4f 100644 (file)
@@ -1515,6 +1515,12 @@ function use_macros()
                add_br("BuildRequires:  rpmbuild(macros) >= 1.300")
        }
 
+       if (/^%meson / || /^%{meson}/) {
+               sub(/^meson/, "%meson")
+               sub(/^%{meson}/, "%meson")
+               add_br("BuildRequires:  rpmbuild(macros) >= 1.726")
+       }
+
        $0 = fixedsub("%(%{__cc} -dumpversion)", "%{cc_version}", $0)
        $0 = fixedsub("%(%{__cxx} -dumpversion)", "%{cxx_version}", $0)
 
This page took 0.088314 seconds and 4 git commands to generate.