Blame SOURCES/fontconfig-flatpak.prov

71ae5d
#!/usr/bin/bash
71ae5d
#
71ae5d
# Script to install in:
71ae5d
# /usr/lib/rpm/redhat/find-provides.d
71ae5d
#
71ae5d
# Transform font files into RPM provides
71ae5d
# Requires fontconfig >= 2.6.90
71ae5d
#
71ae5d
# Author: Behdad Esfahbod <behdad@redhat.com>
71ae5d
# Based on other provides scripts from RPM
71ae5d
#
71ae5d
71ae5d
fcquery=/usr/bin/fc-query
71ae5d
71ae5d
if [ ! -x $fcquery ]; then
71ae5d
    cat > /dev/null
71ae5d
    exit 0
71ae5d
fi
71ae5d
71ae5d
# filter out anything outside main fontconfig paths
71ae5d
grep '/\(usr\|app\)/share/fonts/' |
71ae5d
while read fn; do
71ae5d
    $fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null
71ae5d
done