767681ad03
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).
11 lines
259 B
Bash
Executable File
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
|