msm: consistency for equally ranked keys
[platform/upstream/rpm.git] / autodeps / linux.req
index be6ee4f..cc19f5f 100644 (file)
@@ -33,6 +33,7 @@ perllist=()
 pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/lib[^/]*/python.\..'))
 tcllist=()
 monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)(\\.config)?\$"))
+pkgconfiglist=($(printf "%s\n" "${filelist[@]}" | egrep '\.pc$'))
 
 #
 # --- Alpha does not mark 64bit dependencies
@@ -142,6 +143,11 @@ if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then
 fi
 
 #
+# --- pkgconfig requires
+[ -x /usr/lib/rpm/pkgconfigdeps.sh -a -n "$pkgconfiglist" ] &&
+     printf "%s\n" "${pkgconfiglist[@]}" | /usr/lib/rpm/pkgconfigdeps.sh -R | sort -u
+
+#
 # --- Kernel module imported symbols
 [ -x ${0%/*}/find-requires.ksyms ] &&
     printf "%s\n" "${filelist[@]}" | ${0%/*}/find-requires.ksyms "$@"