From 36e186da2502d0ad85239dbaeb6d10b43a8dc6f5 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 11 Mar 2016 13:18:47 +0900 Subject: [PATCH] use the tizen directory macros at spec file Change-Id: Ief2844c36844468f15794880fdac6cba1f9275b4 --- packaging/libeom.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/libeom.spec b/packaging/libeom.spec index aff2d39..ec749b3 100644 --- a/packaging/libeom.spec +++ b/packaging/libeom.spec @@ -35,6 +35,8 @@ Requires: pkgconfig(capi-base-common) %description devel External Output Manager Library development package +%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} + %prep %setup -q cp %{SOURCE1001} . @@ -56,8 +58,8 @@ make %{?_smp_mflags} %install rm -rf %{buildroot} -mkdir -p %{buildroot}/usr/share/license -cp -af COPYING %{buildroot}/usr/share/license/%{name} +mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license +cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name} %make_install %remove_docs @@ -65,7 +67,7 @@ cp -af COPYING %{buildroot}/usr/share/license/%{name} %files %manifest %{name}.manifest %defattr(-,root,root,-) -/usr/share/license/%{name} +%{TZ_SYS_RO_SHARE}/license/%{name} %{_libdir}/libeom.so.* %files devel -- 2.7.4