rpm-build/scripts/pkgconfig.prov.files
Alexey Tourbin 767681ad03 adapted pkgconfig.req and pkgconfig.prov
Also enhanced the scripts by using pkg-config --print-errors, because
pkg-config is silent by default.  Also added checks for pkg-config exit
status and valid output.

Also changed the order: libdir/pkgconfig:datadir/pkgconfig instead of
datadir/pkgconfig:libdir/pkgconfig, according to pkg-config(1).
2007-03-11 15:00:29 +03:00

11 lines
259 B
Bash
Executable File

#!/bin/sh -efu
[ -n "${RPM_LIBDIR-}" ] || RPM_LIBDIR=`rpm --eval %_libdir`
while IFS=$'\t' read -r f t; do
case "$f" in
${RPM_BUILD_ROOT-}/usr/share/pkgconfig/*.pc)
echo "$f" ;;
${RPM_BUILD_ROOT-}$RPM_LIBDIR/pkgconfig/*.pc)
echo "$f" ;;
esac
done