Apply directory macros
authorSung-Jin Park <sj76.park@samsung.com>
Fri, 11 Mar 2016 02:50:46 +0000 (11:50 +0900)
committerjeon <jhyuni.kang@samsung.com>
Tue, 5 Jan 2021 10:27:27 +0000 (19:27 +0900)
Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3

packaging/libinput.spec

index d666dee20951b2d58936dbd974eb999bec5e5b8b..63e53e17264fbc98f1793da8472c4083af63fb4c 100644 (file)
@@ -18,6 +18,7 @@ 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
 
@@ -57,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
@@ -65,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}*