Apply smack label to system cache files
[platform/core/graphics/default-fonts-sdk.git] / packaging / default-fonts-sdk.spec
index 897c1f5..32eea2c 100644 (file)
@@ -1,16 +1,16 @@
-#default-fonts-sdk
 Name:       default-fonts-sdk
-Summary:    fonts for Tizen SDK
-Version:    1.3.0
-Release:    1
+Summary:    free fonts for Tizen SDK
+Version:    1.2.1.0
+Release:    10
 Group:      TO_BE/FILLED_IN
-License:    Apache License, Version 2.0
+License:    Apache-2.0 and GPL-2.0-with-font-exception
 Source0:    %{name}-%{version}.tar.gz
 Source1001: packaging/default-fonts-sdk.manifest
+BuildRequires: pkgconfig(libtzplatform-config)
 Requires(post): fontconfig
 
 %description
-fonts for Tizen SDK
+free fonts for Tizen SDK
 This package is maintained by SDK team
 
 %prep
@@ -21,11 +21,6 @@ cp %{SOURCE1001} .
 
 %install
 rm -rf %{buildroot}
-%if 0%{?sec_product_feature_profile_wearable}
-    export TARGET=wearable
-%else
-    export TARGET=mobile
-%endif
 
 mkdir -p %{buildroot}/usr/share/license && cp LICENSE %{buildroot}/usr/share/license/%{name}
 mkdir -p %{buildroot}%{_datadir}/fonts && cp -a common/fonts %{buildroot}%{_datadir}
@@ -34,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
@@ -42,4 +40,3 @@ mkdir -p %{buildroot}%{_datadir}/fallback_fonts && cp -a common/fallback_fonts %
 %{_datadir}/fonts/*
 %{_datadir}/fallback_fonts/*
 /usr/share/license/%{name}
-