aboutsummaryrefslogtreecommitdiffstats
path: root/fontconfig.prov
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-03-13 20:20:09 +0000
committerNicolas Vigier <boklm@mageia.org>2011-03-13 20:20:09 +0000
commitd5ad8abe300c2da4bad79faf952673246bd00c47 (patch)
treee1f9e42089a3ae2a3b664b6c330e08c4ca48be58 /fontconfig.prov
parent58d76c079721fa089a2ead43167cc6acfa6cc5be (diff)
downloadrpm-setup-d5ad8abe300c2da4bad79faf952673246bd00c47.tar
rpm-setup-d5ad8abe300c2da4bad79faf952673246bd00c47.tar.gz
rpm-setup-d5ad8abe300c2da4bad79faf952673246bd00c47.tar.bz2
rpm-setup-d5ad8abe300c2da4bad79faf952673246bd00c47.tar.xz
rpm-setup-d5ad8abe300c2da4bad79faf952673246bd00c47.zip
add fontconfig.prov provides script1.123
Diffstat (limited to 'fontconfig.prov')
-rwxr-xr-xfontconfig.prov22
1 files changed, 22 insertions, 0 deletions
diff --git a/fontconfig.prov b/fontconfig.prov
new file mode 100755
index 0000000..73f345c
--- /dev/null
+++ b/fontconfig.prov
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Script to install in:
+# /usr/lib/rpm/mageia/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
+
+[ -x $fcquery ] || exit 0
+
+# filter out anything outside main fontconfig path
+grep /usr/share/fonts/ |
+while read fn; do
+ $fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null
+done
+exit 0