From: Youngbok Shin Date: Fri, 9 Dec 2016 01:37:59 +0000 (+0900) Subject: Apply smack label to system cache files X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.125114^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fgraphics%2Fdefault-fonts-sdk.git;a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_3.0_ivi Apply smack label to system cache files Change-Id: Ibee197d4e1e7bfaa14a97ba9cc5685c780d16d9a --- 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