packaging: update packaging file to install license file via %license macro 25/121225/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 27 Mar 2017 08:45:42 +0000 (17:45 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 27 Mar 2017 08:51:25 +0000 (17:51 +0900)
Change-Id: I867cf7e3dba9072efd37d2e20c5f0ca546eda2f9

packaging/e-mod-tizen-wm-policy.spec

index 305ce76..f064020 100644 (file)
@@ -46,18 +46,12 @@ export CFLAGS+=" -DE_LOGGING=1 -Werror-implicit-function-declaration"
 make %{?_smp_mflags}
 
 %install
-# for license notification
-mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
-cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
-cp -a %{_builddir}/%{buildsubdir}/COPYING.Flora %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}.Flora
-
 # install
 %make_install
 
 %files
 %defattr(-,root,root,-)
 %{_libdir}/enlightenment/modules/e-mod-tizen-wm-policy
-%{TZ_SYS_RO_SHARE}/license/%{name}
-%{TZ_SYS_RO_SHARE}/license/%{name}.Flora
+%license COPYING COPYING.Flora
 
 %define _unpackaged_files_terminate_build 0