From 18e1bf22f6a947f57acbfe9ab7dcbe755d953705 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 11 Mar 2016 13:51:46 +0900 Subject: [PATCH] use the tizen directory macros at spec file Change-Id: I3b2ef83a4296aaf95f29cff413da1bdfaba8cf35 --- packaging/libtbm-exynos.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/libtbm-exynos.spec b/packaging/libtbm-exynos.spec index 6d99100..8c4bfcc 100644 --- a/packaging/libtbm-exynos.spec +++ b/packaging/libtbm-exynos.spec @@ -17,6 +17,8 @@ BuildRequires: pkgconfig(libudev) %description descriptionion: Tizen Buffer manager backend module for exynos +%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} + %prep %setup -q @@ -29,8 +31,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 @@ -44,5 +46,5 @@ ln -s libtbm_exynos.so %{_libdir}/bufmgr/libtbm_default.so %files %{_libdir}/bufmgr/libtbm_*.so* -/usr/share/license/%{name} +%{TZ_SYS_RO_SHARE}/license/%{name} -- 2.7.4