summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-01-24 14:28:29 +0100
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-02-11 09:30:22 +0100
commit16646b3ec72a73dd0824de69cc5274f3f50f5d50 (patch)
tree862be7051352977aee203ab588db2976a0724c5b
parent1d1be0df95b1ff677eb95d87100ccd75023fbb91 (diff)
downloaddefault-fonts-fc-sdk-sandbox/kthierry/multiuser.tar.gz
default-fonts-fc-sdk-sandbox/kthierry/multiuser.tar.bz2
default-fonts-fc-sdk-sandbox/kthierry/multiuser.zip
Add multi-user supportsandbox/kthierry/multiuser
Also correct RPMLint errors/warnings: + remove execution bits of sdk_fonts_fc/99-slp.conf + add licence in spec file + add group in spec file + add "BuildArch: noarch" in spec file Bug-Tizen: PTREL-387 Change-Id: I01890d20ced972623c8f9bec66c988c95148cc2e Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
-rw-r--r--packaging/default-fonts-fc-sdk.spec17
-rw-r--r--[-rwxr-xr-x]sdk_fonts_fc/99-slp.conf0
2 files changed, 10 insertions, 7 deletions
diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
index 9cdb5a6..d896f4c 100644
--- a/packaging/default-fonts-fc-sdk.spec
+++ b/packaging/default-fonts-fc-sdk.spec
@@ -3,10 +3,12 @@ Name: default-fonts-fc-sdk
Summary: Font configuration package for SDK
Version: 0.0.2
Release: 1
-Group: TO_BE/FILLED_IN
-License: TO BE FILLED IN
+Group: SDK/Configuration
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: default-fonts-fc-sdk.manifest
+BuildArch: noarch
+BuildRequires: pkgconfig(libtzplatform-config)
%description
Font configuration package for SDK
@@ -22,17 +24,18 @@ cp %{SOURCE1001} .
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_prefix}/etc/fonts/conf.d/
-mkdir -p %{buildroot}/opt/etc/fonts/conf.avail/ && cp -a sdk_fonts_fc/* %{buildroot}/opt/etc/fonts/conf.avail/
+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 ../../../../opt/etc/fonts/conf.avail/99-slp.conf %{buildroot}%{_prefix}/etc/fonts/conf.d/99-slp.conf
+ln -s ../../../..%{TZ_SYS_ETC}/fonts/conf.avail/99-slp.conf %{buildroot}%{_prefix}/etc/fonts/conf.d/99-slp.conf
%post
-chown :5000 /opt/etc/fonts/conf.avail/99-slp.conf
-chmod 664 /opt/etc/fonts/conf.avail/99-slp.conf
+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
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-/opt/etc/fonts/conf.avail/99-slp.conf
+%{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
diff --git a/sdk_fonts_fc/99-slp.conf b/sdk_fonts_fc/99-slp.conf
index 0cbf470..0cbf470 100755..100644
--- a/sdk_fonts_fc/99-slp.conf
+++ b/sdk_fonts_fc/99-slp.conf