From 009360d695a5629d9f72464d2512203711ea106e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 9 Dec 2012 05:02:16 -0800 Subject: fixed %post section, call fc-cache --- packaging/cantarell-fonts.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'packaging/cantarell-fonts.spec') diff --git a/packaging/cantarell-fonts.spec b/packaging/cantarell-fonts.spec index c49ab5b..fe17a4e 100644 --- a/packaging/cantarell-fonts.spec +++ b/packaging/cantarell-fonts.spec @@ -19,7 +19,7 @@ BuildRequires: dos2unix BuildRequires: fontconfig BuildRequires: pkg-config BuildRequires: xz -Requires(pre): perl +Requires(pre): %{_bindir}/fc-cache BuildArch: noarch %description @@ -39,12 +39,11 @@ mkdir -p %{buildroot}%{_fontsconfddir} ln -s ../../..%{_fontsconfavaildir}/31-cantarell.conf %{buildroot}%{_fontsconfddir} %post -LC_ALL=POSIX -/usr/sbin/fonts-config +%{_bindir}/fc-cache %{cantarell_dir} || : %postun -LC_ALL=POSIX -/usr/sbin/fonts-config +%{_bindir}/fc-cache %{cantarell_dir} || : + %files %defattr(-,root,root) -- cgit v1.2.3