summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-09 13:02:16 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2013-02-08 14:05:57 (GMT)
commit009360d695a5629d9f72464d2512203711ea106e (patch)
treeb3731cc1696f4351a1be217f933302cecb12b2f0
parentb73ba20c3f0449aae7fe2389ca046ce25df5f526 (diff)
downloadcantarell-fonts-009360d695a5629d9f72464d2512203711ea106e.zip
cantarell-fonts-009360d695a5629d9f72464d2512203711ea106e.tar.gz
cantarell-fonts-009360d695a5629d9f72464d2512203711ea106e.tar.bz2
fixed %post section, call fc-cache
-rw-r--r--packaging/cantarell-fonts.spec9
1 files changed, 4 insertions, 5 deletions
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)