summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2016-03-11 14:16:14 +0900
committerSooChan Lim <sc1.lim@samsung.com>2016-03-11 14:16:14 +0900
commit94954a9a049b750f3315ceb343ae8de4939d0aa4 (patch)
tree66f83434617a6f5ba86b304437e0352c03102c95
parentef76344213f4ac699bdfeac43f1470e23a51492a (diff)
downloadlibtdm-fbdev-accepted/tizen/common/20160311.203531.tar.gz
libtdm-fbdev-accepted/tizen/common/20160311.203531.tar.bz2
libtdm-fbdev-accepted/tizen/common/20160311.203531.zip
Change-Id: Ibdd30d3f67238ff5d3679f0297d3c77b06cfafae
-rw-r--r--packaging/libtdm-fbdev.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/libtdm-fbdev.spec b/packaging/libtdm-fbdev.spec
index 2f251ce..150003c 100644
--- a/packaging/libtdm-fbdev.spec
+++ b/packaging/libtdm-fbdev.spec
@@ -13,6 +13,8 @@ BuildRequires: pkgconfig(libtdm)
%description
Back-End library of Tizen Display Manager FBDEV : libtdm-mgr FBDEV 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} .
@@ -24,6 +26,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
@@ -35,7 +40,7 @@ ln -s libtdm-fbdev.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-fbdev.so