summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-01-24 13:28:29 (GMT)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-02-17 13:54:42 (GMT)
commit689813d6d7089f9b1de674da02487776ccbd43dc (patch)
tree44f624815998f87ea4fbd932730a81a21db996b4
parent1d1be0df95b1ff677eb95d87100ccd75023fbb91 (diff)
downloaddefault-fonts-fc-sdk-689813d6d7089f9b1de674da02487776ccbd43dc.zip
default-fonts-fc-sdk-689813d6d7089f9b1de674da02487776ccbd43dc.tar.gz
default-fonts-fc-sdk-689813d6d7089f9b1de674da02487776ccbd43dc.tar.bz2
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.spec19
-rw-r--r--[-rwxr-xr-x]sdk_fonts_fc/99-slp.conf0
2 files changed, 11 insertions, 8 deletions
diff --git a/packaging/default-fonts-fc-sdk.spec b/packaging/default-fonts-fc-sdk.spec
index 9cdb5a6..dd009fd 100644
--- a/packaging/default-fonts-fc-sdk.spec
+++ b/packaging/default-fonts-fc-sdk.spec
@@ -2,11 +2,13 @@
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
+Release: 0
+Group: SDK/Configuration
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: default-fonts-fc-sdk.manifest
+BuildArch: noarch
+BuildRequires: libtzplatform-config-devel
%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