packaging: update packaging file to install license file via %license macro
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 22 Mar 2017 05:39:33 +0000 (14:39 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 21 Dec 2023 23:42:49 +0000 (08:42 +0900)
Change-Id: I40e0c148db7b6c668a62d273287d26855d13eb62
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
packaging/libxkbcommon.spec

index faee309..7a0e9ff 100644 (file)
@@ -52,10 +52,6 @@ chmod a+x ./gen_tables.sh
 %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
@@ -63,7 +59,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}/libxkbcommon.so.0*
 
 %files devel