From 54f9606d6da123ef850206cb08048b31afda50b7 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Fri, 9 Dec 2016 10:37:59 +0900 Subject: [PATCH] Apply smack label to system cache files Change-Id: Ibee197d4e1e7bfaa14a97ba9cc5685c780d16d9a --- packaging/default-fonts-sdk.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/default-fonts-sdk.spec b/packaging/default-fonts-sdk.spec index 911b0e6..32eea2c 100644 --- a/packaging/default-fonts-sdk.spec +++ b/packaging/default-fonts-sdk.spec @@ -6,7 +6,8 @@ Group: TO_BE/FILLED_IN License: Apache-2.0 and GPL-2.0-with-font-exception Source0: %{name}-%{version}.tar.gz Source1001: packaging/default-fonts-sdk.manifest -#Requires(post): fontconfig +BuildRequires: pkgconfig(libtzplatform-config) +Requires(post): fontconfig %description free fonts for Tizen SDK @@ -28,7 +29,10 @@ mkdir -p %{buildroot}%{_datadir}/fallback_fonts && cp -a common/fallback_fonts % #cp -a $TARGET/fallback_fonts %{buildroot}%{_datadir} %post -/usr/bin/fc-cache -f +if [ -x /usr/bin/fc-cache ] ; then + /usr/bin/fc-cache -f + chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig/* +fi %files %manifest default-fonts-sdk.manifest -- 2.7.4