summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Jin Park <sj76.park@samsung.com>2016-03-11 16:25:34 +0900
committerSung-Jin Park <sj76.park@samsung.com>2016-03-11 16:28:27 +0900
commitb86c91bed526b8ae52257902b6c06964dd47359c (patch)
tree6028ea96790cd133d3594c659aad3e34aed537ec
parentf7350be7369701b9a72293db4a8bb0dd55b25061 (diff)
downloadlibxkbcommon-b86c91bed526b8ae52257902b6c06964dd47359c.tar.gz
libxkbcommon-b86c91bed526b8ae52257902b6c06964dd47359c.tar.bz2
libxkbcommon-b86c91bed526b8ae52257902b6c06964dd47359c.zip
Change-Id: Icf6d15c1ad958177ee19e479e3368465261cee44
-rwxr-xr-xmake_tizen_keymap.sh6
-rw-r--r--packaging/libxkbcommon.spec9
-rwxr-xr-xtest/data/sync.sh6
3 files changed, 18 insertions, 3 deletions
diff --git a/make_tizen_keymap.sh b/make_tizen_keymap.sh
index a61d148..1acb2fe 100755
--- a/make_tizen_keymap.sh
+++ b/make_tizen_keymap.sh
@@ -1,6 +1,10 @@
#!/bin/sh
-KEYMAP_FILE_PATH="/usr/share/X11/xkb/tizen_key_layout.txt"
+if [ "$TZ_SYS_RO_SHARE" = "" ]; then
+ TZ_SYS_RO_SHARE="/usr/share"
+fi
+
+KEYMAP_FILE_PATH="${TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
BASE_KEYSYM="0x10090000"
TARGET_HEADER_FILE="./xkbcommon/tizen_keymap.h"
TEMP_TEXT_FILE="./temp_file.txt"
diff --git a/packaging/libxkbcommon.spec b/packaging/libxkbcommon.spec
index 136f9cc..c8878b8 100644
--- a/packaging/libxkbcommon.spec
+++ b/packaging/libxkbcommon.spec
@@ -21,6 +21,8 @@ BuildRequires: python
BuildRequires: xkb-tizen-data
%endif
+%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
%description
Keyboard handling library using XKB data.
@@ -43,6 +45,7 @@ cp %{SOURCE1001} .
%if "%{?profile}" == "common"
%else
export TIZEN_PROFILE="%{?profile}"
+export TZ_SYS_RO_SHARE="%{TZ_SYS_RO_SHARE}"
chmod a+x ./make_tizen_keymap.sh
./make_tizen_keymap.sh
chmod a+x ./gen_tables.sh
@@ -56,6 +59,10 @@ chmod a+x ./gen_tables.sh
%install
%make_install
+#for license notification
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -63,7 +70,7 @@ chmod a+x ./gen_tables.sh
%files
%manifest %{name}.manifest
%defattr(-,root,root)
-%license COPYING
+%{TZ_SYS_RO_SHARE}/license/%{name}
%{_libdir}/libxkbcommon.so.0*
%files devel
diff --git a/test/data/sync.sh b/test/data/sync.sh
index 206231a..b8d05ad 100755
--- a/test/data/sync.sh
+++ b/test/data/sync.sh
@@ -1,6 +1,10 @@
#/bin/sh
-XKBCONFIGROOT='/usr/share/X11/xkb'
+if [ "$TZ_SYS_RO_SHARE" = "" ]; then
+ TZ_SYS_RO_SHARE="/usr/share"
+fi
+
+XKBCONFIGROOT="${TZ_SYS_RO_SHARE}/X11/xkb"
if [ ! -d test/data ]; then
echo "Run this from the top source dir"