diff options
author | Shinwoo Kim <cinoo.kim@samsung.com> | 2016-09-12 17:47:18 +0900 |
---|---|---|
committer | Shinwoo Kim <cinoo.kim@samsung.com> | 2016-09-12 17:53:28 +0900 |
commit | f06dd3072805e2bbc0074e1d79fe09a7b3aa606a (patch) | |
tree | 288d5b34c277d3959c1090578801689fc514a742 | |
parent | 83e3269d8c14663042c0d385565c54a1e0a0675f (diff) | |
download | fontconfig-f06dd3072805e2bbc0074e1d79fe09a7b3aa606a.tar.gz fontconfig-f06dd3072805e2bbc0074e1d79fe09a7b3aa606a.tar.bz2 fontconfig-f06dd3072805e2bbc0074e1d79fe09a7b3aa606a.zip |
Add a script to upgrade from 2.4 to 3.0submit/tizen/20160920.023107submit/tizen/20160912.091121accepted/tizen/wearable/20160920.052128accepted/tizen/tv/20160920.052108accepted/tizen/mobile/20160920.052055accepted/tizen/ivi/20160920.052144accepted/tizen/common/20160912.181716
Change-Id: I62e943ff1d54336f3b249da97b7593889e7a78ed
-rw-r--r-- | packaging/fontconfig.spec | 5 | ||||
-rwxr-xr-x | scripts/fontconfig_upgrade.sh | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/packaging/fontconfig.spec b/packaging/fontconfig.spec index b8f8e230..7f0ef714 100644 --- a/packaging/fontconfig.spec +++ b/packaging/fontconfig.spec @@ -22,6 +22,8 @@ Requires(pre): %{TZ_SYS_BIN}/fc-cache, %{TZ_SYS_BIN}/mkdir %{TZ_SYS_BIN}/rm, %{ Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig +%define upgrade_script_path /usr/share/upgrade/scripts + %description Fontconfig is designed to locate fonts within the system and select them according to requirements specified by @@ -68,6 +70,8 @@ make %{?jobs:-j%jobs} #make check %install rm -rf %{buildroot} +mkdir -p %{buildroot}%{upgrade_script_path} +cp -f scripts/fontconfig_upgrade.sh %{buildroot}%{upgrade_script_path} %make_install @@ -135,6 +139,7 @@ fi %config(noreplace) %{TZ_SYS_RO_ETC}/fonts/conf.d/*.conf %{TZ_SYS_RO_SHARE}/license/%{name} %{_tmpfilesdir}/fontconfig.conf +%{upgrade_script_path}/fontconfig_upgrade.sh %files devel %manifest fontconfig.manifest diff --git a/scripts/fontconfig_upgrade.sh b/scripts/fontconfig_upgrade.sh new file mode 100755 index 00000000..2b9a6d9a --- /dev/null +++ b/scripts/fontconfig_upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +#------------------------------------------# +# efl-misc upgrade (2.4 -> 3.0) # +#------------------------------------------# + +# Macro +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +# Set under the /opt +mkdir -p /opt/var/cache/fontconfig +chmod -R 775 /opt/var/cache/fontconfig +chown -R :users /opt/var/cache/fontconfig +chsmack -a 'User::App::Shared' /opt/var/cache/fontconfig +chsmack -t /opt/var/cache/fontconfig |