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