use the tizen directory macros at spec file 58/61858/1 accepted/tizen/common/20160315.220654 accepted/tizen/ivi/20160313.114444 accepted/tizen/mobile/20160313.113321 accepted/tizen/tv/20160313.113653 accepted/tizen/wearable/20160313.114054 submit/tizen/20160311.060442
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Mar 2016 04:26:45 +0000 (13:26 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 11 Mar 2016 04:27:19 +0000 (13:27 +0900)
Change-Id: If9018a2f5dfd0847ff787e76e03c564674a130af

packaging/libpciaccess.spec

index 049d9e2..dee110e 100644 (file)
@@ -34,6 +34,8 @@ operating systems.
 This package contains development files needed to develop with the
 libpciaccess 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} .
@@ -45,6 +47,9 @@ NOCONFIGURE=1
 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
 
 %remove_docs
@@ -56,7 +61,7 @@ make %{?_smp_mflags}
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
-%license COPYING
+%{TZ_SYS_RO_SHARE}/license/%{name}
 %{_libdir}/libpciaccess.so.*
 
 %files devel
@@ -65,3 +70,5 @@ make %{?_smp_mflags}
 %{_includedir}/pciaccess.h
 %{_libdir}/libpciaccess.so
 %{_libdir}/pkgconfig/pciaccess.pc
+%{TZ_SYS_RO_SHARE}/license/%{name}
+