]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-find-provides-wrapper
- include --x-libraries=/usr/X11R6/%{_lib} in %configure macros
[packages/rpm.git] / rpm-find-provides-wrapper
index dd459c0276045266cd910eb06c9f0548d0508007..f1137b9cac71fe0b297328c4af740c55f80c544b 100644 (file)
@@ -10,7 +10,9 @@
 ulimit -c 0
 
 PERLOPT="--define=__perl_provides /bin/sh -c 'cat >/dev/null'"
+PERLOPT2="--define=__perl_requires /bin/sh -c 'cat >/dev/null'"
 PHPOPT="--define=__php_provides /bin/sh -c 'cat >/dev/null'"
+PHPOPT2="--define=__php_requires /bin/sh -c 'cat >/dev/null'"
 noprovfiles=''
 noprov=''
 buildroot=''
@@ -18,9 +20,11 @@ while [ $# -gt 0 ]; do
        case "$1" in
          --with-perl)
                PERLOPT=""
+               PERLOPT2=""
                ;;
          --with-php)
                PHPOPT=""
+               PHPOPT2=""
                ;;
          --buildroot=*)
                buildroot="${1#--buildroot=}"
@@ -52,7 +56,8 @@ fi
 
 # rpmdeps output seems sorted, but resort it in case of long list split
 grep -v -e "^\(${noprovfiles}\)\$" | tr '\n' '\0' | \
-       xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PHPOPT}" --provides | \
+       xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PERLOPT2}" \
+               "${PHPOPT}" "${PHPOPT2}" --provides | \
        LC_ALL=C sort -u | grep -v -e "^\(${noprov}\)\$"
 
 exit 0
This page took 0.034802 seconds and 4 git commands to generate.