summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2016-03-11 14:08:12 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-03-11 14:08:34 +0900
commited572e6c10dd9489833bf40706a99d88185eea7f (patch)
tree58b379f97ccaff55f129ab24e6eda96e10d44cb4
parent06cf5498b864273a466a02418b8c45e6914a31c5 (diff)
downloadlibtdm-drm-ed572e6c10dd9489833bf40706a99d88185eea7f.tar.gz
libtdm-drm-ed572e6c10dd9489833bf40706a99d88185eea7f.tar.bz2
libtdm-drm-ed572e6c10dd9489833bf40706a99d88185eea7f.zip
Change-Id: Iddef3cde1a2fef97ce6cf6af3aee8e37e03bb03c
-rw-r--r--packaging/libtdm-drm.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/libtdm-drm.spec b/packaging/libtdm-drm.spec
index c06bcff..086110a 100644
--- a/packaging/libtdm-drm.spec
+++ b/packaging/libtdm-drm.spec
@@ -14,6 +14,8 @@ BuildRequires: pkgconfig(pixman-1)
%description
Back-End library of Tizen Display Manager DRM : libtdm-mgr DRM library
+%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
%prep
%setup -q
cp %{SOURCE1001} .
@@ -25,6 +27,9 @@ cp %{SOURCE1001} .
make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -af COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
%make_install
%post
@@ -36,7 +41,7 @@ ln -s libtdm-drm.so %{_libdir}/tdm/libtdm-default.so
%postun -p /sbin/ldconfig
%files
-%manifest %{name}.manifest
-%license COPYING
%defattr(-,root,root,-)
+%manifest %{name}.manifest
+%{TZ_SYS_RO_SHARE}/license/%{name}
%{_libdir}/tdm/libtdm-drm.so