Apply directory macros 24/61824/1 accepted/tizen/common/20160315.221004 accepted/tizen/ivi/20160314.105247 accepted/tizen/mobile/20160314.105145 accepted/tizen/tv/20160314.105201 accepted/tizen/wearable/20160314.105221 submit/tizen/20160314.041019
authorSung-Jin Park <sj76.park@samsung.com>
Fri, 11 Mar 2016 01:13:03 +0000 (10:13 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 11 Mar 2016 01:13:03 +0000 (10:13 +0900)
Change-Id: I9f530c8a7be0bcebfe6e24d38f90d51f98021a93

packaging/e-mod-tizen-keyrouter.spec

index abdc1c2..1314f33 100644 (file)
@@ -22,6 +22,9 @@ BuildRequires:  pkgconfig(dlog)
 %else
 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
 This package is a the Enlightenment Keyrouter Module for Tizen.
 
@@ -47,8 +50,9 @@ make
 rm -rf %{buildroot}
 
 # for license notification
-mkdir -p %{buildroot}/usr/share/license
-cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
+
 
 # install
 make install DESTDIR=%{buildroot}
@@ -59,4 +63,4 @@ find  %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.la | xargs rm
 %files
 %defattr(-,root,root,-)
 %{_libdir}/enlightenment/modules/e-mod-tizen-keyrouter
-/usr/share/license/%{name}
+%{TZ_SYS_RO_SHARE}/license/%{name}