Version up to 1.3.3.
[platform/core/graphics/default-fonts-sdk.git] / packaging / default-fonts-sdk.spec
1 #default-fonts-sdk
2 Name:       default-fonts-sdk
3 Summary:    fonts for Tizen SDK
4 Version:    1.3.3
5 Release:    1
6 Group:      TO_BE/FILLED_IN
7 License:    Apache-2.0 and GPL-2.0-with-font-exception
8 Source0:    %{name}-%{version}.tar.gz
9 Source1001: packaging/default-fonts-sdk.manifest
10 Requires(post): fontconfig
11
12 %description
13 fonts for Tizen SDK
14 This package is maintained by SDK team
15
16 %prep
17 %setup -q
18
19 %build
20 cp %{SOURCE1001} .
21
22 %install
23 rm -rf %{buildroot}
24 %if 0%{?sec_product_feature_profile_wearable}
25     export TARGET=wearable
26 %else
27     export TARGET=mobile
28 %endif
29
30 mkdir -p %{buildroot}/usr/share/license && cp LICENSE %{buildroot}/usr/share/license/%{name}
31 mkdir -p %{buildroot}%{_datadir}/fonts && cp -a common/fonts %{buildroot}%{_datadir}
32 #cp -a $TARGET/fonts %{buildroot}%{_datadir}
33 mkdir -p %{buildroot}%{_datadir}/fallback_fonts && cp -a common/fallback_fonts %{buildroot}%{_datadir}
34 #cp -a $TARGET/fallback_fonts %{buildroot}%{_datadir}
35
36 %post
37 /usr/bin/fc-cache -f
38
39 %files
40 %manifest default-fonts-sdk.manifest
41 %defattr(-,root,root,-)
42 %{_datadir}/fonts/*
43 %{_datadir}/fallback_fonts/*
44 /usr/share/license/%{name}
45