summaryrefslogtreecommitdiff
path: root/packaging/default-fonts-fc-sdk.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/default-fonts-fc-sdk.spec')
-rw-r--r--packaging/default-fonts-fc-sdk.spec43
1 files changed, 25 insertions, 18 deletions
diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
index dd009fd..8cc91b7 100644
--- a/packaging/default-fonts-fc-sdk.spec
+++ b/packaging/default-fonts-fc-sdk.spec
@@ -1,14 +1,13 @@
#sbs-git:slp/sdk/default-fonts-fc-sdk default-fonts-fc-sdk 0.0.2 8414dbd3e62b6f7a864ba031e043dd7604b3d86d
Name: default-fonts-fc-sdk
Summary: Font configuration package for SDK
-Version: 0.0.2
-Release: 0
-Group: SDK/Configuration
+Version: 0.0.5
+Release: 1
+Group: TO_BE/FILLED_IN
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: default-fonts-fc-sdk.manifest
-BuildArch: noarch
-BuildRequires: libtzplatform-config-devel
+Source1001: packaging/default-fonts-fc-sdk.manifest
+Requires: smack-utils
%description
Font configuration package for SDK
@@ -21,21 +20,29 @@ This package is maintained by SDK team
cp %{SOURCE1001} .
%install
-rm -rf %{buildroot}
+export FONT_CONF_FILE_1="99-slp.conf"
+export FONT_CONF_FILE_2="10-hinting-slight.conf"
-mkdir -p %{buildroot}%{_prefix}/etc/fonts/conf.d/
-mkdir -p %{buildroot}%{TZ_SYS_ETC}/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}%{TZ_SYS_ETC}/fonts/conf.avail/
-cd %{buildroot}%{_prefix}/etc/fonts/conf.d/
-ln -s ../../../..%{TZ_SYS_ETC}/fonts/conf.avail/99-slp.conf %{buildroot}%{_prefix}/etc/fonts/conf.d/99-slp.conf
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/opt/etc/fonts/conf.avail/
+mkdir -p %{buildroot}/etc/opt/init/ && cp -a default-fonts-fc-sdk.init.sh %{buildroot}/etc/opt/init/
+mkdir -p %{buildroot}/usr/etc/fonts/conf.d/
+mkdir -p %{buildroot}/usr/opt/etc/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}/usr/opt/etc/fonts/conf.avail/
+cd %{buildroot}/usr/etc/fonts/conf.d/
+ln -s ../../../../opt/etc/fonts/conf.avail/$FONT_CONF_FILE_1 %{buildroot}/usr/etc/fonts/conf.d/$FONT_CONF_FILE_1
+ln -s ../../../../opt/etc/fonts/conf.avail/$FONT_CONF_FILE_2 %{buildroot}/usr/etc/fonts/conf.d/$FONT_CONF_FILE_2
%post
-TZ_SYS_USER_GROUP_ID=$(getent group %{TZ_SYS_USER_GROUP} | cut -d: -f3)
-chown :$TZ_SYS_USER_GROUP_ID %{TZ_SYS_ETC}/fonts/conf.avail/99-slp.conf
-chmod 664 %{TZ_SYS_ETC}/fonts/conf.avail/99-slp.conf
+chown root:app /usr/opt/etc/fonts/conf.avail/*.conf
+chmod 664 /usr/opt/etc/fonts/conf.avail/*.conf
+/etc/opt/init/default-fonts-fc-sdk.init.sh
+chsmack -a '*' /opt/etc/fonts/conf.avail/*.conf
%files
-%manifest %{name}.manifest
+%manifest default-fonts-fc-sdk.manifest
%defattr(-,root,root,-)
-%{TZ_SYS_ETC}/fonts/conf.avail/99-slp.conf
-%{_prefix}/etc/fonts/conf.d/99-slp.conf
-%exclude %{_prefix}/etc/fonts/conf.d/documentation.list
+/usr/opt/etc/fonts/conf.avail/*.conf
+/usr/etc/fonts/conf.d/*.conf
+/etc/opt/init/default-fonts-fc-sdk.init.sh
+/opt/etc/fonts/conf.avail/
+%exclude /usr/etc/fonts/conf.d/documentation.list