packaging: update packaging file to install license file via %license macro
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 22 Mar 2017 05:27:02 +0000 (14:27 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:24:41 +0000 (19:24 +0900)
Change-Id: I65ccb6a6357abf1a9ea060ca8c1eb3abf077d955
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
packaging/libinput.spec

index 63e53e17264fbc98f1793da8472c4083af63fb4c..9aa98deae746170503cf323604cc66540a9ef572 100644 (file)
@@ -58,10 +58,6 @@ 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
@@ -70,7 +66,7 @@ cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/licens
 %files
 %manifest %{name}.manifest
 %defattr(-,root,root)
-%{TZ_SYS_RO_SHARE}/license/%{name}
+%license COPYING
 %{_libdir}/*.so.*
 %{udev_dir}/%{name}*
 %{udev_dir}/rules.d/*%{name}*