summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2016-03-11 13:59:39 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-03-11 13:59:39 +0900
commitbadf0268e604f95ad58a251da631d670af0faf90 (patch)
tree69095cf36993cfc9dc82aba9c343f56bf72d32a9
parent0ef32010e2cf82cfbba371f79c219c5c8ede9620 (diff)
downloadlibtbm-shm-badf0268e604f95ad58a251da631d670af0faf90.tar.gz
libtbm-shm-badf0268e604f95ad58a251da631d670af0faf90.tar.bz2
libtbm-shm-badf0268e604f95ad58a251da631d670af0faf90.zip
Change-Id: I58b17fb56e7dba9fd26c8ba0e9604716a16d8d90
-rw-r--r--packaging/libtbm-shm.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/libtbm-shm.spec b/packaging/libtbm-shm.spec
index cd8c0f9..fc8fd62 100644
--- a/packaging/libtbm-shm.spec
+++ b/packaging/libtbm-shm.spec
@@ -15,6 +15,8 @@ BuildRequires: pkgconfig(dlog)
%description
descriptionion: Tizen Buffer manager backend module uses drm shm
+%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
%prep
%setup -q
@@ -27,8 +29,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
@@ -41,7 +43,8 @@ ln -s libtbm_shm.so %{_libdir}/bufmgr/libtbm_default.so
%postun -p /sbin/ldconfig
%files
+%defattr(-,root,root,-)
%manifest libtbm-shm.manifest
+%{TZ_SYS_RO_SHARE}/license/%{name}
%{_libdir}/bufmgr/libtbm_*.so*
-/usr/share/license/%{name}