]> git.wh0rd.org - fontconfig.git/commitdiff
Put %post script in {}'s for tidyness, and change the call to fc-cache to
authorMike A. Harris <mharris@redhat.com>
Wed, 5 Mar 2003 09:14:06 +0000 (09:14 +0000)
committerMike A. Harris <mharris@redhat.com>
Wed, 5 Mar 2003 09:14:06 +0000 (09:14 +0000)
    use %{_bindir}/fc-cache

fontconfig.spec.in

index ab8f4054f87122ed7bdade236c229ebbc3539a90..529f3eb2ef7037905bbe7403b010a01a6aa5fe1d 100644 (file)
@@ -53,10 +53,11 @@ make %{_smp_mflags}
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
-
-# Force regeneration of all fontconfig cache files.
-fc-cache -f --system-only
+{
+  /sbin/ldconfig
+  # Force regeneration of all fontconfig cache files.
+  %{_bindir}/fc-cache -f --system-only
+}
 
 %postun -p /sbin/ldconfig