Apply directory macros 46/61846/1 accepted/tizen/common/20160316.160106 accepted/tizen/ivi/20160315.001213 accepted/tizen/mobile/20160315.001124 accepted/tizen/tv/20160315.001138 accepted/tizen/wearable/20160315.001157 submit/tizen/20160314.020721
authorSung-Jin Park <sj76.park@samsung.com>
Fri, 11 Mar 2016 02:50:46 +0000 (11:50 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 11 Mar 2016 02:50:46 +0000 (11:50 +0900)
Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3

packaging/libinput.spec

index b6f23b53971509a6a9e4f66f57f67852203f108b..63e53e17264fbc98f1793da8472c4083af63fb4c 100644 (file)
@@ -18,6 +18,8 @@ BuildRequires:  pkgconfig(libudev)
 BuildRequires:  pkgconfig(mtdev)
 BuildRequires:  pkgconfig(ttrace)
 
+%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
 %description
 
 libinput is a library that handles input devices for display servers and
@@ -56,6 +58,10 @@ cp %{SOURCE1001} .
 %install
 %make_install
 
+# for license notification
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -64,6 +70,7 @@ cp %{SOURCE1001} .
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root)
+%{TZ_SYS_RO_SHARE}/license/%{name}
 %{_libdir}/*.so.*
 %{udev_dir}/%{name}*
 %{udev_dir}/rules.d/*%{name}*