-#sbs-git:slp/sdk/default-fonts-sdk default-fonts-sdk 0.0.1 cfc28893f4bd5cb9a28ffb97c4ca0ffcf30024b9
+#default-fonts-sdk
Name: default-fonts-sdk
-Summary: free fonts for SLP SDK
-Version: 0.0.1
-Release: 9
+Summary: fonts for Tizen SDK
+Version: 1.3.1
+Release: 1
Group: TO_BE/FILLED_IN
-License: 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
%description
-free fonts for SLP SDK
+fonts for Tizen SDK
This package is maintained by SDK team
%prep
%install
rm -rf %{buildroot}
+%if 0%{?sec_product_feature_profile_wearable}
+ export TARGET=wearable
+%else
+ export TARGET=mobile
+%endif
-mkdir -p %{buildroot}%{_datadir}/fonts && cp -a fonts %{buildroot}%{_datadir}
-mkdir -p %{buildroot}%{_datadir}/fallback_fonts && cp -a fallback_fonts %{buildroot}%{_datadir}
+mkdir -p %{buildroot}/usr/share/license && cp LICENSE %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}%{_datadir}/fonts && cp -a common/fonts %{buildroot}%{_datadir}
+#cp -a $TARGET/fonts %{buildroot}%{_datadir}
+mkdir -p %{buildroot}%{_datadir}/fallback_fonts && cp -a common/fallback_fonts %{buildroot}%{_datadir}
+#cp -a $TARGET/fallback_fonts %{buildroot}%{_datadir}
+
+%post
+/usr/bin/fc-cache -f
%files
%manifest default-fonts-sdk.manifest
-%defattr(0644,root,root,-)
-%{_datadir}/fonts/TizenSansRegular.ttf
-%{_datadir}/fonts/TizenSansBold.ttf
-%{_datadir}/fallback_fonts/TizenSansFallbackRegular.ttf
-%{_datadir}/fallback_fonts/TizenSansFallbackBold.ttf
+%defattr(-,root,root,-)
+%{_datadir}/fonts/*
+%{_datadir}/fallback_fonts/*
+/usr/share/license/%{name}
+