use the tizen directory macros at spec file 55/61855/2 accepted/tizen/common/20160311.203345 accepted/tizen/ivi/20160311.150053 accepted/tizen/mobile/20160311.143010 accepted/tizen/tv/20160311.144622 accepted/tizen/wearable/20160311.145426 submit/tizen/20160311.060328
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Mar 2016 04:17:23 +0000 (13:17 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Mar 2016 05:32:34 +0000 (14:32 +0900)
Change-Id: Icda5624e866a87267def34d03042cdc5c771d3cf

packaging/e-mod-tizen-eom.spec

index 52e9762..bd55b69 100644 (file)
@@ -25,6 +25,8 @@ BuildRequires:  e-tizen-data
 %description
 This package is a the Enlightenment eom Module for Tizen.
 
+%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
 %prep
 %setup -q
 
@@ -47,8 +49,8 @@ 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 +61,4 @@ find  %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.la | xargs rm
 %files
 %defattr(-,root,root,-)
 %{_libdir}/enlightenment/modules/e-mod-tizen-eom
-/usr/share/license/%{name}
+%{TZ_SYS_RO_SHARE}/license/%{name}